Hi,

GetJavaScriptNode was implemented, so that it did not create the JavaScript 
node if it does not exist. I added an optional parameter bCreate in SVN, 
where you can specify that the node should be created if it does not exist.

So the following code will work always:
PdfObject* documentJavaScript = 
pdfDocument.GetNamesTree(true)->GetJavaScriptNode(true);  

Best regards,
        Dom

Am Samstag, 21. November 2009 schrieb Ihab Sultan:
> Hi,
>
>
>
> I'm trying to add a document level JavaScript to the PDF file created with
> PoDoFo. I tried for example something like:
>
>
> PdfObject* documentJavaScript =
> pdfDocument.GetNamesTree(true)->GetJavaScriptNode();  but
> documentJavaScript is returned as a null pointer, so it is not working.
>
>
>
> Can you please point me on a simple way to add a document Javascript?
>
>
>
>
>
> Thank you.
>
> _________________________________________________________________
> Bing brings you maps, menus, and reviews organized in one place.
> http://www.bing.com/search?q=restaurants&form=MFESRP&publ=WLHMTAG&crea=TEXT
>_MFESRP_Local_MapsMenu_Resturants_1x1



-- 
**********************************************************************
Dominik Seichter - domseich...@web.de
KRename  - http://www.krename.net  - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game,  for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to