Hi, Take a look at the PdfDictionary and PdfMemDocument classes. Pseudo-code will look like this:
// Create ocPropDict and fill it with some values
PdfDictionary ocPropDict;
ocPropDict.AddKey( ... );
// Add OCProperties to an existing PDF
PdfMemDocument doc;
doc.Load("file.pdf");
doc.GetCatalog()->AddKey( PdfName("OCProperties"), ocPropDict);
doc.Write("file_new.pdf");
Hope this helps...
Dom
Am Samstag, 5. September 2009 schrieb [email protected]:
> Hi,
>
> I want to try adding Optional content support to PoDoFo. But here's
> already the first question:
>
> how can I make a OCProperties dictionary as a child of the Catalog
> dictionary?
>
> Thanks in advance,
>
> Patrik
>
> ---------------------------------------------------------------------------
>--- 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/podofo-users
--
**********************************************************************
Dominik Seichter - [email protected]
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
**********************************************************************
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 [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
