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
annotations are lost while appending pages with PDFDocumentCopyingContext::AppendPDFPageFromPDF:
it seems like DocumentContext::mAnnotations is not feed from source page to document context before writing the page to destination ?
Note that this issue is not reproducible with PDFWriter::ModifyPDF: it is only reproducible while using a PDFDocumentCopyingContext from a source file or stream returned by PDFWriter::CreatePDFCopyingContext and then append pages from this source context.
i guess it would need for AppendPDFPageFromPDF to copy annotations from source page to DocumentContext::mAnnotations in append pages code before calling write page method because the write page method code assumes annotations to write for page are stored in DocumentContext::mAnnotations.
The text was updated successfully, but these errors were encountered:
actually i wrongly thought that because annotations are referenced in pdf page with /Annots that it should be copied too while copying pages but my mistake so: thanks again.
annotations are lost while appending pages with PDFDocumentCopyingContext::AppendPDFPageFromPDF:
it seems like DocumentContext::mAnnotations is not feed from source page to document context before writing the page to destination ?
Note that this issue is not reproducible with PDFWriter::ModifyPDF: it is only reproducible while using a PDFDocumentCopyingContext from a source file or stream returned by PDFWriter::CreatePDFCopyingContext and then append pages from this source context.
i guess it would need for AppendPDFPageFromPDF to copy annotations from source page to DocumentContext::mAnnotations in append pages code before calling write page method because the write page method code assumes annotations to write for page are stored in DocumentContext::mAnnotations.
The text was updated successfully, but these errors were encountered: