detect pdf properties using javascript, possible?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mscir

    detect pdf properties using javascript, possible?

    I would like to generate a page of links including some of the pdf
    properties (title, author, version, etc.) for a folder full of pdf's.
    Is this possible from Javascript?

    TIA,
    Mike
  • J. Hall

    #2
    Re: detect pdf properties using javascript, possible?

    Very much doubt it dude, you'll need some kind of com object or similar to
    achieve this.

    Cheers, @sh

    "mscir" <mscir@usa.co m> wrote in message
    news:becff1bc.0 406012235.17961 12e@posting.goo gle.com...[color=blue]
    > I would like to generate a page of links including some of the pdf
    > properties (title, author, version, etc.) for a folder full of pdf's.
    > Is this possible from Javascript?
    >
    > TIA,
    > Mike[/color]


    Comment

    • Grant Wagner

      #3
      Re: detect pdf properties using javascript, possible?

      mscir wrote:
      [color=blue]
      > I would like to generate a page of links including some of the pdf
      > properties (title, author, version, etc.) for a folder full of pdf's.
      > Is this possible from Javascript?
      >
      > TIA,
      > Mike[/color]

      Only if you are talking about JavaScript running under the Netscape (Sun
      ONE) Enterprise Web server (and possibly other Web servers) or JScript
      running under IIS (and possibly other Web servers).

      If you mean client-side JavaScript running in a Web browser in the
      default security environment without any help from the server, no, it can
      not be done in JavaScript.

      --
      | Grant Wagner <gwagner@agrico reunited.com>

      * Client-side Javascript and Netscape 4 DOM Reference available at:
      *


      * Internet Explorer DOM Reference available at:
      *
      Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


      * Netscape 6/7 DOM Reference available at:
      * http://www.mozilla.org/docs/dom/domref/
      * Tips for upgrading JavaScript for Netscape 7 / Mozilla
      * http://www.mozilla.org/docs/web-deve...upgrade_2.html


      Comment

      • mscir

        #4
        Re: detect pdf properties using javascript, possible?

        Grant Wagner <gwagner@agrico reunited.com> wrote[color=blue]
        > mscir wrote:[color=green]
        > > I would like to generate a page of links including some of the pdf
        > > properties (title, author, version, etc.) for a folder full of pdf's.
        > > Is this possible from Javascript?[/color]
        >
        > Only if you are talking about JavaScript running under the Netscape (Sun
        > ONE) Enterprise Web server (and possibly other Web servers) or JScript
        > running under IIS (and possibly other Web servers).
        >
        > If you mean client-side JavaScript running in a Web browser in the
        > default security environment without any help from the server, no, it can
        > not be done in JavaScript.
        > | Grant Wagner <gwagner@agrico reunited.com>[/color]

        Yes, javascript under IIS/ASP. I'm looking around with google for a
        component but no luck so far.

        Thanks,
        Mike

        Comment

        • Grant Wagner

          #5
          Re: detect pdf properties using javascript, possible?

          mscir wrote:
          [color=blue]
          > Grant Wagner <gwagner@agrico reunited.com> wrote[color=green]
          > > mscir wrote:[color=darkred]
          > > > I would like to generate a page of links including some of the pdf
          > > > properties (title, author, version, etc.) for a folder full of pdf's.
          > > > Is this possible from Javascript?[/color]
          > >
          > > Only if you are talking about JavaScript running under the Netscape (Sun
          > > ONE) Enterprise Web server (and possibly other Web servers) or JScript
          > > running under IIS (and possibly other Web servers).
          > >
          > > If you mean client-side JavaScript running in a Web browser in the
          > > default security environment without any help from the server, no, it can
          > > not be done in JavaScript.
          > > | Grant Wagner <gwagner@agrico reunited.com>[/color]
          >
          > Yes, javascript under IIS/ASP. I'm looking around with google for a
          > component but no luck so far.
          >
          > Thanks,
          > Mike[/color]

          I'll assume you already know how to read the contents of a directory and
          display links to the file names. If you don't know how to do that, get that
          working first.

          As for the component of which you speak, you're right, a few searches didn't
          turn up anything. However, I guess if I had to do this, I'd start at: <url:
          http://partners.adobe.com/asn/tech/p...ifications.jsp />

          Once you know the format of the PDF file (which doesn't appear to be all that
          complicated), it should be a relatively simple matter to obtain the information
          you need. Section 10.2 contains information about the Metadata, where it is
          located, and how it is structured. It appears you'll also need to read the
          sections on understanding the "document information dictionary" and "metadata
          stream".

          The other alternative I found was to let the IIS Index Server index the
          documents, then query it for the information you require. An example of that
          (complete with code for ASP.NET) is here: <url
          http://forums.aspfree.com/t19740/s.html />.

          --
          | Grant Wagner <gwagner@agrico reunited.com>

          * Client-side Javascript and Netscape 4 DOM Reference available at:
          *


          * Internet Explorer DOM Reference available at:
          *
          Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


          * Netscape 6/7 DOM Reference available at:
          * http://www.mozilla.org/docs/dom/domref/
          * Tips for upgrading JavaScript for Netscape 7 / Mozilla
          * http://www.mozilla.org/docs/web-deve...upgrade_2.html


          Comment

          Working...