Solved

PDF Fields

Posted on 2010-09-24
2
404 Views
Last Modified: 2012-05-10
This is question is a follow up to my last succesfully answered question regarding using VBA to read Adobe field names.

How can I extract ALL the fields names in a PDF document - this would remove the requirement to identify them individually first and allow me to simply move the values to corresponding Database fields which could be dynamically created?

0
Comment
Question by:kokane
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 250 total points
ID: 33760571
Go back to my old VBA program and after you create the JSO object, insert the following code snippet:

 This will iterate over all fields and create a string with the names of these objects.


' find all form fields
    Dim fields As String
    fields = "Form fields: "
    Dim i As Integer
    Dim f As Object
    For i = 0 To jso.numFields - 1
        fields = fields & " " & jso.getNthFieldName(i)
    Next i
    MsgBox fields

Open in new window

0
 

Author Closing Comment

by:kokane
ID: 33761258
Thanks spot on.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update 21-May-2015: I temporarily removed the source code and the code snippets to make major changes to the program. Regards, Joe INTRODUCTION This Article is a follow-up to the Article entitled How To Rename-Move a Batch of PDF Files Based o…
*Adobe Acrobat 9 was used for this article.  Particular steps may vary depending on software versions. Adobe Acrobat has many, many variables that my be utilized to customize your forms for clarity and ease of use. The Form Editing Tool will be y…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question