[ 
https://issues.apache.org/jira/browse/PDFBOX-4556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16873880#comment-16873880
 ] 

bal commented on PDFBOX-4556:
-----------------------------

hi , i agree but when i pass the image of jpeg type it throws the llegalstate 
exception at the buildsignature and  at the pdjpeg constructor  as i previously 
mentioned. I also agree that i have to write in the appearence stream instead 
of pagecontentstream but how could i add image to pdf without calling the 
pagecontentstream.drawImage() method? i have tried but image not added without 
this method. i have also tried to set  bounding box as below

BoundingBox box = new BoundingBox(0, 0, sigWidth, sigheight);
 PDRectangle pdRectangle = new PDRectangle(box);

form.setBBox(pdRectangle);

but my image and the signaturefield are on the different locations. I have one 
doubt, can we add the image and the contents in the appearencestream  using the 
xobjects  in the resources instead of calling drawImage method of the 
pagecontentstream? I have just want to show the image and some contents in the 
signaturefield or the inserted blankbox the same way you did by editing the 
given pdf.

> how the visual representation of the signature is achieved  
> ------------------------------------------------------------
>
>                 Key: PDFBOX-4556
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4556
>             Project: PDFBox
>          Issue Type: Wish
>          Components: .NET
>    Affects Versions: 1.8.16
>            Reporter: bal
>            Priority: Major
>         Attachments: pdfImage-modified-by-tilman.pdf, pdfImage.pdf
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to