Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
Zlatko_Marcok@adobeforums.com #1
filesystem access from javascript
Hello
I would like to access a plain text file from javascript. Is it possible?
This is one piece of my project. I have a large number of PDF files. I need to scan through them for certain strings, and then create a hyperlink on those strings. The link destination is found in my plain text file. I need to do this in a batch process using either javascript, javascript and IAC, or plugins and IAC. I do not have access to the original MS Word documents used to create the PDFs (otherwise I would use pdfmarks). Feel free to share any insight you may have on solving this problem.
Zlatko_Marcok@adobeforums.com Guest
-
Access DOM using JavaScript::SpiderMonkey
Hello all, I'm working on a program as part of my off-time hobby, but seems like I've got a problem here. Say, I have an HTML file like this:... -
CF/Javascript access to modem
Hello, Were you ever able to get this to work? I want to do exactly the same thing. I'm told MS Outlook can do it, but I need it to work for an... -
Javascript Access Denied Error.
This problem involves client-side code. ASP is server-side technology, so your question is off-topic. You need to ask it on a newsgroup that is... -
access html control with javascript
Hi, I've got a HTMLTable in my user control.I wrote a Javascript function and try to edit cells in that table and I get this error: Table1 is... -
FileSystem access to network
I want to write a script that can read and write files to a place on a network file-server. Since the machine-local IUSR is not a domain user, it... -
Leonard_Rosenthol@adobeforums.com #2
Re: filesystem access from javascript
No, it is not possible to read files with JavaScript.
I would embed the data as a string in the JavaScript and read it form there.
Leonard_Rosenthol@adobeforums.com Guest
-
George Johnson #3
Re: filesystem access from javascript
You can't read files directly with JavaScript, but you can import a file into a PDF and read the resulting data object's contents. See the doc.getDataObjectContents method in the Acrobat JavaScript reference for more information.
George
George Johnson Guest
-
Zlatko_Marcok@adobeforums.com #4
Re: filesystem access from javascript
Thanks for your suggestions. My project is done. I did it with the C plugin API because it gave me the most functionality, even though the size of the API is daunting. Without the sample programs, I think I'd never have succeeded.
I scanned through 30000 pdf files for document titles and created hyperlinks on those titles. My text file of link destinations is about 28000 lines long (sorted and binary searched). The whole operation took about 15 minutes.
Zlatko_Marcok@adobeforums.com Guest
-
jacob_samuel@adobeforums.com #5
Re: filesystem access from javascript
Dear Zlatko,
Could you tell me how you did that?
If possible please send me the code.
e-mail: [email]jacobbobysamuel@yahoo.com[/email]
Thanks
Jacob
jacob_samuel@adobeforums.com Guest



Reply With Quote

