473,581 Members | 2,751 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(By Val fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPD Doc
Dim AVDoc As Acrobat.CAcroAV Doc
Dim JSObj As Object

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

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

' Open PDF file
PDDoc.Open(full PathPDF)

' 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.GetJSObje ct()

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

PDDoc.Close()
PDFApp.CloseAll Docs()

' Clean up
System.Runtime. InteropServices .Marshal.Releas eComObject(JSOb j)
JSObj = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDFA pp)
PDFApp = Nothing

System.Runtime. InteropServices .Marshal.Releas eComObject(PDDo c)
PDDoc = Nothing

System.Runtime. InteropServices .Marshal.Releas eComObject(AVDo c)
AVDoc = Nothing

End Sub

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

I have acrobat 8. Do I need to install SDK or some other component?
Jun 27 '08 #1
10 10339
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(By Val fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPD Doc
Dim AVDoc As Acrobat.CAcroAV Doc
Dim JSObj As Object

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

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

' Open PDF file
PDDoc.Open(full PathPDF)

' 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.GetJSObje ct()

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

PDDoc.Close()
PDFApp.CloseAll Docs()

' Clean up
System.Runtime. InteropServices .Marshal.Releas eComObject(JSOb j)
JSObj = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDFA pp)
PDFApp = Nothing

System.Runtime. InteropServices .Marshal.Releas eComObject(PDDo c)
PDDoc = Nothing

System.Runtime. InteropServices .Marshal.Releas eComObject(AVDo c)
AVDoc = Nothing

End Sub

