473,322 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Acrobat DLL Exception (Transforming pdf to tif)

I'm trying to use the following VB function to transform a pdf
document to a tiff one:
http://forums.microsoft.com/msdn/sho...&tf=0&pageid=1

Private Sub savePDFtoTIF(ByVal fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Dim AVDoc As Acrobat.CAcroAVDoc
Dim JSObj As Object

' Create Acrobat Application object
PDFApp = CreateObject("AcroExch.App")

' Create Acrobat Document object
PDDoc = CreateObject("AcroExch.PDDoc")

' Open PDF file
PDDoc.Open(fullPathPDF)

' Create AV doc from PDDoc object
AVDoc = PDDoc.OpenAVDoc("TempPDF")

' Hide Acrobat application so everything is done in silent
mode
PDFApp.Hide()

' Create Javascript bridge object
JSObj = PDDoc.GetJSObject()

' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acrobat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fullPathTIF, "com.adobe.acrobat.tiff")

PDDoc.Close()
PDFApp.CloseAllDocs()

' Clean up
System.Runtime.InteropServices.Marshal.ReleaseComO bject(JSObj)
JSObj = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDFApp)
PDFApp = Nothing

System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDDoc)
PDDoc = Nothing

System.Runtime.InteropServices.Marshal.ReleaseComO bject(AVDoc)
AVDoc = Nothing

End Sub

It gives an exception at line PDFApp = CreateObject("AcroExch.App")
=Cannot create ActiveX component

I have acrobat 8. Do I need to install SDK or some other component?
Jun 27 '08 #1
10 10302
Hi,
You need to register the ActiveX component using the regsvr32.exe utility

regards,
Joy

"Mauro" wrote:
I'm trying to use the following VB function to transform a pdf
document to a tiff one:
http://forums.microsoft.com/msdn/sho...&tf=0&pageid=1

Private Sub savePDFtoTIF(ByVal fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Dim AVDoc As Acrobat.CAcroAVDoc
Dim JSObj As Object

' Create Acrobat Application object
PDFApp = CreateObject("AcroExch.App")

' Create Acrobat Document object
PDDoc = CreateObject("AcroExch.PDDoc")

' Open PDF file
PDDoc.Open(fullPathPDF)

' Create AV doc from PDDoc object
AVDoc = PDDoc.OpenAVDoc("TempPDF")

' Hide Acrobat application so everything is done in silent
mode
PDFApp.Hide()

' Create Javascript bridge object
JSObj = PDDoc.GetJSObject()

' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acrobat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fullPathTIF, "com.adobe.acrobat.tiff")

PDDoc.Close()
PDFApp.CloseAllDocs()

' Clean up
System.Runtime.InteropServices.Marshal.ReleaseComO bject(JSObj)
JSObj = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDFApp)
PDFApp = Nothing

System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDDoc)
PDDoc = Nothing

System.Runtime.InteropServices.Marshal.ReleaseComO bject(AVDoc)
AVDoc = Nothing

End Sub

It gives an exception at line PDFApp = CreateObject("AcroExch.App")
=Cannot create ActiveX component

I have acrobat 8. Do I need to install SDK or some other component?
Jun 27 '08 #2
How can I find the path of the file to register?
I have Adobe Reader 8.1.2 without SDK now.

Thank you.

On 27 Mag, 11:56, Joy <J...@discussions.microsoft.comwrote:
Hi,
You need to register the ActiveX component using the regsvr32.exe utility

regards,
Joy

"Mauro" wrote:
I'm trying to use the following VB function to transform a pdf
document to a tiff one:
http://forums.microsoft.com/msdn/sho...665127&siteid=...
Private Sub savePDFtoTIF(ByVal fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Dim AVDoc As Acrobat.CAcroAVDoc
Dim JSObj As Object
' Create Acrobat Application object
PDFApp = CreateObject("AcroExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("AcroExch.PDDoc")
' Open PDF file
PDDoc.Open(fullPathPDF)
' Create AV doc from PDDoc object
AVDoc = PDDoc.OpenAVDoc("TempPDF")
' Hide Acrobat application so everything is done in silent
mode
PDFApp.Hide()
' Create Javascript bridge object
JSObj = PDDoc.GetJSObject()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acrobat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fullPathTIF, "com.adobe.acrobat.tiff")
PDDoc.Close()
PDFApp.CloseAllDocs()
' Clean up
System.Runtime.InteropServices.Marshal.ReleaseComO bject(JSObj)
JSObj = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDFApp)
PDFApp = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDDoc)
PDDoc = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(AVDoc)
AVDoc = Nothing
End Sub
It gives an exception at line PDFApp = CreateObject("AcroExch.App")
=Cannot create ActiveX component
I have acrobat 8. Do I need to install SDK or some other component?
Jun 27 '08 #3
Hi,
Do a search on your local system.

