Convert word to pdf with tags

Hi,

When converting word document to pdf the document is not Taged and it loss the document accessibility

in one of the cases it’s written
“The issues you have found earlier (filed as WORDSNET-22083) have been fixed in this Aspose.Words for .NET 21.7 update and this Aspose.Words for Java 21.7 update .”

is it good also for the document tags?
can you provide .net code to convert the document properly ?

Thank you

@yaronz Please use the following code to get the desired output:

Document doc = new Document(@"C:\Temp\in.docx");
PdfSaveOptions opt = new PdfSaveOptions();
opt.Compliance = PdfCompliance.PdfUa1;
doc.Save(@"C:\Temp\out.pdf", opt);

Thank you , it helps
what about when merging several converted PDF files into one?
is there a way to keep the tags and structure then?

currently I’m loosing the tags and structure after merging.

This is part of my current code

Aspose.Pdf.Document Pdf = new Aspose.Pdf.Document(file);
combainedPdf.Pages.Add(Pdf.Pages);
combainedPdf.Pages.Insert(fromPage, Pdf.Pages);

Thanks again

@yaronz The question is related to Aspose.PDF. I will move the topic into the appropriate forum. my colleagues from Aspose.PDF team will help you shortly.

1 Like