Hi,
We are using last version Aspose.Words.Document to convert Docx/Dotx to PDF.
Ex. :
var lAsposeDoc =new Aspose.Words.Document(lFullPathFile);
lAsposeDoc.Save(lStream, Aspose.Words.SaveFormat.Pdf);
Dotx documents contains mergeflelds and datasource is stored with path in the dotx.
Ex. : \Datas\MyDatas.txt
If datasource file does not exists when converting Dotx to PDF, we have this exception :
The document appears to be corrupted and cannot be loaded
PDF dont depend on datasource : we dont want to show fields values, just fields names.
Is there an option to ignore datasource or to avoid this exception ?
you can reproduce it on your demo : https//produts.aspose.app/words/fr/conversion/dotx-to-pdf
with the file in attachment : Aspose-pattern-test.zip (16.1 KB)
If we remove the datasource in this file, the conversion work again.
question : is it possible to “ignore” the datasource with a parameter or something like that ?
Thanks