How to set up measures of rectangle for electronic signature

The PDF-XChange Viewer for End Users
+++ FREE +++

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

robert502
User
Posts: 2
Joined: Mon Nov 01, 2010 9:50 am

How to set up measures of rectangle for electronic signature

Post by robert502 »

Could you advice me if It possible to set up measurement of rectangle for an electronic signature ?
I use some graphics in PDF-XChange with my electronic signature and the implicit measures of the rectangle are quite small so in each case I have to enlarge signature area manually. Is there an option how to set the different implicit enlargement the rectangle for an electronic signature?
Robert.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: How to set up measures of rectangle for electronic signature

Post by Stefan - PDF-XChange »

Hello Robert,

I am afraid that for the moment the only way is to drag the size with the mouse every time you place a new signature.
Will speak with the dev guys to see what their plans for the future are.

Best,
Stefan
robert502
User
Posts: 2
Joined: Mon Nov 01, 2010 9:50 am

Re: How to set up measures of rectangle for electronic signature

Post by robert502 »

Hello Stefan,
thanks for your quick answer.
Isn’t there a way to use Java script to set up initial measure area for digital signature? I’ve found an example:
(var f = this.getField( "mySigField" );) but I don’t know how to set x,y measures.
Robert.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2451
Joined: Thu Jun 30, 2005 4:11 pm

Re: How to set up measures of rectangle for electronic signature

Post by Vasyl - PDF-XChange »

Hi, Robert.

You may use the next script:

Code: Select all

var f = this.getField("Signature1");
var r = f.rect;
// r[0]; // left X 
// r[1]; // top Y
r[2] += 50; // right X, width + 50pt 
r[3] -= 50; // bottomY, height + 50pt
f.rect = r;
This java script enlarges the rectangle of dig-sig field named as "Signature1".
Currently there is an issue that after this script is executed the appearance of the signature field is broken(hidden), BUT after you save/close/open the document the field would appear just fine.
The described issue with the field appearance will be fixed in the next build.

Best
Regards.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.