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

Free Support Forum - aspose.com

Scope attribute in table in Aspose.words

Hi
Is there any way to set the Scope attribute of table headers in PDF file.
For example: th scope =“col”
We can check that in Acrobat pro - ‘Touch up Reading order’.
Please let us know if you have any option in any Aspose version to set that.
Please find the screenshot attached for the same.
scope screenshot.zip (78.5 KB)

Thanks

@cvsformulary

Thanks for contacting support.

Would you please provide a bit more details about your scenario like how you want to create a PDF document and which API you are interested to use in. Are you converting a word document into PDF or generating a PDF document from scratch. It would be helpful if you can provide some sample code snippet and input/output files so that we can test the scenario in our environment and address it accordingly.

We are converting Docx file to PDF. We want to set the scope attribute on the header of the tables after it gets converted into PDF. I know we cannot setup scope in Word document but is there any API available in Aspose.words which can set the same after or during coversion of PDF.

@cvsformulary

We are moving your query to relevant API category where we will assist you accordingly.

@cvsformulary,

Thanks for your inquiry. To ensure a timely and accurate response, please ZIP and attach the following resources here for testing:

  • Your simplified input Word document
  • Aspose.Words 18.9 generated output PDF file showing the undesired behavior
  • Your expected PDF document showing the correct output. We will investigate the structure of your expected document as to how you want your final output be generated like. You can create expected document by using Microsoft Word (Save As to PDF).

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

Hi
Please find the zip file with requested details.
Zip fle has:

  • Sample scope input file.docx - input Docx file
  • Aspose outputFile.pdf - output generated from Aspose
  • Expected outputFile - Expected output PDF file
  • SampleTest.java - Sample java program
  • Screenshorts for scope.docx - Screenshot on how to check the scopes of table.

Let me know if you need any more details.
Sample scope.zip (371.2 KB)

@cvsformulary,

We have logged your requirement in our issue tracking system. The ID of this issue is WORDSNET-17478. We will further look into the details of this problem and will keep you updated on the status of the linked issue. We apologize for your inconvenience.

Hi @awais.hafeez

We tried to convert following HTML to PDF:

Row Header1 Row Data1
Row Header2 Row Data2
Row Header3 Row Data3
Row Header4 Row Data4
Row Header5 Row Data5

In this there are row headers.

The tags created in PDF does not show them as Table Headers

.
Plus scope is also not set in PDF. Is there a way in Aspose words or Aspose PDF to convert HTML tables into PDF and maintain the scopes as well.

@cvsformulary,

We have logged your requirement in our issue tracking system. Your ticket number is WORDSNET-17798. We will further look into the details of this problem and will keep you updated on the status of the linked issues.

We will also update you from Aspose.PDF perspectives soon.

@cvsformulary

We have tested the scenario using Aspose.PDF and observed that Tags were not present in the resultant PDF document. Therefore, we have logged an issue as PDFNET-45705 in our issue tracking system. We will further look into details of the issue and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.

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