It works! Thank you very much!
2015-12-07 21:31 GMT+03:00 Tilman Hausherr <[email protected]>:
> 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]
>
>