convert pdf into tiff

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
g.anbuselvan

convert pdf into tiff

Post by g.anbuselvan »

sample VB6 code to convert pdf to tiff,jpg with the user specified resolution in acrobat 6
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: convert pdf into tiff

Post by anthony »

Are you whanting to give an example, or requesting an example?

You are not exactly clear!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
g.anbuselvan

Re: convert pdf into tiff

Post by g.anbuselvan »

I need an example to convert pdf to tiff with user specified resolution with out using third party packages i.e, i need to convert by using the acrobat plugin alone.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: convert pdf into tiff

Post by anthony »

IM does not use acrobat to convert PDF. It uses Ghostscript.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
g.anbuselvan

Re: convert pdf into tiff

Post by g.anbuselvan »

thanks for ur reply.

am using the Javascript object to convert to tiff from pdf.
code is,

Private Sub ConvertToTiff_Click()
Dim jso As Object
Dim pdDoc As Acrobat.CAcroPDDoc
Set pdDoc = CreateObject("AcroExch.PDDoc")

'This uses the Adobe Acrobat API to save the PDF as TIF
If FileName <> "" Then
If pdDoc.Open(FileName) Then
Set jso = pdDoc.GetJSObject
jso.SaveAs ImageFileName + "tif", "com.adobe.acrobat.tiff"

pdDoc.Close
End If

Set jso = Nothing
' This kills the Acrobat.exe process
Set pdDoc = Nothing
MsgBox ("successfully converted!")
Else
MsgBox ("Select PDF File!")
End If
End Sub
//////////
The output tiff resolution for one pdf to another i.e,one tiff resolution is 150 dpi and another is 300 dpi. but i have to produce the tiff with my specified resolution.Is any code can be added to this ,to make tiff with my resolution?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: convert pdf into tiff

Post by anthony »

Tricky. I don't work with TIFF and what I do know is hersay. By I understand photoshop (the authority for TIFF) saves resolution in a special profile, separate to the normal resolution handling. IM probably will save in the normal metadata, while photoshop uses the profiled meta-data. IM may not be of much help.

TIFF is a horrible image format, other than photoshop, all other programs only handle sub-sets of the full convoluted TIFF format.

All I can suggest try various things like

Code: Select all

   convert image  -density 300x300 image_im300.tif
and see is that does the trick. Also try other utilities. Sorry not much help.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: convert pdf into tiff

Post by anthony »

In that case I suggest you start a new disscussion thread in Bugs Forum, with the command line that you tried, a link to the bad TIFF file produced, and a link to a good tiff file that your 3rd party software produced.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply