Professional Documents
Culture Documents
JOIN MY NEWSLETTER
Your Name
include a filename
posted on JULY 13, 2018 by OLIVER MARSHALL Your Email address:
Schedule
Daily updates
Weekly updates
Sign up
RELATED ARTICLES
I was asked how to print PDF les and automatically include a lename on the print out. reboot cycle due to failed
This was for a team of users whose technical diagrams were meant to include the updates
AUGUST 2, 2017
lename of the le but, inevitably, this was missed out. In many applications you can
automate this process, include variables in the footer or header, but in this case the
How to nd the SSL certi cate
users used a variety of tools and really the only common factor was that they delivered
used by LDAPS
the nal versions in PDF format. JUNE 9, 2017
The solution had to be pretty straightforward, ideally with someone being able to right How to x cannot connect to
click the le and print it with a lename stamped on the print out. proxy error in Storagecraft CMD
endpoint
The solution is a bit long-winded but it works well and, once done, should just keep on APRIL 27, 2017
ticking. I’m assuming that all the machines are Windows 10 64bit.
Dell XPS 9560 stuck at Dell logo
1. Install Irfanview 64-bit from here and install it. Irfanview is a superb opensource after bios update 1.2.4
image viewer with great batch le and command line features. APRIL 25, 2017
2. Install the Irfanview 64-bit plugin pack from here. This will add support for viewing
PDFs (as well as loads of other le types).
3. Open Irfanview 64-bit and from there open a PDF le. You may have to change the NEWS
lename to *.PDF in order to show PDF les.
4. Now print the le by clicking File > Print from the menu bar. We’ll be setting the
The never-present Microsoft To-
Footer information to include the lename variable ($F). Be sure to click the SAVE
Do
button (highlighted).
6. Now that the printing aspect is con gured we need to add a right click menu. I How to print PDF les and
created a custom context menu entry to send the le to Irfanview and order it to automatically include a lename
print using the default printer. Download the REG le here. Expand the zip le and JULY 13, 2018 0
double click the reg le you nd there. This will add it to your registry. You may need
I was asked how to print PDF les and
to reboot afterwards but it should just work. automatically include a lename on the print
7. You should now see a new right click menu when right clicking PDF les. out. This was for a team of users whose
technical diagrams were meant to…
The context menu is handled by a registry entry that’s kept in the .reg le. Double-
clicking the .reg le imports it. The .reg le itself looks like this;
[HKEY_CLASSES_ROOT\SystemFileAssociations\.pdf]
[HKEY_CLASSES_ROOT\SystemFileAssociations\.pdf\Shell]
[HKEY_CLASSES_ROOT\SystemFileAssociations\.pdf\Shell\PrintwithFile]
[HKEY_CLASSES_ROOT\SystemFileAssociations\.pdf\Shell\PrintwithFile\command]
Tags: Windows
Related Posts
Windows Server 2012 R2 stuck in reboot cycle due to failed updates
AUGUST 2, 2017
Dell XPS 9560 stuck at Dell logo after bios update 1.2.4
APRIL 25, 2017
Author
Oliver Marshall
Oliver works as the Head of Sales at Class Technology, a leading provider of IT services to
the education sector. Out of hours he's a runner with a limp, has a board game addiction
and a owns a dog that looks like a badger.
0 Comments olivermarshall.net
1 Login
LOG IN WITH
OR SIGN UP WITH DISQUS ?
Name
ALSO ON OLIVERMARSHALL.NET
Follow me on Twitter