These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

convert pdf into tiff through vb(using javascript object)

selvananbu
Registered: Aug 7 2007
Posts: 4

In vb how can i convert pdf into tiff file with user specified resolution?

My Product Information:
Acrobat Standard 6.0.4, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Using the IAC, you can tell Acrobat to save the file as a TIFF.

But you can't control any of the conversion parameters, like resolution. For this you'll need a image handling library, like QuickTime, which I think is free.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Using the IAC, you can tell Acrobat to save the file as a TIFF.

But you can't control any of the conversion parameters, like resolution. For this you'll need a image handling library, like QuickTime, which I think is free.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

deejoshy
Registered: Sep 24 2007
Posts: 3
Could you please tell me what you mean by using QuickTime to set the resolution? I know how to read through a PDF programatically using C# and the Acrobat Professional API but when I save the image as a tiff it comes out at 72dpi, which is just plain awful when I print it.

Thanks in advance
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
I just gave quicktime as an example of an imaging library, there are plenty of others. It's been years since I've used the quicktime library and I couldn't tell you anything about the specifics of using it. There are however lots of imaging tools out there. In fact, you could probably use Photoshop to do this conversion without any programming.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

deejoshy
Registered: Sep 24 2007
Posts: 3
Hi Thom,

Wow, that was quick. :)

Actually, I'm trying to read through the PDF file in a background process, not with a windows process. I have been able to use the API that comes with Adobe Acrobat to read through the PDFs page by page but when I convert them to a bitmap and then save them as tiff they only come out as 92 dpi (not 72 like I said earlier). So they aren't high quality enough.

Do you know anybody who might know how to fix this. I have googled it to death and haven't found a solution. Maybe I am the first one to post it. :)

Dave
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Like I said before, Acrobat creates image files with it's own built in parameters. This is unfortunate, but I'm pretty sure that the resolution it's using is coming from your screen resolution. This makes sense from a programming perspective. You can check itout by changing screen resolutions and converting a PDF to TIFF.

The only way to do what you want to do is to write a plug-in. I would think someone has already done this, but if you can't find anything then maybe it hasn't been done.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script