ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Automatic Printing of PDF files, images and documents in a folder
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

xequte

7376 Posts

Posted - Nov 14 2022 :  20:20:22  Show Profile  Reply
We have created the following application to provide automatic printing of files in a designated folder.
Full source code, as well as 32bit and 64bit exe files are available below.




AUTOMATIC PRINTING FROM FOLDER

PdfPrinter.exe will automatically print PDF files, images, documents and other files to the default printer. Specify the folder it should watch, and the folder to move files after printing. PDF files are printed using PDFium (by Google), images are printed using ImageEn and other documents are passed to Windows for printing (support depends on Windows).

It will also wait for files to complete copying (not locked) before printing, and can automatically start monitoring if run on Windows start-up.
If you edit PdfPrinter.ini, you can limit printing to specific formats, e.g. '*.pdf;*.jpeg;*.jpg'

Copy PdfPrinter.exe and iepdf*.dll to a folder on your computer and run it. Specify your monitoring folder and other options. Click "Start Montioring" to commence.


TO START PDF PRINTER WITH WINDOWS

1. Copy PdfPrinter.exe to the clipboard
2. Click the Windows logo key + R, type shell:startup, then select OK. This opens the Startup folder.
3. Right-click the Startup folder and choose "Paste as Shortcut" (On Windows 11, you need to hold down the Shift key as you right-click, or select "Show more options")


Source: attach/xequte/20221114201817_PdfPrinterSource.zip
26 KB. Tested in Delphi 11

32bit EXE: https://www.ImageEn.com/files/Other/PdfPrinter32.zip
9.4 MB. Tested with Windows 10 and 11

64bit EXE: https://www.ImageEn.com/files/Other/PdfPrinter64.zip
10.4 MB. Tested with Windows 10 and 11


Nigel
Xequte Software
www.imageen.com
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: