EldoS | Feel safer!

Software components for data protection, secure storage and transfer

PDF signing

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#2526
Posted: 03/15/2007 07:32:05
by Qualisoft CQPD (Standard support level)
Joined: 03/13/2007
Posts: 55

How can i configure Sig.WidgetProps.OffsetX or Sig.WidgetProps.OffsetY
in percentage of the size the first page of the document?

The property: Document.PageInfos(0).Height and Sig.WidgetProps.OffsetX
are using inches, points, pixels....?

How can i configure the signature in the second page? It is possible to
specify the page number of the signature?

thanks for help
#2528
Posted: 03/15/2007 09:31:28
by Ken Ivanov (EldoS Corp.)

Quote
The property: Document.PageInfos(0).Height and Sig.WidgetProps.OffsetX are using inches, points, pixels....?

Page dimensions are specified in default user space units. The PDF specification provides the following explanation for default user space units:
Quote

In PDF versions earlier than PDF 1.6, the size of the default user space unit is fixed at 1⁄72 inch. In Acrobat viewers earlier than version 4.0, the
minimum allowed page size is 72 by 72 units in default user space (1 by 1 inch); the maximum is 3240 by 3240 units (45 by 45 inches). In Acrobat versions 5.0 and later, the minimum allowed page size is 3 by 3 units (approximately 0.04 by 0.04 inch); the maximum is 14,400 by 14,400 units (200 by 200 inches).
Beginning with PDF 1.6, the size of the default user space unit may be set with the UserUnit entry of the page dictionary. Acrobat 7.0 supports a maximum UserUnit value of 75,000, which gives a maximum page dimension of 15,000,000 inches (14,400 * 75,000 * 1⁄72). The minimum UserUnit value is 1.0 (the default).

That's why you can treat width and height of the page as some abstract units and adjust signature widget location basing on the percentage of the size of the page.

Quote
How can i configure the signature in the second page? It is possible to specify the page number of the signature?

Yes. Please consider using TElPDFSignature.Page property to specify the page. You can also turn on TElPDFSignature.WidgetProps.ShowOnAllPages property to duplicate signature widget on all the pages of the document.

Reply

Statistics

Topic viewed 1737 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!