regards,
Joy

"Mauro" wrote:
How can I find the path of the file to register?
I have Adobe Reader 8.1.2 without SDK now.

Thank you.

On 27 Mag, 11:56, Joy <J...@discussions.microsoft.comwrote:
Hi,
You need to register the ActiveX component using the regsvr32.exe utility

regards,
Joy

"Mauro" wrote:
I'm trying to use the following VB function to transform a pdf
document to a tiff one:
>http://forums.microsoft.com/msdn/sho...665127&siteid=...
Private Sub savePDFtoTIF(ByVal fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Dim AVDoc As Acrobat.CAcroAVDoc
Dim JSObj As Object
' Create Acrobat Application object
PDFApp = CreateObject("AcroExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("AcroExch.PDDoc")
' Open PDF file
PDDoc.Open(fullPathPDF)
' Create AV doc from PDDoc object
AVDoc = PDDoc.OpenAVDoc("TempPDF")
' Hide Acrobat application so everything is done in silent
mode
PDFApp.Hide()
' Create Javascript bridge object
JSObj = PDDoc.GetJSObject()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acrobat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fullPathTIF, "com.adobe.acrobat.tiff")
PDDoc.Close()
PDFApp.CloseAllDocs()
' Clean up
System.Runtime.InteropServices.Marshal.ReleaseComO bject(JSObj)
JSObj = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDFApp)
PDFApp = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDDoc)
PDDoc = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(AVDoc)
AVDoc = Nothing
End Sub
It gives an exception at line PDFApp = CreateObject("AcroExch.App")
=Cannot create ActiveX component
I have acrobat 8. Do I need to install SDK or some other component?

Jun 27 '08 #4
Could you be more specific?
I can't understand what do I have to search and how can I locate the
file. It's in the Acrobat program directory?

Thank you.

On 27 Mag, 12:35, Joy <J...@discussions.microsoft.comwrote:
Hi,
Do a search on your local system.

regards,
Joy

"Mauro" wrote:
How can I find the path of the file to register?
I have Adobe Reader 8.1.2 without SDK now.
Thank you.
On 27 Mag, 11:56, Joy <J...@discussions.microsoft.comwrote:
Hi,
You need to register the ActiveX component using the regsvr32.exe utility
regards,
Joy
"Mauro" wrote:
I'm trying to use the following VB function to transform a pdf
document to a tiff one:
http://forums.microsoft.com/msdn/sho...665127&siteid=...
Private Sub savePDFtoTIF(ByVal fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Dim AVDoc As Acrobat.CAcroAVDoc
Dim JSObj As Object
' Create Acrobat Application object
PDFApp = CreateObject("AcroExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("AcroExch.PDDoc")
' Open PDF file
PDDoc.Open(fullPathPDF)
' Create AV doc from PDDoc object
AVDoc = PDDoc.OpenAVDoc("TempPDF")
' Hide Acrobat application so everything is done in silent
mode
PDFApp.Hide()
' Create Javascript bridge object
JSObj = PDDoc.GetJSObject()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acrobat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fullPathTIF, "com.adobe.acrobat.tiff")
PDDoc.Close()
PDFApp.CloseAllDocs()
' Clean up
System.Runtime.InteropServices.Marshal.ReleaseComO bject(JSObj)
JSObj = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDFApp)
PDFApp = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDDoc)
PDDoc = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(AVDoc)
AVDoc = Nothing
End Sub
It gives an exception at line PDFApp = CreateObject("AcroExch.App")
=Cannot create ActiveX component
I have acrobat 8. Do I need to install SDK or some other component?
Jun 27 '08 #5
Hi,
Please install the PDF SDK and normally during the installation process
itself it will register the dll.

Once the installation is complete check for the following entries in registry:

HKEY_CLASSES_ROOT\AcroExch.App
HKEY_CLASSES_ROOT\AcroExch.App.1
HKEY_CLASSES_ROOT\AcroExch.AVDoc
HKEY_CLASSES_ROOT\AcroExch.Document

regards,
Joy

"Mauro" wrote:
Could you be more specific?
I can't understand what do I have to search and how can I locate the
file. It's in the Acrobat program directory?

Thank you.

On 27 Mag, 12:35, Joy <J...@discussions.microsoft.comwrote:
Hi,
Do a search on your local system.

regards,
Joy

"Mauro" wrote:
How can I find the path of the file to register?
I have Adobe Reader 8.1.2 without SDK now.
Thank you.
On 27 Mag, 11:56, Joy <J...@discussions.microsoft.comwrote:
Hi,
You need to register the ActiveX component using the regsvr32.exe utility
regards,
Joy
"Mauro" wrote:
I'm trying to use the following VB function to transform a pdf
document to a tiff one:
>http://forums.microsoft.com/msdn/sho...665127&siteid=...
Private Sub savePDFtoTIF(ByVal fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Dim AVDoc As Acrobat.CAcroAVDoc
Dim JSObj As Object
' Create Acrobat Application object
PDFApp = CreateObject("AcroExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("AcroExch.PDDoc")
' Open PDF file
PDDoc.Open(fullPathPDF)
' Create AV doc from PDDoc object
AVDoc = PDDoc.OpenAVDoc("TempPDF")
' Hide Acrobat application so everything is done in silent
mode
PDFApp.Hide()
' Create Javascript bridge object
JSObj = PDDoc.GetJSObject()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acrobat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fullPathTIF, "com.adobe.acrobat.tiff")
PDDoc.Close()
PDFApp.CloseAllDocs()
' Clean up
System.Runtime.InteropServices.Marshal.ReleaseComO bject(JSObj)
JSObj = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDFApp)
PDFApp = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDDoc)
PDDoc = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(AVDoc)
AVDoc = Nothing
End Sub
It gives an exception at line PDFApp = CreateObject("AcroExch.App")
=Cannot create ActiveX component
I have acrobat 8. Do I need to install SDK or some other component?

Jun 27 '08 #6
I have the Adobe Reader 8.1.2 and I've installed the SDK 7.0.5 since
I've not found the SDK for my version.
In the registry I've founded only the key:
HKEY_CLASSES_ROOT\AcroExch.Document
the other keys are missing.

I have the key:
AcroExch.Document
AcroExch.Document.7
AcroExch.FDFDoc
AcroExch.Plugin
AcroExch.RMFFile
AcroExch.SecStore
AcroExch.Sequence
AcroExch.XDPDoc
AcroExch.XFDFDoc

Any Idea?

Thank you.
On 27 Mag, 13:43, Joy <J...@discussions.microsoft.comwrote:
Hi,
Please install the PDF SDK and normally during the installation process
itself it will register the dll.

Once the installation is complete check for the following entries in registry:

HKEY_CLASSES_ROOT\AcroExch.App
HKEY_CLASSES_ROOT\AcroExch.App.1
HKEY_CLASSES_ROOT\AcroExch.AVDoc
HKEY_CLASSES_ROOT\AcroExch.Document

regards,
Joy

