downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

fdf_add_template> <FDF
[edit] Last updated: Fri, 17 May 2013

view this page in

fdf_add_doc_javascript

(PHP 4 >= 4.3.0, PHP 5)

fdf_add_doc_javascriptFügt JavaScript Code in ein FDF Dokument ein.

Beschreibung

bool fdf_add_doc_javascript ( resource $fdfdoc , string $script_name , string $script_code )

Fügt ein Script zum FDF Dokument, welches Acrobat zu den doc-level scripts des Dokuments hinzufügt, sobald FTF eingefügt wird. Es wird unbedingt empfohlen '\r' für Zeilenumbrüche innerhalb von script_code zu verwenden.

Beispiel #1 Adding JavaScript code to a FDF

<?php
$fdf 
fdf_create();
fdf_add_doc_javascript($fdf"PlusOne""function PlusOne(x)\r{\r  return x+1;\r}\r");
fdf_save($fdf);
?>

will create a FDF like this:

%FDF-1.2
%âãÏÓ
1 0 obj
<< 
/FDF << /JavaScript << /Doc [ (PlusOne)(function PlusOne\(x\)\r{\r  return x+1;\r}\r)] >> >> 
>> 
endobj
trailer
<<
/Root 1 0 R 

>>
%%EOF



add a note add a note User Contributed Notes fdf_add_doc_javascript - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites