Discussion Locked

printing 1 page of N *.pdf files

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
How can I print the first page of 100-200 dpf file from
the same folder without opening them with Acrobat Reader???
Maybe there is some programs with console acces and I will try to
write a little bach file ??
Tnanx in advance , Ati

2 replies

by jackofalltech

Get AutoIt free from www.hiddensoft.com. It is a VERY powerful automation tool with a fairly easy learning curve. You can create a script to get each filename, open it in Reader, bring up the print dialog, set the page range, and exit. Also, the script can be compiled for speed.

Ralph

by jackofalltech

Here's a start. Save the following as PrtPdf1stPg.AUT and compile it

;----------------------------------------------
;The next 2 lines should be one
RegRead, AR, REG_SZ, HKEY_CLASSES_ROOT, Software\\Adobe\\Acrobat\\Exe,

Run, %AR% %1%
WinWait, Acrobat Reader - [%1%]
WinActivate, Acrobat Reader - [%1%]
Send, ^p
WinActivate, Acrobat Reader - [%1%]
Send, !g{Tab}1{Tab}1{Enter}
Sleep, 1024
WinActivate, Acrobat Reader - [%1%]
Send, !{F4}
Exit
;-----------------------------------------------

Save the following as whatever.BAT

@For %%F in (*.PDF) do PrtPdf1stPg %%F

This will be VERY slow so don't use it as is.

Ralph

This discussion is closed to new replies.