Skip to content

Conversation

Risord
Copy link

@Risord Risord commented May 20, 2019

PdfSharp.Pdf.InsertRange crash if there is fixed annotations.

Crash happen at the end of PdfSharp.Pdf.InsertRange:
page.Elements.Add(PdfPage.Keys.Annots, annotations);
since page have already annotations added by ImportExternalPage method. Therefore this seems like potential regression bug.

So use replace instead? Works nicely for me but I have no enough knowledge about PDF format to say should annotations be merged mode intelligently instead?

Adding annotations to page will crash since ImportExternalPage has already cloned them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant