Print Pdf - Forum

Forum Navigation
You need to log in to create posts and topics.

Print Pdf

I need a code to automatically print a PDF file.

@sinesi-giuseppe you may want to take a look at this new plugin from Emo:

https://visualneo.com/product/emo_pdf

If you just need to print an existing PDF this DOS command should work:

start /min "" "C:\path\file.pdf" /p

Regards.

 

Translator

 

I don't think this command is recognized by Visualneo. Could you please create a command to apply to a button? Thanks.

@sinesi-giuseppe try this:

Run "cmd.exe" "/c start /min [#34][#34] [#34]C:\path\file.pdf[#34] /p" "Normal+Hidden" "" ""

Remember to chage the path for the appropiated one.

Or using Acrobat Reader:

Run "!C:\Program Files\Adobe\Acrobat Reader\Reader\AcroRd32.exe" "[#34]C:\path\file.pdf[#34] /p" "Normal+Hidden" "" ""

 

dglojnar and alangonzalez91 have reacted to this post.
dglojnaralangonzalez91

Thank you for your reply, but I tried everything, the file opens but I can't print.

@sinesi-giuseppe

You can try this plugin:

NeoPDF (SinLios)

Translator

 

I know this plugin, but it's outdated and has several bugs. First, the file must be close to the publication to connect. Second, it must first be open to be printed. Thanks anyway.

Check this... It's open pdf in to customwindows with chrome. Also have code for generate pdf using html code... But the important snippet is the part of pdf open.

Uploaded files:
  • You need to login to have access to uploads.

@sinesi-giuseppe

This code will work not only with PDF (it does not require pre-opening the file, it immediately sends it to print):

FileOpenBox "Select the file" "All Files|*.*" "[PubDrive]" "[File]" ""
RACGetDefaultPrinter "[Printer]"
RACPrintFile "[Printer]" "[File]"

Плагин RACPrinter 1.0 (Roman Avalos Castillo)

luishp, alangonzalez91 and 2 other users have reacted to this post.
luishpalangonzalez91CN_IcemanSinesi Giuseppe

Thanks Vadim it works.

 

Vadim has reacted to this post.
Vadim