Hello!
We have been using Aspose to convert Docx to pdfa-1a.
There are images and text in the footer and header of the Docx document.
Footer and header elements should not be exported as a document structure to the result pdf file.
However, the footer image is exported to a document structure. And if the document has several pages, then the footer image appears in the document structure several times.
Is this known behavior?
Is there any workaround to exclude the footer image from pdf tag structure?
Will this behavior be fixed?
NOTE: all ok with header image and text in footer/header.
thanks.
Code example:
var inputFilePath = "test_doc.docx";
var outputFilePath = "result.pdf";
var inputDocument = new Aspose.Words.Document(inputFilePath);
var pdfSaveOptions = new Aspose.Words.Saving.PdfSaveOptions();
pdfSaveOptions.OutlineOptions.HeadingsOutlineLevels = 9;
pdfSaveOptions.DisplayDocTitle = true;
pdfSaveOptions.DmlRenderingMode = Aspose.Words.Saving.DmlRenderingMode.DrawingML;
pdfSaveOptions.ExportDocumentStructure = true;
pdfSaveOptions.Compliance = PdfCompliance.PdfA1a;
inputDocument.Save(outputFilePath, pdfSaveOptions);
Files
result_from_aspose.pdf (24.5 KB)
result_from_word.pdf (191.2 KB)
tags_if_convert_with_aspose.png (8.1 KB)
tags_if_save_from_word.png (4.9 KB)