Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Need reference library acroexch.dll I need this to do some automation for Excel to PDF. What product is this file in or where can I get it?

New Here ,
Jan 11, 2016 Jan 11, 2016

I need this to do some automation for Excel to PDF. What product is this file in or where can I get it?

TOPICS
Acrobat SDK and JavaScript
9.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 12, 2016 Jan 12, 2016

The correct function is "CreateObject" - you have it misspelled.

Translate
LEGEND ,
Jan 11, 2016 Jan 11, 2016

This is part of Acrobat Pro and Acrobat Standard. It is not redistributable.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 12, 2016 Jan 12, 2016

Do know what the name of the reference library is? When I'm in Excel's Visual Basic Editor and scrolling through the reference library I have checked every box that says Adobe, Acro, or PDF and it still doesn't work. and I don't know why. Below is the code.

Sub ReadAdobeFields()


    ROWnum = 1

    Dim AcrobatApplication As Acrobat.CAcroApp
    Dim AcrobatDocument  As Acrobat.CAcroAVDoc
    Dim Fcount As Long
    Dim FieldName As String
   
    On Error Resume Next
    Set AcrobatApplication = CreatObject("AcroExch.App")   '<----- this is where it messes up it says "SUB or FUNCTION is not defined". It's because I don't have the correct reference library
    Set AcrobatDocument = CreatObject("AcroExh.AVDoc")
   
    If AcrobatDocument.Open(Range("C:\288701\Desktop\Test.pdf"), "") Then
        AcrobatApplication.Show
        Set AcroForm = CreateObject("AFormAut.App")
        Set Fields = AcroForm.Fields
        Fcount = Fields.Count
       
        For Each Fielf In Fields
            FieldName = Fields.Name
           
            ActiveSheet.Range("B" & ROWnum) = Field.Name
            ActiveSheet.Range("C" & ROWnum) = Field.Value
            ActiveSheet.Range("D" & ROWnum) = Field.Style
        Next
       
    End If

End Sub

When I'm checking these boxes what is the name?

Any help you can give would be very helpful? Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 26, 2019 Jun 26, 2019

Great!!!!

I wonder if its posible to get more info from the fields (Name, Value, Style), like de # or the page. I was looking in the web, but no succes.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 26, 2019 Jun 26, 2019
LATEST

Use the JSObject to get information about the individual fields. Take a look here for some information about how to automate Acrobat using JSObject: Reading And Modifying PDF Form Fields with VBA - KHKonsulting LLC

And here is all the information you need to retrieve information about the fields using the JS interface (via JSObject):

Acrobat DC SDK Documentation - Field

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 12, 2016 Jan 12, 2016

By the way, I have Acrobat Pro version 11.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 12, 2016 Jan 12, 2016

It's called just "Acrobat". See this tutorial for more information: Adobe Acrobat and VBA - An Introduction - KHKonsulting LLC

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 12, 2016 Jan 12, 2016

Thank you so much for your reply! It still didn't work though. Maybe there is another problem.

I checked the box for the reference.

Then I got This

any Ideas?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 12, 2016 Jan 12, 2016

The correct function is "CreateObject" - you have it misspelled.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 12, 2016 Jan 12, 2016

Yep, that was it. What a shame since English is my first and only language.

Thanks you for your help!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines