We are considering the purchase of Aspose.Words for .NET.
So far we are satisfied with the product except for one issue.
We have a templating system in which we start with a template document and replace placeholders.
We also have a placeholder in the headers.
The placeholder got replaced when generating a document into Docx format, but if we save it as Pdf, the original placeholder stays in.
Can this be a bug?
Hi Sven,
Thanks for your inquiry.
The Document.UpdatePageLayout method is automatically invoked when you first convert a document to PDF, XPS, image or print it. However, if you modify the document after rendering and then attempt to render it again - Aspose.Words will not update the page layout automatically. In this case you should call UpdatePageLayout before rendering to PDF again. Please let us know any time you have any further queries.
Best regards,
Calling UpdatePageLayout solved the problem indeed!
Although I don’t find it very intuitive.
Hi Sven,
You can find some description of this method here:
https://reference.aspose.com/words/net/aspose.words/document/updatepagelayout/
Best regards,