[
https://issues.apache.org/jira/browse/PDFBOX-4556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16868690#comment-16868690
]
Tilman Hausherr commented on PDFBOX-4556:
-----------------------------------------
1) Don't write in the page content stream. That is the "if (false)" part in my
code. This is misleading (the page content stream isn't used), and the PDF
won't show what you want.
2) The BBox should come from (0,0). So your BBox should be 0 0 150 250.
3) the "cm" command should have the dimensions of your image, thus "239 0 0
211 0 0 cm"
4) Your text isn't visible because it is black on a black background. "0 0 0
rg" is black. Position it elsewhere (with the "Tm" or the "Td" operator) or
make it white, e.g. with "1 1 1 rg" or "1 g".
5) I changed all this with NOTEPAD++ and your template looked better.
6) "How it will work to generate valid signed pdf using pkcs7 signature" =>
follow what is done in the CreateVisibleSignature example. The only difference
is that you use your InputStream (that is your saved PDF) and assign it with
{{signatureOptions.setVisualSignature(inputStream)}}.
7) All else I didn't understand, so please ask again and clarify.
> 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: image error stacktrace.txt, npe at adappearence
> dictionary.txt, pdfAnnotation.pdf, pdfImage-modified-by-tilman.pdf,
> pdfImage.pdf, visibleSignature.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]