Re: convert annotation or markup tp printable image

2018-06-10 Thread Tilman Hausherr
It means that the appearance stream of an annotation would be integrated into the page itself as a form XObject and then the annotation removed. Of course this would only work if the appearance stream exists. This is the case if the annotation was created with Acrobat. PDFBox 2.0 doesn't creat

Re: convert annotation or markup tp printable image

2018-06-10 Thread JZ Q
Hi Tilman could you please elaborate on the "flattening" idea?I agree with you that this should be the right direction to go. Thanks. " An alternative would be to support the "flattening" of annotations like we do for Acroform fields." On Sun, Jun 10, 2018 at 8:31 AM, Tilman Hausherr wrote: >

Re: convert annotation or markup tp printable image

2018-06-10 Thread Tilman Hausherr
You should have a look at the AddImageToPDF example, and the ImageToPDF tool in the source code download. You have have to adjust the page size in "new PDPage". However all this is a terrible idea because it will take a long time and use a lot of memory (you need 300dpi at least, better 1200dp

Re: convert annotation or markup tp printable image

2018-06-10 Thread JZ Q
Hi Tilman, thank you for the quick reply. The link you posted will convert each page to png file. How do I merge the converted png into a simple PDF witch one PNG per page? On Sun, Jun 10, 2018 at 8:20 AM, Tilman Hausherr wrote: > Am 09.06.2018 um 23:54 schrieb JZ Q: > >> Hi Tilman, >> >> In my

Re: convert annotation or markup tp printable image

2018-06-10 Thread Tilman Hausherr
Am 09.06.2018 um 23:54 schrieb JZ Q: Hi Tilman, In my case, the client prints the PDF using the ctrl+P and then pick printers. All the annotations have the printing flag set, but if the user does not select print "document and markup" option, the markups are not printed at all. Is there any way