"Mauro" wrote:
Could you be more specific?
I can't understand what do I have to search and how can I locate the
file. It's in the Acrobat program directory?
Thank you.
On 27 Mag, 12:35, Joy <J...@discussions.microsoft.comwrote:
Hi,
Do a search on your local system.
regards,
Joy
"Mauro" wrote:
How can I find the path of the file to register?
I have Adobe Reader 8.1.2 without SDK now.
Thank you.
On 27 Mag, 11:56, Joy <J...@discussions.microsoft.comwrote:
Hi,
You need to register the ActiveX component using the regsvr32.exe utility
regards,
Joy
"Mauro" wrote:
I'm trying to use the following VB function to transform a pdf
document to a tiff one:
http://forums.microsoft.com/msdn/sho...665127&siteid=...
Private Sub savePDFtoTIF(ByVal fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Dim AVDoc As Acrobat.CAcroAVDoc
Dim JSObj As Object
' Create Acrobat Application object
PDFApp = CreateObject("AcroExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("AcroExch.PDDoc")
' Open PDF file
PDDoc.Open(fullPathPDF)
' Create AV doc from PDDoc object
AVDoc = PDDoc.OpenAVDoc("TempPDF")
' Hide Acrobat application so everything is done in silent
mode
PDFApp.Hide()
' Create Javascript bridge object
JSObj = PDDoc.GetJSObject()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acrobat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fullPathTIF, "com.adobe.acrobat.tiff")
PDDoc.Close()
PDFApp.CloseAllDocs()
' Clean up
System.Runtime.InteropServices.Marshal.ReleaseComO bject(JSObj)
JSObj = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDFApp)
PDFApp = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDDoc)
PDDoc = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(AVDoc)
AVDoc = Nothing
End Sub
It gives an exception at line PDFApp = CreateObject("AcroExch.App")
=Cannot create ActiveX component
I have acrobat 8. Do I need to install SDK or some other component?
Jun 27 '08 #7
Hi,
Are you using Standard or Professional?

Please also refer to the following Url for the refernce PDF document:

http://www.adobe.com/devnet/acrobat/...oper_guide.pdf

Do let me know if this worked for you.

regards,
Joy

"Mauro" wrote:
I have the Adobe Reader 8.1.2 and I've installed the SDK 7.0.5 since
I've not found the SDK for my version.
In the registry I've founded only the key:
HKEY_CLASSES_ROOT\AcroExch.Document
the other keys are missing.

I have the key:
AcroExch.Document
AcroExch.Document.7
AcroExch.FDFDoc
AcroExch.Plugin
AcroExch.RMFFile
AcroExch.SecStore
AcroExch.Sequence
AcroExch.XDPDoc
AcroExch.XFDFDoc

Any Idea?

Thank you.
On 27 Mag, 13:43, Joy <J...@discussions.microsoft.comwrote:
Hi,
Please install the PDF SDK and normally during the installation process
itself it will register the dll.

Once the installation is complete check for the following entries in registry:

HKEY_CLASSES_ROOT\AcroExch.App
HKEY_CLASSES_ROOT\AcroExch.App.1
HKEY_CLASSES_ROOT\AcroExch.AVDoc
HKEY_CLASSES_ROOT\AcroExch.Document

regards,
Joy

"Mauro" wrote:
Could you be more specific?
I can't understand what do I have to search and how can I locate the
file. It's in the Acrobat program directory?
Thank you.
On 27 Mag, 12:35, Joy <J...@discussions.microsoft.comwrote:
Hi,
Do a search on your local system.
regards,
Joy
"Mauro" wrote:
How can I find the path of the file to register?
I have Adobe Reader 8.1.2 without SDK now.
Thank you.
On 27 Mag, 11:56, Joy <J...@discussions.microsoft.comwrote:
Hi,
You need to register the ActiveX component using the regsvr32.exe utility
regards,
Joy
"Mauro" wrote:
I'm trying to use the following VB function to transform a pdf
document to a tiff one:
>http://forums.microsoft.com/msdn/sho...665127&siteid=...
Private Sub savePDFtoTIF(ByVal fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Dim AVDoc As Acrobat.CAcroAVDoc
Dim JSObj As Object
' Create Acrobat Application object
PDFApp = CreateObject("AcroExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("AcroExch.PDDoc")
' Open PDF file
PDDoc.Open(fullPathPDF)
' Create AV doc from PDDoc object
AVDoc = PDDoc.OpenAVDoc("TempPDF")
' Hide Acrobat application so everything is done in silent
mode
PDFApp.Hide()
' Create Javascript bridge object
JSObj = PDDoc.GetJSObject()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acrobat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fullPathTIF, "com.adobe.acrobat.tiff")
PDDoc.Close()
PDFApp.CloseAllDocs()
' Clean up
System.Runtime.InteropServices.Marshal.ReleaseComO bject(JSObj)
JSObj = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDFApp)
PDFApp = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDDoc)
PDDoc = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(AVDoc)
AVDoc = Nothing
End Sub
It gives an exception at line PDFApp = CreateObject("AcroExch.App")
=Cannot create ActiveX component
I have acrobat 8. Do I need to install SDK or some other component?

Jun 27 '08 #8
I have Adobe Reader Standard 8.1.2: I read in the forums I could use
standard version.

