pdf

Post Reply
jds
Posts: 106
Joined: Sat Dec 05, 2009 12:44 pm

pdf

Post by jds »

txt files can simply be printed from Harbour via Winexec("notepad.exe XXX.txt")
How can pdf files been printed from Harbour?
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: pdf

Post by driessen »

jds,

You can find a free PDF-viewer at http://blog.kowalczyk.info/software/sum ... index.html.

It can be used as a automated print instruction for PDF-files.

I recalled the executable to "PRINTPDF.EXE" to be used in my application.

The source I use is :

Code: Select all

WAITRUN("..\UTILIT~1\PrintPDF.exe -Print-to-default -exit-on-print " + dNameDoc,1)
where dNameDoc contains the pathname of the PDF-file to be printed.

Good luck.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
jds
Posts: 106
Joined: Sat Dec 05, 2009 12:44 pm

Re: pdf

Post by jds »

I made a mistake in my question: I am looking for a way to READ pdf files from my harbour applications (jds belgium NL)
jds
Posts: 106
Joined: Sat Dec 05, 2009 12:44 pm

Re: pdf

Post by jds »

OK I found the way how to read pdf files also. Thank you for the reference to a simple pdf reader (sumatrapdf).
Jds (José Deschutter - belgium)
Jack
Posts: 249
Joined: Wed Jul 11, 2007 11:06 am

Re: pdf

Post by Jack »

Other question about PDF .

How to convert in batch a word or excel file to PDF .

Winexec(W2pdf.exe "doc.doc" "doc.pdf")

Thanks for your help .
Post Reply