Convert PDF to TIFF in VB6

What's the best way to convert a PDF to TIFF in Visual Basic 6? (Yes, I know VB6 is obsolete!) Free is preferred, of course, but I am willing to pay a nominal fee for a conversion DLL or OCX.

An actual VB6 code sample would be most appreciated!

Is GhostScript the way to go? That's Open Source Software, correct?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You got it right :) Ghostscript can do the job

Just download and install Ghostscript. Then use ShellExecute to call the below command

"C:\Program Files\gs\gs8.64\bin\gswin32c.exe" -dNOPAUSE -dBATCH -r550x450 -sDEVICE=tiffg4 -sPAPERSIZE=letter -dCOLORSCREEN=0 -dDITHERPPI=204 -dQUIET -sOutputFile="c:\test-%03d.tif" "c:\test.pdf"

NOTE: Change the location of gswin32c.exe to wherever you install GS and change the name of pdf and tif files. You can play around with other parameters. Ghost script manual online is a good start.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
morganc1Author Commented:
Thanks for the info!

 Is the invocation syntax example you provide the preferred interface, as opposed to some kind of DLL call (as seen in the GS documentation)?

Also, I am not familiar with ShellExecute, but have used Shell. Is there a compelling reason to use the former over the latter?
This link will outline the differences between Shell and ShellExecute - 

You'll have to call the said "exe" from your VB6 program.
morganc1Author Commented:
Thanks for the link.

I understand ShellExecute by default invokes the default app associated with the file extension, but in this case we're running an *.exe. So here there's really no advantage to using ShellExecute over Shell, is there? And with ShellExecute (as with Shell), you still have to code a timeout if you need to wait for the task (pid) to complete, right?

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Photos / Graphics Software

From novice to tech pro — start learning today.