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

Free Support Forum - aspose.com

Do not print MS Word Track Changes when converting to PDF (via Aspose.Pdf)

When the MS Word option, "Track Changes" is turned on, the default behavior when printing is to print the changes (in red, underlined markup.) There is a "Print what" option in the MS Word printing dialogbox. When set to "Document", MS Word prints the document WITHOUT the Tracking Changes mark-up. I want to be able to change the "Print what" to "Document" (without changes markup) at the time I am converting the MS Word document to PDF using Aspose.Pdf. Here's my current code...

Document doc = new Document(filename);

//Must first save the Word file as XML

doc.Save(strPdfOutput + @"\temp\" + rootfilename + "xml", SaveFormat.AsposePdf);

Aspose.Pdf.Pdf pdfDoc = new Aspose.Pdf.Pdf();

pdfDoc.BindXML(strPdfOutput + @"\temp\" + rootfilename + "xml", null);

pdfDoc.Save(strPdfOutput + @"\" + rootfilename + ".pdf");

Attached is a screenshot of the MS Word printing dialog where the "Print what" option appears that I want to change (from default of "Document showing markup" to "Document") programmatically either in Aspose.Word or Aspose.Pdf. Is this possible using the Aspose tools?

-Kyle

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. This option is not stored in the word document. So you can’t change it using Aspose.Words.

Best regards.