合并多个pdf文件

整理一下各种合并多个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

  1. 用LaTeX来整合(可以添加书签):

  2. \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}

  3. pdftk

  4. $ pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf

  5. GhostScript

  6. $ gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=merged.pdf source1.pdf source2.pdf source3.pdf etc.pdf

  7. PDFJAM

  8. $ pdfjoin foo1.pdf foo2.pdf --outfile bar.pdf

  9. cpdf

  10. cpdf foo1.pdf foo2.pdf -o bar.pdf

  11. PDF-Shuffler (Linux, free software)
  12. LibreOffice(可以小范围编辑pdf文档)

发表评论

电子邮件地址不会被公开。 必填项已用*标注