pdftk – 一個不錯的pdf文檔合并工具

來源:互聯網
上載者:User
 沒有直觀的操作介面,需要在命令列進行操作(將pdftk.exe放在要處理的pdf文檔所在的目錄下):

    開始->運行->cmd->(用cd命令切換到pdf文檔和pdftk.exe所在的目錄下)

    合并sourse1.pdf和sourse2.pdf文檔到target.pdf:
    >pdftk sourse1.pdf sourse2.pdf cat output target.pdf
    或者:
    >pdftk A=sourse1.pdf B=sourse2.pdf cat A B output target.pdf

    將目錄中所有的pdf合并到target.pdf(用萬用字元*):
    >pdftk *.pdf cat output target.pdf

其他功能:
(1) Decrypt a PDF:
    >pdftk secured.pdf input_pw foopass output unsecured.pdf

(2) Encrypt a PDF using 128-bit strength (the default),  with-hold all permissions (the default)
    >pdftk 1.pdf output 1.128.pdf owner_pw foopass

(3) Same as above, except password 'baz' must also be used to open output PDF
    >pdftk 1.pdf output 1.128.pdf owner_pw foo user_pw baz

(4) Same as above, except printing is allowed (once the PDF is open)
    >pdftk 1.pdf output 1.128.pdf owner_pw  foo  user_pw  baz allow printing

(5) Remove 'page 13' from in1.pdf to create out1.pdf
    >pdftk in.pdf cat 1-12 14-end output out1.pdf
    or:
    >pdftk A=in1.pdf cat A1-12 A14-end output out1.pdf

(6) Apply 40-bit encryption to output, revoking all permis-sions(the default). Set the owner PW to 'foopass'.
    >pdftk   1.pdf   2.pdf  cat  output  3.pdf  encrypt_40bit owner_pw foopass

(7) Join two files, one of which requires the password 'foopass'. The output is not encrypted.
    >pdftk A=secured.pdf 2.pdf input_pw A=foopass cat  output 3.pdf

(8) Uncompress  PDF page streams for editing the PDF in a text editor (e.g., vim, emacs)
    >pdftk doc.pdf output doc.unc.pdf uncompress

(9) Repair a PDF's corrupted XREF table and stream lengths, if possible pdftk broken.pdf output fixed.pdf Burst  a  single PDF document into pages and dump its data to doc_data.txt
     >pdftk mydoc.pdf burst

(10) Burst  a  single  PDF document into encrypted pages. Allow low-quality printing
     >pdftk  mydoc.pdf  burst owner_pw foopass allow Degraded-Printing

(11) Write a report on PDF document metadata and bookmarks to report.txt
     >pdftk mydoc.pdf dump_data output report.txt

CSDN下載:http://download.csdn.net/source/122282 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.