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

Tilman Hausherr commented on PDFBOX-4556:
-----------------------------------------

The stacktrace is missing the line numbers. So I can see it fails in 
{{COSWriter.visitFromStream}} but not where. You did also not mention what 
exact version you are using.

Your code is incomplete. To find out why this NPE comes, and whether it is a 
bug or not, I'd also need something runnable on java. Alternatively tell me the 
parameter values for createVisualSignatureTemplate.

As I wrote in PDFBOX-4312, you need to start with the CreateVisibleSignature 
example from the source code download. I also wrote "{color:#333333}please 
don't open an issue if you are using IKVM. It isn't supported, and as this 
issue has shown, doesn't work{color}", yet you are using .NET code and thus 
likely IKVM.

Some parts are definitively wrong. e.g.
{code:java}
new 
PDAppearanceDictionary(signedDoc.getDocumentCatalog().getCOSDictionary());{code}

You're passing the document catalog to an appearance dictionary?! Just use the 
no-parameter constructor.

Also attach the target PDF file, i.e. the unfinished file. By having a look at 
the bottom one might know what COSStream has a problem.

> 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
>            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]

Reply via email to