Now I've done the job in a different way, because I was in an hurry
(not using Adobe API),

I think I'll investigate this problem in my spare time (not much in
the last years :( )
On 28 Mag, 09:56, Joy <J...@discussions.microsoft.comwrote:
Hi,
Are you using Standard or Professional?

Please also refer to the following Url for the refernce PDF document:

http://www.adobe.com/devnet/acrobat/...oper_guide.pdf

Do let me know if this worked for you.

regards,
Joy

"Mauro" wrote:
I have the Adobe Reader 8.1.2 and I've installed the SDK 7.0.5 since
I've not found the SDK for my version.
In the registry I've founded only the key:
HKEY_CLASSES_ROOT\AcroExch.Document
the other keys are missing.
I have the key:
AcroExch.Document
AcroExch.Document.7
AcroExch.FDFDoc
AcroExch.Plugin
AcroExch.RMFFile
AcroExch.SecStore
AcroExch.Sequence
AcroExch.XDPDoc
AcroExch.XFDFDoc
Any Idea?
Thank you.
On 27 Mag, 13:43, Joy <J...@discussions.microsoft.comwrote:
Hi,
Please install the PDF SDK and normally during the installation process
itself it will register the dll.
Once the installation is complete check for the following entries in registry:
HKEY_CLASSES_ROOT\AcroExch.App
HKEY_CLASSES_ROOT\AcroExch.App.1
HKEY_CLASSES_ROOT\AcroExch.AVDoc
HKEY_CLASSES_ROOT\AcroExch.Document
regards,
Joy
"Mauro" wrote:
Could you be more specific?
I can't understand what do I have to search and how can I locate the
file. It's in the Acrobat program directory?
Thank you.
On 27 Mag, 12:35, Joy <J...@discussions.microsoft.comwrote:
Hi,
Do a search on your local system.
regards,
Joy
"Mauro" wrote:
How can I find the path of the file to register?
I have Adobe Reader 8.1.2 without SDK now.
Thank you.
On 27 Mag, 11:56, Joy <J...@discussions.microsoft.comwrote:
Hi,
You need to register the ActiveX component using the regsvr32.exe utility
regards,
Joy
"Mauro" wrote:
I'm trying to use the following VB function to transform a pdf
document to a tiff one:
http://forums.microsoft.com/msdn/sho...665127&siteid=...
Private Sub savePDFtoTIF(ByVal fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Dim AVDoc As Acrobat.CAcroAVDoc
Dim JSObj As Object
' Create Acrobat Application object
PDFApp = CreateObject("AcroExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("AcroExch.PDDoc")
' Open PDF file
PDDoc.Open(fullPathPDF)
' Create AV doc from PDDoc object
AVDoc = PDDoc.OpenAVDoc("TempPDF")
' Hide Acrobat application so everything is done in silent
mode
PDFApp.Hide()
' Create Javascript bridge object
JSObj = PDDoc.GetJSObject()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acrobat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fullPathTIF, "com.adobe.acrobat.tiff")
PDDoc.Close()
PDFApp.CloseAllDocs()
' Clean up
System.Runtime.InteropServices.Marshal.ReleaseComO bject(JSObj)
JSObj = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDFApp)
PDFApp = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDDoc)
PDDoc = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(AVDoc)
AVDoc = Nothing
End Sub
It gives an exception at line PDFApp = CreateObject("AcroExch.App")
=Cannot create ActiveX component
I have acrobat 8. Do I need to install SDK or some other component?
Jun 27 '08 #9
Hi Mauro,
Nice to know that you have been able to accomplish the task in some
different way, but do share with us that you have done.

regards,
Joy

"Mauro" wrote:
I have Adobe Reader Standard 8.1.2: I read in the forums I could use
standard version.

Now I've done the job in a different way, because I was in an hurry
(not using Adobe API),

I think I'll investigate this problem in my spare time (not much in
the last years :( )
On 28 Mag, 09:56, Joy <J...@discussions.microsoft.comwrote:
Hi,
Are you using Standard or Professional?

Please also refer to the following Url for the refernce PDF document:

http://www.adobe.com/devnet/acrobat/...oper_guide.pdf

Do let me know if this worked for you.

regards,
Joy

