Hi,
When converting a pdf from the given rtf file the pdf shows ''Reference Source Not Found" error on the table content. This happened in our customer site and we need the fix ASAP.
Please let us know if we have an hot fix for this Issue.
Please find the attachment of the zip which has the source rtf file and the out put pdf file.
Thanks,
Robert
Hi Robert,
Thanks for your inquiry. Please note that Aspose.Words mimics the same behavior as MS Word does. If you convert your document to Pdf using MS Word, you will get the same output. Aspose.Words and MS Word updates the REF field while rendering document to Pdf.
There are many REF fields in your input document. Please open your input document in MS Word and update the fields. You will get the error message (“Reference Source Not Found”) for REF fields. The reason of this issue is that there are no bookmarks in your document used in REF field.
Aspose.Words introduced new property as PdfSaveOptions.UpdateFields to avoid updating fields while rending document to Pdf. Please set the value of PdfSaveOptions.UpdateFields as false to get the required output. Default value for this property is true.
Document doc = new Document(MyDir + "RAS_RTF_REPORT.rtf");
PdfSaveOptions options = new PdfSaveOptions();
options.UpdateFields = false;
doc.Save(MyDir + "Out.pdf", options);