Page 1 of 1
convert pdf into tiff
Posted: 2007-08-08T01:14:15-07:00
by g.anbuselvan
sample VB6 code to convert pdf to tiff,jpg with the user specified resolution in acrobat 6
Re: convert pdf into tiff
Posted: 2007-08-12T23:17:10-07:00
by anthony
Are you whanting to give an example, or requesting an example?
You are not exactly clear!
Re: convert pdf into tiff
Posted: 2007-08-12T23:46:29-07:00
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.
Re: convert pdf into tiff
Posted: 2007-08-13T00:23:00-07:00
by anthony
IM does not use acrobat to convert PDF. It uses Ghostscript.
Re: convert pdf into tiff
Posted: 2007-08-13T01:05:07-07:00
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?
Re: convert pdf into tiff
Posted: 2007-08-13T16:34:25-07:00
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.
Re: convert pdf into tiff
Posted: 2007-08-18T16:21:09-07:00
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.