Hello,
It seems that if I want to save a document as pdf, the alternative text from header’s image is lost. I don’t have any problems with .docx. Do you have a guideline for this or a workaround?
example:
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToHeaderFooter(HeaderFooterType.HeaderPrimary);
Shape imgObj = builder.InsertImage(img);
imgObj.AlternativeText = “blabla”;
Aspose.Words.Saving.PdfSaveOptions pdfOptions = new Aspose.Words.Saving.PdfSaveOptions()
{
PreserveFormFields = true,
ExportDocumentStructure = true,
Compliance = Aspose.Words.Saving.PdfCompliance.PdfA1a,
SaveFormat = Aspose.Words.SaveFormat.Pdf
};
doc.Save(pdfPath, pdfOptions);
Thanks!