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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 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

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
xequte Posted - Nov 14 2022 : 20:20:22
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