[python-win32] Printing PDFs without external tools

mc@mclaveau mc at mclaveau.com
Mon Mar 3 23:32:30 CET 2014


Hi!

PDF files are text files.
If you use the "print" command, you will print the source of PDF.
If you want another aspect, you need a render (Adobe-reader, 
Sumatra-PDF, etc.)
I suggest Sumatra-PDF : 
http://blog.kowalczyk.info/software/sumatrapdf/manual-fr.html (search 
for "*-print-to-default*" and next)

@-salutations & *sorry for my bad english*
-- 
Michel Claveau




Le 03.03.14 22:14, Andreas Holtz a écrit :
> Hi guys,
>
> I need want to print PDF files without the usage of tools like Adobe, 
> Foxit, etc.
> THe printer does understand PDF files, but I have no idea how to do it.
> I played around with
>
> win32api.ShellExecute(0, "print", pdf, None, ".", 0)
>
> but I am missing the possibilities to change layout and paper size.
>
> I already checked out
> http://timgolden.me.uk/python/win32_how_do_i/print.html
>
> Is there really no way to print PDFs with Python setting whatever 
> print settings I want?
> I thought Python can do anything... :'-(
>
> Thanks in advance
>
> Andreas
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> https://mail.python.org/mailman/listinfo/python-win32
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20140303/6e676f35/attachment.html>


More information about the python-win32 mailing list