All revisions are not being accepted when AcceptAllRevisions() is called.
Text in the source document that has been deleted displays in Word (“Final Showing Markup”) as red and struck through. After calls to AcceptAllRevisions() and SaveToPdf(), instead of being deleted it displays in the converted PDF in normal color and without the strikethrough. See attached files. Code is shown below.
Document doc = new Document(tbInFilePath.Text);
doc.UpdatePageLayout();
doc.UpdateFields();
CompressImages(doc, 220); //based on this post
doc.AcceptAllRevisions();
Aspose.Words.Saving.PdfOptions pdfOptions = new Aspose.Words.Saving.PdfOptions();
pdfOptions.HeadingsOutlineLevels = 3;
pdfOptions.ExpandedOutlineLevels = 1;
pdfOptions.BookmarksOutlineLevel = 9; //max allowed value is 9
pdfOptions.JpegQuality = Convert.ToInt32(jpegQuality.Value);
pdfOptions.TextCompression = PdfTextCompression.Flate; //zip compression
doc.SaveToPdf(0, doc.PageCount, pdfPath, pdfOptions);
thanks,
Ken