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