Reading a particular page from a PDF document using PDFBox

后端 未结 6 2046
醉话见心
醉话见心 2020-12-03 10:41

How do I read a particular page (given a page number) from a PDF document using PDFBox?

6条回答
  •  半阙折子戏
    2020-12-03 11:18

    Add this to the command-line call:

    ExtractText -startPage 1 -endPage 1 filename.pdf
    

    Change 1 to the page number that you need.

提交回复
热议问题