convert pdf into tiff
convert pdf into tiff
sample VB6 code to convert pdf to tiff,jpg with the user specified resolution in acrobat 6
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: convert pdf into tiff
Are you whanting to give an example, or requesting an example?
You are not exactly clear!
You are not exactly clear!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: convert pdf into tiff
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.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: convert pdf into tiff
IM does not use acrobat to convert PDF. It uses Ghostscript.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: convert pdf into tiff
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?
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?
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: convert pdf into tiff
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 and see is that does the trick. Also try other utilities. Sorry not 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: convert pdf into tiff
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/
https://imagemagick.org/Usage/