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

Free Support Forum - aspose.com

Save as PDF creates different tag structure than Word

Using Aspose.Words 22.10
Attached samples of the docx saved as PDF from Word, Aspose.Words format 1.7 and format UA-1 and screenshots of the tag structure generated.
Aspose is grouping the LI’s differently and the continued text of the list item doesn’t have the correct parent.

var pdfSaveoptions = new Aspose.Words.Saving.PdfSaveOptions();
pdfSaveoptions.CustomPropertiesExport = Aspose.Words.Saving.PdfCustomPropertiesExport.Metadata;
pdfSaveoptions.OutlineOptions.HeadingsOutlineLevels = 3;
pdfSaveoptions.OutlineOptions.ExpandedOutlineLevels = 0;
pdfSaveoptions.ExportDocumentStructure = true;

UsersRegisteredTestTemplate_toExport.zip (279.8 KB)

@bruceb6 Thank you for reporting the problem to us. For a sake of correction it has been logged as WORDSNET-24606. We will keep you updated and let you know once the issue is resolved or we have more information for you.

The issues you have found earlier (filed as WORDSNET-24606) have been fixed in this Aspose.Words for .NET 23.1 update also available on NuGet.

1 Like