Print last page of a document osx

Asked by jt

I am trying to pass the last page value to the print dialog screen. How can i obtain that variable?

This particular document changes it's page length daily and the only page that needs to be printed is the last page. Am i able to somehow fill in the "from: ( ) to: ( ) with the last page of the document?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
jt
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Since Sikuli in the moment is not able to "read" (OCR to be implemented) information from an image, the easy way is not possible (read the input from a relevant info field an type() it into the print dialog).

for now try the following:
Click yourself into a situation, where you can count how often you have to scroll down until you reach the end of the document (try the page preview, where you can click in the top menu area) and calculate lastPage. then type(str(lastPage)) into the fields of the print dialog.

for some hints look at the examples and howto's on the Sikuli doc page.

may be helpful: https://answers.launchpad.net/sikuli/+question/98684

Revision history for this message
jt (jtoktas) said :
#2

Thank you for your help. Let's see if i can make it work.