When I’m merging two tagged pdf files
The merged file is loosing his tags.
Is there anything I can do with it?
here is my code
Document pdfDocument1 = new Document(“1.pdf”);
Document pdfDocument2 = new Document( “2.pdf”);
pdfDocument1.Pages.Add(pdfDocument2.Pages);
pdfDocument1.Save(“Merged.pdf”);
We were able to replicate the issue in our environment while using Aspose.PDF for .NET 21.10. It has been noticed that the content of second file in the final merged document was not tagged any more. Therefore, an issue as PDFNET-50866 has been logged in our issue management system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.
Still with this issue
is it possible to extract the tags (with ITaggedContent taggedContent = document.TaggedContent)
and after merge return the tags to the document?
if so, please share code.
We are afraid that it is not possible to extract and preserve the tags to reassign in the PDF after merging. The ticket has also been not resolved yet due to other issues in the queue logged prior to it. However, we have recorded your concerns and will surely let you know as soon as we have some definite updates about ticket resolution. Please be patient and spare us some time.
We are sorry for the inconvenience.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.