Re: Print PDF page by page
Re: Print PDF page by page
- Subject: Re: Print PDF page by page
- From: Randall Perry <email@hidden>
- Date: Sat, 08 Nov 2003 12:23:28 -0500
The code you suggested works. However, ran into another problem.
Setup a print style called 2-up which prints 2 pages on one sheet. If I use
the following code it uses the 2-up style but only prints one of the pages
(on the left side), though 2 pages are output in the page range for the
print line (see results below).
Anyone know why this happens?
Code
____
tell application "Acrobat 5.0"
repeat with i from 2 to 3 by 2
print pages first i last (i + 1)
end repeat
end tell
Log events and results
______________________
tell application "Acrobat 5.0"
print pages first 2 last 3
end tell
>
On 23/10/03 11:33 AM +1000, Randall Perry, email@hidden, wrote:
>
>
> I have problems with certain pages of PDF docs choking my printer. I need a
>
> script to print page by page so the whole job doesn't get cancelled when one
>
> page gets a ps error.
>
>
>
> Given this structure, could someone fill in the blank for me?
>
>
>
> tell application "Adobe Reader 6.0"
>
>
>
> repeat with i from 4 to 26
>
> printPageByPage
>
> end repeat
>
>
>
> end tell
>
>
I don't think Reader is scriptable. With the full version you could try
>
(untested):
>
>
repeat with i from 4 to 26
>
print pages active doc first i last i
>
end repeat
--
Randall Perry
sysTame
Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales
http://www.systame.com/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.