We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

While merging two pdf document with bookmarks iam getting error

Hi,

while merging two pdf document with bookmarks i am getting below error,the related code mentioned below

"Object can’t be modified in this Registar. Use Export (recursive) and then try again.
"
Code:

Aspose.Pdf.Document pdfDocument11 = new Aspose.Pdf.Document( “R3.pdf”);
//open second document
Aspose.Pdf.Document pdfDocument2 = new Aspose.Pdf.Document( “R33.pdf”);

pdfDocument11.Pages.Add(pdfDocument2.Pages);
foreach (OutlineItemCollection item in pdfDocument2.Outlines)
pdfDocument11.Outlines.Add(item);
pdfDocument11.Save( “R33output.pdf”);


Hi Dheeraj,


Thanks for your inquiry. Please share your sample PDF documents, so we will test the scenario at our end and will provide you more information accordingly.

We are sorry for the inconvenience caused.

Best Regards,

Hi,

Here attached my sample PDF Files

Hi Dheeraj,


Thanks
for using our API’s.<o:p></o:p>

I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFNEWNET-37070. We will investigate this issue in details and will keep you updated on the status of a correction.

We apologize for your inconvenience.

The issues you have found earlier (filed as PDFNET-37070) have been fixed in Aspose.PDF for .NET 21.11.