Am 07.12.2015 um 19:24 schrieb Tilman Hausherr:
Am 07.12.2015 um 18:57 schrieb Глеб Г.Г.:
Hello to PDFBox community!
PDFBox version 2.0.0 RC 2
BouncyCastle version 1.53

I am using code from *CreateVisibleSignature* example
I am trying to apply visble signature to a certain page of pdf file, but no
matter what page number I pass to *setVisisbleSignatureProperties* and
*setSignatureProperties* example program still puts signature on first
page.



        // register signature dictionary and sign interface
if (visibleSignatureProperties != null && visibleSignatureProperties.isVisualSignEnabled())
        {
            options = new SignatureOptions();
options.setVisualSignature(visibleSignatureProperties);

options.setPage(visibleSignatureProperties.getPage()); /// <================ add this line

            doc.addSignature(signature, this, options);
        }
sorry, the modified line must be

options.setPage(visibleSignatureProperties.getPage() - 1);

I've changed the trunk accordingly. Please tell if it works for you.

Tilman



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

Reply via email to