Re: PDF Viewer DLL?
Posted: Tue Feb 21, 2017 6:51 pm
Hi Bdp2000:
You were right, in your sample don't appear error screen.-
What i was looking is to print silently and i solved it this way:
EXECUTE FILE 'SumatraPDF.EXE' PARAMETERS '-print-to-default -plugin -exit-on-print ' + cHwnd + ' ' + 'SAMPLE.pdf'
The issue i got was because i put parameter "-plugin" as the first.- Put it in the middle works find.-
By the way, i test different printScale, and the best result was putting "none".- With this parameter (none) PDF document is printed exactly with the paper size (margins) it was created.- Take in count that if on your app will be printed different format of pages, printer must be set to "legal" size.- In other terms is the as if you choose on Adobe Reader the option Select paper size from document (pdf) size.
Just a contribution.-
With regards.
Eduardo
You were right, in your sample don't appear error screen.-
What i was looking is to print silently and i solved it this way:
EXECUTE FILE 'SumatraPDF.EXE' PARAMETERS '-print-to-default -plugin -exit-on-print ' + cHwnd + ' ' + 'SAMPLE.pdf'
The issue i got was because i put parameter "-plugin" as the first.- Put it in the middle works find.-
By the way, i test different printScale, and the best result was putting "none".- With this parameter (none) PDF document is printed exactly with the paper size (margins) it was created.- Take in count that if on your app will be printed different format of pages, printer must be set to "legal" size.- In other terms is the as if you choose on Adobe Reader the option Select paper size from document (pdf) size.
Just a contribution.-
With regards.
Eduardo