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!

Optimizing my PrintCurrentPage button

Status
Not open for further replies.

BarbaraFuhrmann

Programmer
Aug 20, 2002
118
DE
Hi,

I'm a real JavaScript newbie and I'm sure that one of you can easily answer the following:

I created an PrintCurrentPage button in Adobe Acrobat Standard Edition with the ARTS Aerialist add on using the following JavaScript:

printCurrentPage();

function printCurrentPage()
{
/* Print Current Page */

var iCurrentPage = this.pageNum;
this.print({bUI: false, nStart: iCurrentPage, nEnd: iCurrentPage});
}

It's working fine but in some documents the printed page does not contain ALL I can see at the page in the PDF. Some parts close to the borders are missing.

When I use the print dialog I have the option "Page adjustment" (or similar, I don't know it exactly because I'm working with german versions of the software) set to "Adjust to page margins" activated. Is it possible to integrate this in the script? How?

Thank you!
Barbara
 
Hi BillyRay,

I just tried this. Furthermore I thought that it is a more generell question about JavaScript and hoped that at tek-tips there will be a greater number of experts, who probably may help.

Barbara

Barbara Fuhrmann (Cologne, Germany) - Using Windows 2000/XP, Oracle 9i and Crystal Reports X
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top