Hello,
In an ASP.net application:
-
I use the document builder to insert content into a document.
-
Then I update the document by calling
doc.UpdateTableLayout();
doc.UpdatePageLayout();
doc.UpdateFields(); -
Then I download the file in PDF format to the user’s machine with doc.Save(“BES Report.pdf”, Aspose.Words.SaveFormat.Pdf, Aspose.Words.SaveType.OpenInWord, Response);
The document has multiple sections. Sections have a footer with a StyleRef field to produce the current “Heading 2” or “Mock Heading 2” text.
THE PROBLEM IS: the footers use either the first or last heading text, instead of the current heading text.
Using Aspose.Words.SaveFormat.Doc or Aspose.Words.SaveFormat.Rtf produces correct footers throughout the document.
Does anyone know what I need to do to produce correct PDF footers?
Thanks for any help you can provide.
-Greg Peters