Page 1 of 1

save a pdf file to jpgs

Posted: Sat Jul 03, 2021 10:50 pm
by hmgchang
Hola Masters,

1. Any topic posted about saving a pdf to a jpg file with HMG ?
2. Some aplication can only save one/current view/page to a jpg,
i want to have with HMG of course that can convert/save a pdf( pages) to jpgs( jpg001, jpg002...)

I need suggestion on how to code with HMG


Thks n Rgds
Chang

Re: save a pdf file to jpgs

Posted: Sun Jul 04, 2021 2:49 am
by Rathinagiri
I hope you can use the command line tool (you can call the same using HMG)

https://www.mupdf.com/index.html

Re: save a pdf file to jpgs

Posted: Sun Jul 04, 2021 3:10 am
by AUGE_OHR
hi,
hmgchang wrote: Sat Jul 03, 2021 10:50 pm I need suggestion on how to code with HMG
i don´t known a direct Way but a Workaround

when display PDF in a Form you can get a Bitmap (JPEG) like a Snap-Shot with HMG Bos Taurus
have a look into c:\hmg.3.4.4\SOURCE\BosTaurus\h_BosTaurus.prg

Code: Select all

Function BT_BitmapCaptureWindow (Win, Row, Col, Width, Height)
if it is a "Overlay" Windows (e.g. Directshow) you can use "Print Screen" and "cut out" Part using BT Function