Acrobat DLL Exception (Transforming pdf to tif)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mauro

    #1

    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:


    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?
  • =?Utf-8?B?Sm95?=

    #2
    RE: Acrobat DLL Exception (Transforming pdf to tif)

    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:

    >
    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?
    >

    Comment

    • Mauro

      #3
      Re: Acrobat DLL Exception (Transforming pdf to tif)

      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?

      Comment

      • =?Utf-8?B?Sm95?=

        #4
        Re: Acrobat DLL Exception (Transforming pdf to tif)

        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?
        >
        >

        Comment

        • Mauro

          #5
          Re: Acrobat DLL Exception (Transforming pdf to tif)

          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?

          Comment

          • =?Utf-8?B?Sm95?=

            #6
            Re: Acrobat DLL Exception (Transforming pdf to tif)

            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?
            >
            >

            Comment

            • Mauro

              #7
              Re: Acrobat DLL Exception (Transforming pdf to tif)

              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?

              Comment

              • =?Utf-8?B?Sm95?=

                #8
                Re: Acrobat DLL Exception (Transforming pdf to tif)

                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?
                >
                >

                Comment

                • Mauro

                  #9
                  Re: Acrobat DLL Exception (Transforming pdf to tif)

                  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?

                  Comment

                  • =?Utf-8?B?Sm95?=

                    #10
                    Re: Acrobat DLL Exception (Transforming pdf to tif)

                    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?
                    >
                    >

                    Comment

                    • Mauro

                      #11
                      Re: Acrobat DLL Exception (Transforming pdf to tif)

                      I've launched a Ghostscript process that converts PDF into TIFF. Dirty
                      but simple and functional

                      On 28 Mag, 13:48, Joy <J...@discussio ns.microsoft.co mwrote:
                      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:
                      >>
                      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?

                      Comment

                      Working...