Hello Humatrope,
Determining what to trim comes from a brief review of the relevant
Adobe specifications. I will assume the use of a text editor that will
not "damage" the file (just apply your changes and will not make other
changes to the file to "help" you).
According to the Adobe PDF Specification, page 556 (576 of 978)
http://partners.adobe.com/asn/developer/acrosdk/docs/filefmtspecs/PDFReference.pdf
describe Javascript actions. The table on this page indicates in part:
JS string or stream (Required) A string or stream containing the
JavaScript script to be executed.
Note: PDFDocEncoding or Unicode encoding (the latter identi?ed by the
Unicode
pre?x U +FEFF) is used to encode the contents of the string or stream.
(See implementation
note 89 in Appendix H.)
Using the same example as I provided above, in text form it looks
like...
264 0 obj
<<
/S /JavaScript
/JS (encoded characters here)
>>
endobj
Using this example, the only places where the phrase /JS appears is in
objects such as this one. The characters within the parenthensis are
the javascript (in a form that is not readily read by the user).
Eliminate them to eliminate the Javascript.
As a cross check, search the document repeatedly for 264. It appears
in a larger number, but also appears inside an "Annot" (annotation)
and "widget"; object 194. You could continue to go back to find
further references of this type (to 194).
So at this point - the Javascript appears to be within the
parenthensis, as an encoded string. Remove those strings; save the
file; review the result. This should result in removal of the
javascript from the file.
If this is unclear or not complete - please don't hesitate to ask for
clarification.
--Maniac |