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?
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?