Results 1 to 5 of 5
  1. #1
    DonCammne is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Oct 2015
    Posts
    3

    Import data from a PDF file to a table in Access 2013 without Adobe Acrobat

    Hi! I'm new in this forum and I hope that I'll be understandable.


    My problem is, like I said in the title, importing data from a PDF file. I found this in internet:

    http://www.vbaexpress.com/kb/getarticle.php?kb_id=977
    N.B. in the bat file, I changed the line
    Code:
    pdftotext.exe -layout YourPage.pdf
    with
    Code:
    pdftotext.exe -table YourPage.pdf
    because I think that is easier to import the data, but I'm not sure of this...

    but it's for Excell and I don't understand how to use it in Access. Furthermore I don't know how to import the data from the txt file in a table.
    Someone can halp me? I found in internet quite nothing.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    In order for that code to work you will need to download the PDF utility from FooLabs and also the BAT file. Additionally, some of the code will not work in Access. For instance, I am not aware of a Wait Method within Access. I have always created my own custom Wait function.

    Beyond that, I have used third party software/add-ins to interact with PDF files. You may have an issue with a 10 to 15 year old PDF utility from FooLabs. I did not try the FooLabs link. If they have an updated utility, you may need to update the separate BAT file, too. The best way would probably be to use a full version of Acrobat and automate the PDF directly from Access. However, this requires Intermediate to advanced VBA programming.

  3. #3
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    There are several wizards for handling the importing of data into a table that are within Access. Check the External Data Tab in Access, Or look under the Office Button for import options(not sure where the option is in access 2013).

    It may be easier to use that tool you found, to import that data into Excel. And then Use Access to create a Linked Table that points to that Excel File as a resource.

    Importing data from a pdf to text is always a lil sketchy. A PDF is more of a picture, than a document with text.

  4. #4
    DonCammne is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Oct 2015
    Posts
    3
    Thank you for the help, but the main problem is hoe can I open the PDF file in access, because the line
    Code:
    PageName = Application.GetOpenFilename("YourPage, *.pdf", , "YourPage") 
    doesn't work in Access. I tried with
    Code:
    .FileDialog
    but nothing.

  5. #5
    DonCammne is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Oct 2015
    Posts
    3
    Thank you for the response! I try it right now, but first, to be sure that I understood: I have to import the data from the PDF file to an Excell file, then import the data from the Excell data to Access, right?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. How to import a dBASE table in Access 2013
    By Jocoel in forum Import/Export Data
    Replies: 3
    Last Post: 11-05-2014, 07:08 PM
  2. Replies: 1
    Last Post: 04-18-2014, 10:03 AM
  3. Replies: 13
    Last Post: 02-20-2014, 05:56 PM
  4. Replies: 5
    Last Post: 01-23-2014, 09:36 AM
  5. Replies: 1
    Last Post: 05-16-2011, 01:34 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums