Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

addField Is it possible to align top and center of a page...

Status
Not open for further replies.

dsatele

Technical User
Nov 9, 2010
1
US
...regardless of page orientation.

I need to add a form field to be on the top - centered on the page regardless if the page is portiat or landscape. Is this possible?

Everything works like a Charm with the exception of the alignment on the different page orientation - Here is what I have so far:

// add form field to each page of the PDF
for (var pageNumber = 0; pageNumber < this.numPages; pageNumber++) { var dateStamp = this.addField("DateStamp","text",pageNumber,[450,770,155,790]); dateStamp.textSize=10; dateStamp.textColor=color.red;}

Please help!
DSatele
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top