It gives an exception at line PDFApp = CreateObject("A croExch.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...@discussio ns.microsoft.co mwrote:
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(By Val fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPD Doc
Dim AVDoc As Acrobat.CAcroAV Doc
Dim JSObj As Object
' Create Acrobat Application object
PDFApp = CreateObject("A croExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("A croExch.PDDoc")
' Open PDF file
PDDoc.Open(full PathPDF)
' 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.GetJSObje ct()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acro bat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fu llPathTIF, "com.adobe.acro bat.tiff")
PDDoc.Close()
PDFApp.CloseAll Docs()
' Clean up
System.Runtime. InteropServices .Marshal.Releas eComObject(JSOb j)
JSObj = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDFA pp)
PDFApp = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDDo c)
PDDoc = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(AVDo c)
AVDoc = Nothing
End Sub
It gives an exception at line PDFApp = CreateObject("A croExch.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...@discussio ns.microsoft.co mwrote:
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(By Val fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPD Doc
Dim AVDoc As Acrobat.CAcroAV Doc
Dim JSObj As Object
' Create Acrobat Application object
PDFApp = CreateObject("A croExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("A croExch.PDDoc")
' Open PDF file
PDDoc.Open(full PathPDF)
' 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.GetJSObje ct()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acro bat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fu llPathTIF, "com.adobe.acro bat.tiff")
PDDoc.Close()
PDFApp.CloseAll Docs()
' Clean up
System.Runtime. InteropServices .Marshal.Releas eComObject(JSOb j)
JSObj = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDFA pp)
PDFApp = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDDo c)
PDDoc = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(AVDo c)
AVDoc = Nothing
End Sub
It gives an exception at line PDFApp = CreateObject("A croExch.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...@discussio ns.microsoft.co mwrote:
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...@discussio ns.microsoft.co mwrote:
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(By Val fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPD Doc
Dim AVDoc As Acrobat.CAcroAV Doc
Dim JSObj As Object
' Create Acrobat Application object
PDFApp = CreateObject("A croExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("A croExch.PDDoc")
' Open PDF file
PDDoc.Open(full PathPDF)
' 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.GetJSObje ct()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acro bat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fu llPathTIF, "com.adobe.acro bat.tiff")
PDDoc.Close()
PDFApp.CloseAll Docs()
' Clean up
System.Runtime. InteropServices .Marshal.Releas eComObject(JSOb j)
JSObj = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDFA pp)
PDFApp = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDDo c)
PDDoc = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(AVDo c)
AVDoc = Nothing
End Sub
It gives an exception at line PDFApp = CreateObject("A croExch.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_RO OT\AcroExch.App
HKEY_CLASSES_RO OT\AcroExch.App .1
HKEY_CLASSES_RO OT\AcroExch.AVD oc
HKEY_CLASSES_RO OT\AcroExch.Doc ument

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...@discussio ns.microsoft.co mwrote:
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...@discussio ns.microsoft.co mwrote:
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(By Val fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPD Doc
Dim AVDoc As Acrobat.CAcroAV Doc
Dim JSObj As Object
' Create Acrobat Application object
PDFApp = CreateObject("A croExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("A croExch.PDDoc")
' Open PDF file
PDDoc.Open(full PathPDF)
' 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.GetJSObje ct()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acro bat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fu llPathTIF, "com.adobe.acro bat.tiff")
PDDoc.Close()
PDFApp.CloseAll Docs()
' Clean up
System.Runtime. InteropServices .Marshal.Releas eComObject(JSOb j)
JSObj = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDFA pp)
PDFApp = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDDo c)
PDDoc = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(AVDo c)
AVDoc = Nothing
End Sub
It gives an exception at line PDFApp = CreateObject("A croExch.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_RO OT\AcroExch.Doc ument
the other keys are missing.

I have the key:
AcroExch.Docume nt
AcroExch.Docume nt.7
AcroExch.FDFDoc
AcroExch.Plugin
AcroExch.RMFFil e
AcroExch.SecSto re
AcroExch.Sequen ce
AcroExch.XDPDoc
AcroExch.XFDFDo c

Any Idea?

Thank you.
On 27 Mag, 13:43, Joy <J...@discussio ns.microsoft.co mwrote:
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_RO OT\AcroExch.App
HKEY_CLASSES_RO OT\AcroExch.App .1
HKEY_CLASSES_RO OT\AcroExch.AVD oc
HKEY_CLASSES_RO OT\AcroExch.Doc ument

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...@discussio ns.microsoft.co mwrote:
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...@discussio ns.microsoft.co mwrote:
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(By Val fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPD Doc
Dim AVDoc As Acrobat.CAcroAV Doc
Dim JSObj As Object
' Create Acrobat Application object
PDFApp = CreateObject("A croExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("A croExch.PDDoc")
' Open PDF file
PDDoc.Open(full PathPDF)
' 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.GetJSObje ct()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acro bat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fu llPathTIF, "com.adobe.acro bat.tiff")
PDDoc.Close()
PDFApp.CloseAll Docs()
' Clean up
System.Runtime. InteropServices .Marshal.Releas eComObject(JSOb j)
JSObj = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDFA pp)
PDFApp = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDDo c)
PDDoc = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(AVDo c)
AVDoc = Nothing
End Sub
It gives an exception at line PDFApp = CreateObject("A croExch.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_RO OT\AcroExch.Doc ument
the other keys are missing.

I have the key:
AcroExch.Docume nt
AcroExch.Docume nt.7
AcroExch.FDFDoc
AcroExch.Plugin
AcroExch.RMFFil e
AcroExch.SecSto re
AcroExch.Sequen ce
AcroExch.XDPDoc
AcroExch.XFDFDo c

Any Idea?

Thank you.
On 27 Mag, 13:43, Joy <J...@discussio ns.microsoft.co mwrote:
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_RO OT\AcroExch.App
HKEY_CLASSES_RO OT\AcroExch.App .1
HKEY_CLASSES_RO OT\AcroExch.AVD oc
HKEY_CLASSES_RO OT\AcroExch.Doc ument

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...@discussio ns.microsoft.co mwrote:
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...@discussio ns.microsoft.co mwrote:
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(By Val fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPD Doc
Dim AVDoc As Acrobat.CAcroAV Doc
Dim JSObj As Object
' Create Acrobat Application object
PDFApp = CreateObject("A croExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("A croExch.PDDoc")
' Open PDF file
PDDoc.Open(full PathPDF)
' 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.GetJSObje ct()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acro bat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fu llPathTIF, "com.adobe.acro bat.tiff")
PDDoc.Close()
PDFApp.CloseAll Docs()
' Clean up
System.Runtime. InteropServices .Marshal.Releas eComObject(JSOb j)
JSObj = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDFA pp)
PDFApp = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDDo c)
PDDoc = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(AVDo c)
AVDoc = Nothing
End Sub
It gives an exception at line PDFApp = CreateObject("A croExch.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...@discussio ns.microsoft.co mwrote:
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_RO OT\AcroExch.Doc ument
the other keys are missing.
I have the key:
AcroExch.Docume nt
AcroExch.Docume nt.7
AcroExch.FDFDoc
AcroExch.Plugin
AcroExch.RMFFil e
AcroExch.SecSto re
AcroExch.Sequen ce
AcroExch.XDPDoc
AcroExch.XFDFDo c
Any Idea?
Thank you.
On 27 Mag, 13:43, Joy <J...@discussio ns.microsoft.co mwrote:
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_RO OT\AcroExch.App
HKEY_CLASSES_RO OT\AcroExch.App .1
HKEY_CLASSES_RO OT\AcroExch.AVD oc
HKEY_CLASSES_RO OT\AcroExch.Doc ument
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...@discussio ns.microsoft.co mwrote:
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...@discussio ns.microsoft.co mwrote:
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(By Val fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPD Doc
Dim AVDoc As Acrobat.CAcroAV Doc
Dim JSObj As Object
' Create Acrobat Application object
PDFApp = CreateObject("A croExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("A croExch.PDDoc")
' Open PDF file
PDDoc.Open(full PathPDF)
' 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.GetJSObje ct()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acro bat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fu llPathTIF, "com.adobe.acro bat.tiff")
PDDoc.Close()
PDFApp.CloseAll Docs()
' Clean up
System.Runtime. InteropServices .Marshal.Releas eComObject(JSOb j)
JSObj = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDFA pp)
PDFApp = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDDo c)
PDDoc = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(AVDo c)
AVDoc = Nothing
End Sub
It gives an exception at line PDFApp = CreateObject("A croExch.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...@discussio ns.microsoft.co mwrote:
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_RO OT\AcroExch.Doc ument
the other keys are missing.
I have the key:
AcroExch.Docume nt
AcroExch.Docume nt.7
AcroExch.FDFDoc
AcroExch.Plugin
AcroExch.RMFFil e
AcroExch.SecSto re
AcroExch.Sequen ce
AcroExch.XDPDoc
AcroExch.XFDFDo c
Any Idea?
Thank you.
On 27 Mag, 13:43, Joy <J...@discussio ns.microsoft.co mwrote:
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_RO OT\AcroExch.App
HKEY_CLASSES_RO OT\AcroExch.App .1
HKEY_CLASSES_RO OT\AcroExch.AVD oc
HKEY_CLASSES_RO OT\AcroExch.Doc ument
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...@discussio ns.microsoft.co mwrote:
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...@discussio ns.microsoft.co mwrote:
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(By Val fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPD Doc
Dim AVDoc As Acrobat.CAcroAV Doc
Dim JSObj As Object
' Create Acrobat Application object
PDFApp = CreateObject("A croExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("A croExch.PDDoc")
' Open PDF file
PDDoc.Open(full PathPDF)
' 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.GetJSObje ct()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acro bat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fu llPathTIF, "com.adobe.acro bat.tiff")
PDDoc.Close()
PDFApp.CloseAll Docs()
' Clean up
System.Runtime. InteropServices .Marshal.Releas eComObject(JSOb j)
JSObj = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDFA pp)
PDFApp = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(PDDo c)
PDDoc = Nothing
System.Runtime. InteropServices .Marshal.Releas eComObject(AVDo c)
AVDoc = Nothing
End Sub
It gives an exception at line PDFApp = CreateObject("A croExch.App")
=Cannot create ActiveX component
I have acrobat 8. Do I need to install SDK or some other component?

Jun 27 '08 #10

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

Similar topics

2
11759
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 browser is a lot of gobledygook. How can I ensure that the image displays correctly in the browser? Dim objStream Dim FilImage, FolImage, strFilImage...
8
12580
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 "Exception from HRESULT 0x80131019" Thanks Chris
3
1632
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 test machine (window 2003 server) I get error: Argument Exception Invalid parameter used" The code that causes the error is: byte imgbyte;
4
7392
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 there are multiple pages per invoice. How can I grab the data, make the TIF, place it on the client and then Open with the clients default program...
1
1975
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... http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/intro_to_sdk/DeveloperFAQ.pdf Every once in a while, I get a generic "document failed to print" dialog from acrobat.
0
883
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, bmp, pdf, etc. create a tumbnail for display in a browser, save a high res file for print production and finally save the source file.
3
3310
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 picture box image to that variable like so: Dim img as BitMap ' (have tried BitMap and Image) img = Image.FromFile(OFD.FileName) PictureBox1.Image =...
3
2803
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 seem to figure out the correct way to "unload" the file. I have a simple form with a picture box and a button. I am using dir() to get all the the...
3
9823
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 problem. When I want to move the file, I get an error stating: System.IO.IOException: The process cannot access the file...
0
7788
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8299
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8163
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6545
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5667
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5355
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3799
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3813
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1397
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.