Accessibility Tagged PDF tag is getting corrupted after saving the pdf using aspose

Hi Team,

We are using aspose PDF to change the parent tag in the PDF using “ChangeParentElement” method, but some tags are getting corrupted after saving the the PDF

Screen.png (54.7 KB)

@V.Balamurugan

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input PDF document.
  • Please attach the output PDF file that shows the undesired behavior.
  • Please attach the expected output PDF file that shows the desired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

Hi Team,

Thanks for your response, requested files are attached in this mail, kindly let us know if anything else needed, could you please check the issue and revert us the with a solution/workaround asap

We are using Aspose PDF library version 20.9.0.0

Description:

  1. When we use Aspose PDF library to manipulate the Tagged/Accessibility pdf, the tag structure are getting deleted in the output pdf as shown below

  2. Then we will validate this PDF using Commonlook Validator tool which shows the below error as this files are corrupted

Input PDF

image003.jpg

Output PDF with Issue

image005.jpg

Common look validator shows the below corruption error

image007.png

(Attachment Source_Code.txt is missing)

Corrupted_File.pdf (32.2 KB)

Input_File.pdf (39.4 KB)

@V.Balamurugan

You are using very old version of Aspose.PDF. Please upgrade to the latest version of Aspose.Email for .NET 22.6 and let us know how it goes on your side.

If you still face problem, please share the code that you are using. It is missing in your post. Thanks for your cooperation.

Hi Tahir,

Thanks for your response, as advised, I have used Aspose.pdf latest version, but still facing the same issue as requested sample source code are attached
Aspose_Sample.zip (133.4 KB)

@V.Balamurugan

We have logged this problem in our issue tracking system as PDFNET-52054. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.