Free Support Forum -

Inserting differing text at top of each page in word document

I need to insert a line of text at the top of every page in a document. The documents have header, body and footer sections. If I use book marks in the header, and insert, the values will be repeated on each page. I need to be able to vary the values by page. Is there any way to accomplish this. Attached is an example. The line at the top is meant to simulate a fax header line with the page number increasing from 1, but the the various documents included in the total fax package each may have there own page number, so I can't use word page numbering.

Thanks for any suggestions,


<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. I think, you can achieve this by performing post-processing of PDF document. You can concatenate Word documents and convert the final document to PDF using Aspose.Words and then use Aspose.Pdf.Kit to add text at the top of each page:

Best regards.