We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How can I add an id in a specific spot in a word document?

My employer wants to save a varied selection of word documents as pdf. We have this functionality working fine and Aspose.Words. has made that very simple. One problem we're trying to solve is that we want to put an identifier (we generate this ourselves) in the word document such that it is in a consistent location. This is giving us all kinds of trouble. It's not anything Aspose.Words is doing, but rather, there are several thousand documents with different margins.

You see, once the pdf is created, we have to specify specific coordinates to another piece of software so that it can read those coordinates and archive the pdf with the value at those coordinates being the key. The id value I'm talking about is intended to be that key, but I'm can't find a way to place text in a word document through Aspose.Words based strictly on coordinates. Is such a thing possible?

If we somehow converted this id to an image and tried to place it on the word document, could we specify coordinates then?

Currently, the best we've got is to insert it after whatever is in the footer. Still, given the varying Left & Bottom margins and the fact that some documents may have footer text and others might not....It's proving quite a challenge.

Hi Jason,

Thanks for your inquiry. Please note that Aspose.Words mimics the same behavior as MS Word does. You can insert contents according to your requirements in your Word document and save it to Pdf output. I suggest you please read following documentation link for your kind reference.

Unfortunately, I have not understood your query. It would be great if you please share some more detail about your query.

Please manually create your expected Word document using Microsoft Word and attach it here for our reference. We will investigate how you want your final output document be generated like. We will then provide you more information on this along with code.