General discussion

Locked

printing 1 page of N *.pdf files

By attila.rozsa ·
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

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

printing 1 page of N *.pdf files

by JackOfAllTech In reply to printing 1 page of N *.pd ...

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

Collapse -

printing 1 page of N *.pdf files

by JackOfAllTech In reply to printing 1 page of N *.pd ...

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

Back to Software Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums