By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,784 Members | 3,536 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,784 IT Pros & Developers. It's quick & easy.

Acrobat DLL Exception (Transforming pdf to tif)

P: n/a
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
Share this Question
Share on Google+
10 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.