pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JZ Q <ccna2c...@gmail.com>
Subject Re: how to attach an image as annotation to PDF file?
Date Thu, 26 Apr 2018 23:54:53 GMT
Hi Tilman,

Thank you for info in your previous reply. I tried the code
and it works, but I simply want to attach an image of signature at
appropriate places in PDF. The agent  will print the document with his
signature and pass it to client for manual signing.

How to use the   PDAnnotationWidget or rubberstamp annotation? Is there
anything I can read to get a better understanding. Thanks.


On Tue, Apr 24, 2018 at 3:08 PM, Tilman Hausherr <THausherr@t-online.de>

> Assuming you don't mean an electronic signature, the best would be a
> rubberstamp annotation. To include the image you'd need to create an
> appearance stream, which is quite tricky. See CreateVisibleSignature2.createVisualSignatureTemplate
> in the source code download. Although that one is about signature fields,
> you should start from widget which has the type PDAnnotationWidget, but do
> everything that is done for "widget" for your rubberstamp annotation.
> Try to get this working, don't try too long / too hard, post the code that
> you did here to get more help.
> See AddAnnotations in the source code for a general example how to add
> annotations.
> Tilman
> Am 24.04.2018 um 15:14 schrieb JZ Q:
>> Hi everyone,
>> I need to attach image (not text) of initials and signature to certain
>> field or position in the pdf file. Do you know how to do it?
>> Take the following document as example, at the bottom of the form, there
>> are places the users can put initial and signatures. How to add images
>> (jpg, gif) of the signature to the right form field? Thanks.
>> https://drive.google.com/file/d/18k-MaJR2QLsVcjgf95y3gtu5By0
>> HJs1X/view?usp=sharing
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org

Best Wishes,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message