"Mauro" wrote:
I have the Adobe Reader 8.1.2 and I've installed the SDK 7.0.5 since
I've not found the SDK for my version.
In the registry I've founded only the key:
HKEY_CLASSES_ROOT\AcroExch.Document
the other keys are missing.
I have the key:
AcroExch.Document
AcroExch.Document.7
AcroExch.FDFDoc
AcroExch.Plugin
AcroExch.RMFFile
AcroExch.SecStore
AcroExch.Sequence
AcroExch.XDPDoc
AcroExch.XFDFDoc
Any Idea?
Thank you.
On 27 Mag, 13:43, Joy <J...@discussions.microsoft.comwrote:
Hi,
Please install the PDF SDK and normally during the installation process
itself it will register the dll.
Once the installation is complete check for the following entries in registry:
HKEY_CLASSES_ROOT\AcroExch.App
HKEY_CLASSES_ROOT\AcroExch.App.1
HKEY_CLASSES_ROOT\AcroExch.AVDoc
HKEY_CLASSES_ROOT\AcroExch.Document
regards,
Joy
"Mauro" wrote:
Could you be more specific?
I can't understand what do I have to search and how can I locate the
file. It's in the Acrobat program directory?
Thank you.
On 27 Mag, 12:35, Joy <J...@discussions.microsoft.comwrote:
Hi,
Do a search on your local system.
regards,
Joy
"Mauro" wrote:
How can I find the path of the file to register?
I have Adobe Reader 8.1.2 without SDK now.
Thank you.
On 27 Mag, 11:56, Joy <J...@discussions.microsoft.comwrote:
Hi,
You need to register the ActiveX component using the regsvr32.exe utility
regards,
Joy
"Mauro" wrote:
I'm trying to use the following VB function to transform a pdf
document to a tiff one:
>http://forums.microsoft.com/msdn/sho...665127&siteid=...
Private Sub savePDFtoTIF(ByVal fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Dim AVDoc As Acrobat.CAcroAVDoc
Dim JSObj As Object
' Create Acrobat Application object
PDFApp = CreateObject("AcroExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("AcroExch.PDDoc")
' Open PDF file
PDDoc.Open(fullPathPDF)
' Create AV doc from PDDoc object
AVDoc = PDDoc.OpenAVDoc("TempPDF")
' Hide Acrobat application so everything is done in silent
mode
PDFApp.Hide()
' Create Javascript bridge object
JSObj = PDDoc.GetJSObject()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acrobat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fullPathTIF, "com.adobe.acrobat.tiff")
PDDoc.Close()
PDFApp.CloseAllDocs()
' Clean up
System.Runtime.InteropServices.Marshal.ReleaseComO bject(JSObj)
JSObj = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDFApp)
PDFApp = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDDoc)
PDDoc = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(AVDoc)
AVDoc = Nothing
End Sub
It gives an exception at line PDFApp = CreateObject("AcroExch.App")
=Cannot create ActiveX component
I have acrobat 8. Do I need to install SDK or some other component?

Jun 27 '08 #10
I've launched a Ghostscript process that converts PDF into TIFF. Dirty
but simple and functional

On 28 Mag, 13:48, Joy <J...@discussions.microsoft.comwrote:
Hi Mauro,
Nice to know that you have been able to accomplish the task in some
different way, but do share with us that you have done.

regards,
Joy

