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

Free Support Forum - aspose.com

Not all revisions accepted by AcceptAllRevisions()

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

Hi

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

Thanks for your inquiry. The problem occurs because you accept revisions after updating page layout. When you call UpdatePageLayout, pages layout is cached in the model, so accepting changes in the document has no effect when you save document in PDF.

You can easily resolve the problem by accepting revisions before calling UpdatePageLayout.

Please let me know in case of any issues, I will be glad to help you.

Best regards.