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

Free Support Forum - aspose.com

Hide Comments & Convert DOC to PDF C# .NET | Disable Use Printer Metrics to lay out Document Option

file.zip (177.5 KB)
hello,
why there is a layout difference when i convert a doc file to pdf format. I am using version 20.8.0 of Aspose.Words (.NET).
I do a simple conversion without options, I just hide the comments.
Thank you.

Document SignedDoc = new Document(Path.Combine(folder, fileName));
SignedDoc.LayoutOptions.ShowComments = false;
var options = new Aspose.Words.Saving.PdfSaveOptions {
    SaveFormat = Aspose.Words.SaveFormat.Pdf
};
SignedDoc.Save(Path.Combine(folderDestination, fileNamePDF), options);

@SylvainAxonCable,

We have logged your problem in our bug tracking system with ID WORDSNET-20992. Your forum thread has also been linked to this issue and you will be notified as soon as it will get resolved in future. Sorry for the inconvenience.

hello, do you have any news on the progress on the subject? Because I work on program and I block on this point.

@SylvainAxonCable,

Please try to turn off the printer metrics. This feature depends on the actual default printer driver in the OS and if disabled may result in good rendering of the document on your end.

doc.CompatibilityOptions.UsePrinterMetrics = false

Disable Use Printer Metrics to lay out Document

Hello,
Thanks, I will test this solution.