整理一下各种合并多个pdf文件的方法,参考了这些网站(还有忘了的):https://tex.stackexchange.com/questions/8662/merge-two-pdf-files-output-by-latex, https://tex.stackexchange.com/questions/284632/include-multiple-pdf-documents-and-create-bookmark-to-first-page
- 用LaTeX来整合(可以添加书签):
- pdftk
- GhostScript
- PDFJAM
- cpdf
- PDF-Shuffler (Linux, free software)
- LibreOffice(可以小范围编辑pdf文档)
\documentclass{article}% or something else
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=-]{paper1}
\includepdf[pages=-]{paper2}
\end{document}
\documentclass{article}
\usepackage{lipsum,bookmark,pdfpages}
\begin{document}
\section{A section}
\lipsum[1-3]
\includepdf[link]{1.pdf}
\includepdf[link]{2.pdf}
\bookmark[dest={1.pdf.1}]{1.pdf}
\bookmark[dest={2.pdf.1}]{2.pdf}
\end{document}
$ pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf
$ gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=merged.pdf source1.pdf source2.pdf source3.pdf etc.pdf
$ pdfjoin foo1.pdf foo2.pdf --outfile bar.pdf
cpdf foo1.pdf foo2.pdf -o bar.pdf