Does pdfA1a support TOC and TOC Item (TOCI) tags?

When converting a docx document that includes a table of content into a Pdf using the PdfCompliance.PdfA1a compliance option we noticed that all table of content elements are tagged as <P> instead of the recommended <TOC> or <TOCI> tags.
Is there a way to generate the PDF using the <TOC> and <TOCI> for table of content elements?

@leonel10,

Please ZIP and upload your 1) sample Word document, 2) Aspose.Words generated output PDF file and 3) source code here for testing. Also, please provide complete steps that we can follow on our end to verify/analyze the tags in PDF.

Hi @awais.hafeez,

Thank you very much for your response.

The next ZIP file contains the requested information:

AsposeWords_PDFA1-TOC_Tags.zip (335.2 KB)

  1. Sample Word Document: Example_Guide.docx
  2. Aspose.Words Generated Output: Example_Guide.pdf
  3. Source Code: CodeSnippetToConvertDocxToPDF.txt
  4. Steps to Verify:
  • Open the pdf document with Adobe Acrobat Pro DC
  • Show the Tags option in the toolbar View/Show-hide/Navigation Panes/Tags
  • Click on the Tags options and you will see the generated tags for the Aspose.Words generated pdf (Example_Guide.pdf), and a Microsoft Word generated pdf (Example_Guide_savedFromTool.pdf). You will notice that the Aspose.Words generated pdf does not include the TOC tags.
  • For convenience we included a screenshot showing the difference between both Pdfs in the WordPDF-AsposePDF-Tags_TOC.PNG image file.

Please let me know if you need any additional information,

Thank you very much again,

Leonel

@leonel10,

For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-17401. We will further look into the details of this problem and will keep you updated on the status of this issue. We apologize for your inconvenience.

Hi @awais.hafeez,

We have identified additional issues with PDF tags. What would be the best way to report them? Should we just add them to this thread? or create a new one?

Thank you very much for your response,

Leonel

@leonel10,

Sure, you can create new threads for different topics. This will keep discussions separate. In your other thread, please ZIP and upload your input Word document, Aspose.Words generated PDF file showing the undesired behavior and issue description for testing. We will then investigate the issue on our end and provide you more information.

The issues you have found earlier (filed as WORDSNET-17401) have been fixed in this Aspose.Words for .NET 19.5 update and this Aspose.Words for Java 19.5 update.