tcpdi icon indicating copy to clipboard operation
tcpdi copied to clipboard

PDF Annotations/hyperlinks are not preserved

Open henrywood opened this issue 9 years ago • 4 comments

Any documents that have PDF annotations/links in them will be lost when using TCPDI.

I think - however - that this is a problem with FDPI.

I came to this github project hoping that TCPDI would properly preserve links (contrary to FPDI) but that appears not to be the case ?

/Henrik

henrywood avatar Feb 01 '16 16:02 henrywood

Hi @henrywood, I've just pushed v1.1 of TCPDI and tcpdi_parser, which (together) support importing annotations. Can you please try again using v1.1, and report back with the results? If your content is still not fully supported, can you please either attach a sample PDF here or email it to me at tcpdi-samples at nex.gen.nz, so I can dig deeper?

pauln avatar May 03 '16 03:05 pauln

Hi all, I've tried the new version with a file highlighted with PdfClown and it seems not working. 572b0b9e80fed.pdf

Lorenza avatar May 05 '16 09:05 Lorenza

I initially only followed @pauln 's instructions above (meaning I updated TCPDI and tcpdi_parser) which did not make the preservation of highlights work for me.

After this I followed the instructions in the updated readme which states that you need to adjust: $pdf->importPage(1, '/BleedBox'); and add: $pdf->importAnnotations(1);

This fixed the issue for me and highlights are now preserved after my document has been run through TCPDI. I'm pointing this out simply for people reading this that searched for 'tcpdi highlight' and might make the same mistake as I did.

My thanks to @pauln for supporting annotations in version 1.1

olger01 avatar Jun 02 '16 15:06 olger01

Hi all;

It seems not working for internal links on PDF 1.5. any solution? sample.pdf

RafikHaceb avatar Jun 16 '16 08:06 RafikHaceb