Skip to main content
Participant
June 5, 2017
Question

Interactive PDF retrieving spreadsheet information

  • June 5, 2017
  • 3 replies
  • 991 views

Hello,

Sorry in advance if the question has already been answered but can't seem to find it.

I am building an interactive PDF where a client number can be added in one field for identification.

I have an Excel spreadsheet with the correlation between client number and name.

Is it possible to import this spreadsheet so that when the client number is filled in one text field, the client name will be displayed in a second field?

Thank you for your help.

This topic has been closed for replies.

3 replies

JR Boulay
Community Expert
Community Expert
June 6, 2017
Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
June 6, 2017

It's possible, but not with an Excel file. The file will have to be saved as a plain-text file first.

Then it can be accessed either from a local folder (if the location is known in advance or if the user selects the file), or it can be attached to the PDF and accessed directly. I've developed similar scripts for many clients.

Legend
June 6, 2017

Are you looking at populating this as 'static' text in the PDF form that is being created from InDesign (e.g. you'd have number and name locked in for each PDF form you create?)

In that case, you could look at using Data Merge in InDesign (save a .CSV file from the Excel Spreadsheet first, with headings at the top of columns for 'number' and 'name'.).

The following weblink will explain how to do this:

If this doesn't provide you with a solution, please provide as much information as possible. We might need to move this forum post to PDF forms forums in that case for more support.

bzoiroAuthor
Participant
June 6, 2017

Hello Cari,

Thank you so much for your help, but actually that's not exactly what i'm searching for:

I created a form that our clients can download and fill, requesting material and resend back to us. This is a generic form for all clients.

The document has 2 text fields to be filled: Client number and Client name. I have an Spreadsheet where I have this correlation.

My question is then if this is possible:

-Client d456- Jason Walker downloads the PDF file to make a request.

-Client writes "d456" in "Client number" field

-The spreadsheet data is embedded in the PDF and automatically "Jason Walker" populates the "name" field.

This is a simplistic version, as further client data would need to be imported, but i think this better helps to understand my goal.

Once again thank you for your help.

Kind Regards

Legend
June 6, 2017

I've moved this post to JavaScript forums (part of Acrobat community).

As the PDF form you've created from InDesign is an Acrobat PDF form, you'll likely need to work with a JavaScript to get the Client name populated. 

What I think would be needed in that case, is for the Client name field properties to be edited in Acrobat, and then using a JavaScript automatically enter the value for the field based on the details in the spreadsheet. I'm thinking you'd probably need to include some sort of reference table as part of the JavaScript (an array that contains 2 values for each entry: client number, and client name), that can be referenced by the script.

I'm not much of a scripter myself, but hopefully someone here will be able to assist.