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

Free Support Forum - aspose.com

Problem on conversion Word to PDF

Hi,


I have problem on conversion Word to PDF result.

Some text are crossed and are in red. See the file attach.

i use this code:
Aspose.Words.Document doc = new Aspose.Words.Document(“C:\DT617_test.docx”);
doc.Save(“C:\DT617_test.pdf”, Aspose.Words.SaveFormat.Pdf);

Can you help me??


Thanks by advance,


Laurent

Hi Laurent,


Thanks for your inquiry. We have tested the scenario with your shared document using Aspose.Words for .NET 17.4 and unable to notice the reported issue in resultant PDF. Please find attached output for your reference. Please download and try latest version of Aspose.Words for .NET, it will resolve the issue.

Best Regards,

Hi,


Thanks for this answer.
I test with the version 17.4 and its working but there a weird things on the left on the page.
There are 2 vertical red line. You can see it on your file result.

Is it normal??

Thanks

Best Regards,

Laurent

Hi Laurent,


Thanks for your feedback. I have noticed the reported vertical lines in resultant PDF, so logged a ticket WORDSNET-15219 in our issue tracking system for further investigation and rectification. We will notify you as soon as it is resolved.

We are sorry for the inconvenience.

Best Regards,

Hi Laurent,


Thanks for your patience. We have investigated the issue and found that these vertical lines in resultant PDF are revision bars, it might be a model issue. A workaround would be to accept revisions to hide bars. Please confirm whether this workaround will work for you. Otherwise we can fix this issue, though it is a minor and insignificant.


Aspose.Words.<span style=“font-size:10.0pt;font-family:
“Arial”,“sans-serif”;mso-fareast-font-family:“Times New Roman”;color:#2B91AF”>Document document = <span style=“font-size:10.0pt;
font-family:“Arial”,“sans-serif”;mso-fareast-font-family:“Times New Roman”;
color:blue”>new Aspose.Words.<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif”;mso-fareast-font-family:
“Times New Roman”;color:#2B91AF”>Document(<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif”;
mso-fareast-font-family:“Times New Roman”;color:#A31515”>“DT617_test.docx”);<span style=“font-size: 12pt; font-family: “Times New Roman”, serif;”><o:p></o:p>

document.AcceptAllRevisions();

document.Save("DT617_test.pdf");


Looking forward to your feedback.

Best Regards,

Hi,


I try with document.AcceptAllRevisions();
The red vertical line has disappear but the information on top right also disappear.(see your file).

So if you can fix this issue, I will be happy
Thanks

Laurent

Hi Laurent,


Thanks for your feedback. We have noticed the missing text issue and shared the findings with the product team for further investigation. We will notify you as soon as update is available.

Best Regards,
Hi Laurent,

Thanks for your patience. Please note these bars are displayed whenever content of the document differs in original revision compared to current. If revisions are accepted or rejected then bars are not displayed because there are no differences remaining in the document. However accepting/rejecting revisions apparently changes document content by either removing or adding changes as per revisions.

However, you can configure RevisionOptions to hide these bars. Please check following sample code, it will resolve the issue.

Aspose.Words.Document doc = new Aspose.Words.Document("DT617_test.docx");

RevisionOptions ro = doc.LayoutOptions.RevisionOptions;

ro.ShowRevisionBars = false;

doc.Save(@"DT617_test.pdf");


Best Regards,