"Mauro" wrote:
I have Adobe Reader Standard 8.1.2: I read in the forums I could use
standard version.
Now I've done the job in a different way, because I was in an hurry
(not using Adobe API),
I think I'll investigate this problem in my spare time (not much in
the last years :( )
On 28 Mag, 09:56, Joy <J...@discussions.microsoft.comwrote:
Hi,
Are you using Standard or Professional?
Please also refer to the following Url for the refernce PDF document:
>http://www.adobe.com/devnet/acrobat/...oper_guide.pdf
Do let me know if this worked for you.
regards,
Joy
"Mauro" wrote:
I have the Adobe Reader 8.1.2 and I've installed the SDK 7.0.5 since
I've not found the SDK for my version.
In the registry I've founded only the key:
HKEY_CLASSES_ROOT\AcroExch.Document
the other keys are missing.
I have the key:
AcroExch.Document
AcroExch.Document.7
AcroExch.FDFDoc
AcroExch.Plugin
AcroExch.RMFFile
AcroExch.SecStore
AcroExch.Sequence
AcroExch.XDPDoc
AcroExch.XFDFDoc
Any Idea?
Thank you.
On 27 Mag, 13:43, Joy <J...@discussions.microsoft.comwrote:
Hi,
Please install the PDF SDK and normally during the installation process
itself it will register the dll.
Once the installation is complete check for the following entries in registry:
HKEY_CLASSES_ROOT\AcroExch.App
HKEY_CLASSES_ROOT\AcroExch.App.1
HKEY_CLASSES_ROOT\AcroExch.AVDoc
HKEY_CLASSES_ROOT\AcroExch.Document
regards,
Joy
"Mauro" wrote:
Could you be more specific?
I can't understand what do I have to search and how can I locate the
file. It's in the Acrobat program directory?
Thank you.
On 27 Mag, 12:35, Joy <J...@discussions.microsoft.comwrote:
Hi,
Do a search on your local system.
regards,
Joy
"Mauro" wrote:
How can I find the path of the file to register?
I have Adobe Reader 8.1.2 without SDK now.
Thank you.
On 27 Mag, 11:56, Joy <J...@discussions.microsoft.comwrote:
Hi,
You need to register the ActiveX component using the regsvr32.exe utility
regards,
Joy
"Mauro" wrote:
I'm trying to use the following VB function to transform a pdf
document to a tiff one:
http://forums.microsoft.com/msdn/sho...665127&siteid=...
Private Sub savePDFtoTIF(ByVal fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Dim AVDoc As Acrobat.CAcroAVDoc
Dim JSObj As Object
' Create Acrobat Application object
PDFApp = CreateObject("AcroExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("AcroExch.PDDoc")
' Open PDF file
PDDoc.Open(fullPathPDF)
' Create AV doc from PDDoc object
AVDoc = PDDoc.OpenAVDoc("TempPDF")
' Hide Acrobat application so everything is done in silent
mode
PDFApp.Hide()
' Create Javascript bridge object
JSObj = PDDoc.GetJSObject()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acrobat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fullPathTIF, "com.adobe.acrobat.tiff")
PDDoc.Close()
PDFApp.CloseAllDocs()
' Clean up
System.Runtime.InteropServices.Marshal.ReleaseComO bject(JSObj)
JSObj = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDFApp)
PDFApp = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(PDDoc)
PDDoc = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComO bject(AVDoc)
AVDoc = Nothing
End Sub
It gives an exception at line PDFApp = CreateObject("AcroExch.App")
=Cannot create ActiveX component
I have acrobat 8. Do I need to install SDK or some other component?
Jun 27 '08 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Srinivas Chundi | last post by:
I have to display tif images using .asp page. I have tried to read the image as a binary file and stream it to the browser. The relevant code is as follows. Unfortunately, the display on the...
8
by: Chris | last post by:
Hello all, I wish to automate printing of PDF documents in a C# application. Is there an Adobe .net object? I tried to create a reference to the COM Object Adobe Type Library, but I get error...
3
by: Peter | last post by:
I have asp.net code using C# that will convert tif file into jpg and then it display them. The program works on my machine and Dev machine with Window XP professional. When I deploy the program on...
4
by: Phil | last post by:
k, here is my issue.. I have BLOB data in SQL that needs to be grabbed and made into a TIF file and placed on the client (could be in temp internet dir). The reason we need it in TIF format is...
1
by: TD | last post by:
I'm using iText in an app to create and print documents to network printers. I launch acrobat via the command line as shown on this page... ...
0
by: FrankV | last post by:
I am not a developer but am looking for a .NET control to allow users to upload and crop graphics files from a web page. I need to be able to transform the following file formats. eps, jpg, tif,...
3
by: Tim Frawley | last post by:
I am using a method that was described as the best for avoiding memory leaks when using MS Picture boxes. The main idea was to use a variable to load the image from file and then assign the...
3
by: Scott | last post by:
Hello, I am running into a problem with my code and can't seem to figure out the solution. I know it has to do with the pciture box control and unloading the image inthe picture box but I can't...
3
by: Joris De Groote | last post by:
Hi, I use Adobe Acrobat to read tekst from PDF files. After that the file has been read, I move the file in a folder (using the date I got from the text I got from Acrobat). Now here is my...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.