0

We have created a web system that shows and image and using JavaScript you can select a section which will be moved to a new PDF document. To get this we have used the Java library iText.

Now we would like to do the same but instead of getting the portion of the image, we would like our users to be able to select a "Rectangle" in a PDF shown (we already got this to work) and move just the data in this area (covered by the Rectangle selected) to a new PDF.

Is this possible?, any idea where we can get some documentation about this or any examples??

Thanks a lot in advance

4

1 回答 1

0

您可以将其转换为 postscript,并使用此问题的解决方案来提取页面的一部分。然后转换回pdf。

转换应该是无损的(例如使用 pdf2ps/pdftops 和 ps2pdf)。

于 2013-10-02T18:45:27.087 回答