pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Глеб Г.Г. <dartty...@gmail.com>
Subject Re: Unable to change page for visible signature.
Date Mon, 07 Dec 2015 18:56:28 GMT
It works! Thank you very much!

2015-12-07 21:31 GMT+03:00 Tilman Hausherr <THausherr@t-online.de>:

> 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: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message