FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour use PDF as BMP in printer.prg ?
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
use PDF as BMP in printer.prg ?
Posted: Mon Feb 29, 2016 06:42 PM

Hi,

is it possible to manage a PDF file like BMP file ?

I use the oprn:saybitmap(.....) to put BMP file on page and then write what i need.

is possible to do something like oprn:saypdf(...) ?

tks all

Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: use PDF as BMP in printer.prg ?
Posted: Tue Mar 01, 2016 03:37 PM

Or possible to convert a PDF file (singol page) e in BMP/JPG ?

tks

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: use PDF as BMP in printer.prg ?
Posted: Wed Mar 02, 2016 03:13 PM

Romeo,

Once the PDF is shown then we can generate a BMP from it using oWnd:SaveToBmp( cBmpFileName )

I just tried samples\pdf.prg to display a PDF but it is not working. I guess that we need a more recent "AcroPDF.PDF.1" value

Maybe other PDF users could help us here

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: use PDF as BMP in printer.prg ?
Posted: Wed Mar 02, 2016 05:08 PM

it works, but i got the full screen with Acrobat Reader Bar & Button

Where can i found the oher method for the activex() ?

Like oActivex:Do("LoadFile"...)
oActivex:Do("SetCurrentPage")

Must exist also something like oActivex:Do("OtherParameters") ?

tks

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: use PDF as BMP in printer.prg ?
Posted: Wed Mar 02, 2016 05:10 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: use PDF as BMP in printer.prg ?
Posted: Wed Mar 02, 2016 06:26 PM

Good !!!

tks Antonio

Continue the discussion