aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Embed a signature image in word doc or in PDF doc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Embed a signature image in word doc or in PDF doc" Watch "Embed a signature image in word doc or in PDF doc" New topic
Author

Embed a signature image in word doc or in PDF doc

Murali Narayanaswamy
Greenhorn

Joined: May 29, 2007
Posts: 24
Hi,
I am capturing a signature image from a verifone device in a bmp format. The size of the image is 3KB. I want to embed the image in a word doc or in PDF doc where all the place holder of signature (X user_signature) is present in the document. In short I want to replace the user_signature with the signature captured in BMP format. Also the alignment of the document should not be altered.

I would greatly appreciate if any hints are given on this.

Thanks
Murali
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42942
    
  68
You can't really change PDF documents in this way (without using Acrobat Professional, that is).

As for altering word files, your best bet is the OpenOffice Java API (see http://faq.javaranch.com/java/AccessingFileFormats for some links). Not an easy task, though.

It would be easier to generate a document on-the-fly (esp. a PDF or RTF) than to alter an existing one.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Embed a signature image in word doc or in PDF doc