[
https://issues.apache.org/jira/browse/PDFBOX-4556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16865554#comment-16865554
]
bal commented on PDFBOX-4556:
-----------------------------
hi, as you said i have tried with the 5 line code as you suggested and
visibleSignature.pdf is generated, i am attaching the PDF for you reference.
only blank box with no visual representation of the signature is shown in pdf
but when i open that pdf with notepad++ i have seen the image then why it is
not showing visually? i tried to create the template PDF as in
createvisualsignature2 example but getting null pointer exception at the the
PDAppearanceDictionary see below code
PDAppearanceDictionary appearance = new PDAppearanceDictionary();
appearance.getCOSObject().setDirect(true);
PDAppearanceStream appearanceStream = new
PDAppearanceStream(form.getCOSStream());
appearance.setNormalAppearance(appearanceStream);
widget.setAppearance(appearance);
Also getting the same error "Could not read all needed objects from template"
at the addsignature when i return the template as inputstream. I have checked
with the debugging that annotation and signaturefield is set with the acroform
but i am not sure it is set or not. I have attached the pdf with name
"pdfAnnotation.pdf" for this. please check and let me know if annotation and
signaturefield is set or not with the acroform.
> 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
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]