You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is my quick solution, which copies the root of the original PDF to the output after annotations are merged.
# insert after the line:# outpdf = add_annotation2pdf(inpdf, outpdf, annotations)# Copy the root (document catalog) except for /Pages# PDF Reference, Sixth Edition, version 1.7, p.137# https://www.adobe.com/devnet/pdf/pdf_reference_archive.htmlfork,vininpdf.trailer["/Root"].items():
ifk.getObject() !="/Pages":
outpdf._root_object.update({k: v})
Table of contents / outline of PDF files is not preserved after conversion. This would make it very difficult to navigate some long articles.
The text was updated successfully, but these errors were encountered: