I may not be understanding you here. I have Reader, and when I open the resulting pdf (created by PDF::Reuse), I get a blank document. That's how I know that something's wrong - I'm not seeing a form field. Of course I've checked that javascript is enabled, etc.

I agree that the fact that the javascript appears within the pdf file (the strings test) doesn't mean its in the right place, or that its being initialized/called correctly.

Other uses of PDF::Reuse seem to work fine.

Standalone javascript interpreters verify the syntax is ok, although I can't test much else (because the "this" object refers to the Adobe doc object.

A much stripped down javascript examples also failed (I posted a long one since it was from the Tutorial docs, and I didn't want to risk my javascript syntax being the problem).

If I had Acrobat I'd have another way to approach the problem, and I could follow the Adobe docs, etc.

Thanks again, qq


In reply to Re^4: PDF::Reuse - adding javascript by qq
in thread PDF::Reuse - adding javascript by qq

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.