filesystem access from javascript

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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:...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139