Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

How to browse a file inside PDF form ?

Avatar

Level 4

Hi, I am building a PDF form in LC Designer9. I have a requirement to browse a file and attach it with my PDF. I am not finding any control for File Browse inside the available tools. Can anybody help me on it.

Thanks in advance.

-

Abhinav

2 Replies

Avatar

Level 6

I don't believe it's possible.  I have seen a solution using pop boxes but it was created with acrobat

Avatar

Level 4

Hi PaulK07, Thanks for your reply

While googling I found the way to browse a file. Using this I am able to browse the file and make it attached to the PDF.


Code:


/* On Button Click Event */


var oObj = event.target;
var fileAttachments = oObj.dataObjects;              

oObj.importDataObject(counter.value);    //counter.value = 0 ; form variable
var oDataObj = oObj.getDataObject(counter.value);
txtFilePath.rawValue = oDataObj.path;     // Set the file name in the TextField.

But this still does not solve the problem completely. It is just giving the file name but I need the complete file path.

Can anybody help how can I get the complete file path in the TextField using this (or any other) method.

thanks in advance.

-

Abhinav