Link to home
Start Free TrialLog in
Avatar of jrmn
jrmn

asked on

PDF to graphic format

Hi Experts,

Using Delphi 6, is there any component or anything that will allow me to load a PDF file and then by pressing a button, I'll be able to save/capture this as GIF or JPG or BMP just in any other graphic formats?

Can someone help?

jrmn
 
Avatar of hinnack
hinnack

Hi,
I did not find any yet.

There are many comps for producing pdf's but no one for rendering them except the programs acrobat itself or gostview etc.

So you seem to have 2 ways:
1) print the pdf to a self-made printer device and store the captured data in a bitmap file
     ( this is the hard way - but less problems with licenses )

2) use gostscipt and ghostgum via shellexecute and wait for the process
    ( the easy way, but maybe license problems because of GPL )

Greetings

Hinnack
Avatar of jrmn

ASKER

Hi hinnack,

Thanks for the reply.

Is it possible for you to show me a delphi code for each of the 2 ways you presented above?

By the way, what is Gostscript and ghostgum? Are they utilities? 3rd party tools? Where can I get them?

Thanks,
jrmn

Gostscript and ghostgum are opensource.
You can find them at:
http://www.cs.wisc.edu/~ghost/

You can find the PrinterMon (RedMon) there as well.

There is a lot of docu as well.

Uses a ShellExecute or ShellExecuteEx to execute the programs with the parameters in the doks and wait for the process.

greetings
Hinnack

Avatar of jrmn

ASKER

Will I use ShellExecute for options 1 and 2 you suggested above?
ASKER CERTIFIED SOLUTION
Avatar of hinnack
hinnack

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jrmn

ASKER

thanks for the help