Web accessability directive - Pdf from docx

Hi,
Is it possible to make convert pdf:s from docx that supports the web accessibility directive? Need to get automated flow to get the structure for headings and the title from the metadata in the docx into the pdf.

@Cary_Ekholm

You can convert Word document to PDF using Aspose.Words. Could you please share some more detail about your requirement along with input and expected output PDF? We will then provide you more information about your query.

We need to get the structure for headings from word (eg Heading 1, heading 2). And we also need to get the title from the wordfile in to the pdf as a title. All according to the european legislation web accessability directive.

It’s possible to check the accassability in Acrobat pro, and if properly done in Word and then converted into pdf with aspose we would like there to be no remarks in the check for accessability.

@Cary_Ekholm

You can use PdfSaveOptions.ExportDocumentStructure property to export document structure. This value is ignored when saving to PDF/A-1a because document structure is required for this compliance.

Please note that exporting the document structure significantly increases the memory consumption, especially for the large documents.

Following code example shows how to convert a .docx to .pdf while preserving the document structure.

Document doc = new Document(MyDir + "Paragraphs.docx");

// Create a PdfSaveOptions object and configure it to preserve the logical structure that's in the input document
// The file size will be increased and the structure will be visible in the "Content" navigation pane
// of Adobe Acrobat Pro
PdfSaveOptions options = new PdfSaveOptions();
options.ExportDocumentStructure = true;

doc.Save(ArtifactsDir + "PdfSaveOptions.ExportDocumentStructure.pdf", options);
1 Like