J
Jeff
Does anyone know if it's possible to use Access vba to automate the
printing of selected pages of a PDF file?
Here's the situation: I have a database of maintenance procedures.
Each procedure is a separate multiple-page PDF file. The technician
must fill in and sign the first page(s) each time the work is done. I
want to keep hard copies of the whole instructions in binders and save
paper by printing only the pages that need to be filled in each time
the work is done. Usually it's only one page, but could be 2 or 4.
My database has a form with a listbox of procedures. Currently, I'm
using Application.FollowHyperlink to open the PDF of the selected
procedure. The user can print the desired pages from Acrobat. But when
printing pages from many different files, it would save a lot of time
it I could select the desired file on the form and click a button to
send only the needed pages directly to a printer - instead of opening
and manually printing the needed pages from each document. I could
store the needed page number(s) in the database and send as a
parameter with the print instruction. I have searched but can't find a
way to do this and don't know if it's possible.
Workarounds I've considered:
1. Print large numbers of the needed pages and keep them on file.
Problem is - the procedures are revised periodically and the old
versions become obsolete and unusable. Time, paper, & storage space
wasted.
2. Have another copy of the PDF files with ONLY the needed pages; and
send those whole documents to the printer. Problem is - the PDF files
are secured and password protected so pages can't be extracted or even
printed to another PDF file.
3. Print needed pages to tif files with MS Document Image Writer.
Import images into a Word or PDF document (one for each procedure) and
use vba code to send document to printer. This works but takes a lot
of time & effort and there are hundreds of files. Also, it would have
to be re-done each time a new revision comes out.
Even if someone could tell me that it would be impossible (or very
difficult for an amateur like me to implement), at least I could stop
scratching my head and wondering if I've missed something simple.
Thanks!
printing of selected pages of a PDF file?
Here's the situation: I have a database of maintenance procedures.
Each procedure is a separate multiple-page PDF file. The technician
must fill in and sign the first page(s) each time the work is done. I
want to keep hard copies of the whole instructions in binders and save
paper by printing only the pages that need to be filled in each time
the work is done. Usually it's only one page, but could be 2 or 4.
My database has a form with a listbox of procedures. Currently, I'm
using Application.FollowHyperlink to open the PDF of the selected
procedure. The user can print the desired pages from Acrobat. But when
printing pages from many different files, it would save a lot of time
it I could select the desired file on the form and click a button to
send only the needed pages directly to a printer - instead of opening
and manually printing the needed pages from each document. I could
store the needed page number(s) in the database and send as a
parameter with the print instruction. I have searched but can't find a
way to do this and don't know if it's possible.
Workarounds I've considered:
1. Print large numbers of the needed pages and keep them on file.
Problem is - the procedures are revised periodically and the old
versions become obsolete and unusable. Time, paper, & storage space
wasted.
2. Have another copy of the PDF files with ONLY the needed pages; and
send those whole documents to the printer. Problem is - the PDF files
are secured and password protected so pages can't be extracted or even
printed to another PDF file.
3. Print needed pages to tif files with MS Document Image Writer.
Import images into a Word or PDF document (one for each procedure) and
use vba code to send document to printer. This works but takes a lot
of time & effort and there are hundreds of files. Also, it would have
to be re-done each time a new revision comes out.
Even if someone could tell me that it would be impossible (or very
difficult for an amateur like me to implement), at least I could stop
scratching my head and wondering if I've missed something simple.
Thanks!