Hi, Leonard is right. You have to unterstand first what object you need in PDF for U3D.
From the PoDoFo side it is quite easy. You create a PdfDocument, a PdfPage and
a PdfAnnotation of the type ePdfAnnotation_3D. After that you can work
directly on the PdfObject returned by the annotation.
The code might look roughly like this:
PdfMemDocument doc("file.pdf");
PdfPage* pPage = doc.CreatePage( PdfPage::CreateStandardPageSize( A4 ) );
PdfAnnotation* pAnnot = pPage->CreateAnnotation( ePdfAnnotation_3D );
pAnnot->GetObject()->GetDictionary() ....
Now you can add custom keys to the dictionary.
best regards,
Dom
Am Wednesday 21 November 2007 schrieb Leonard Rosenthol:
> You'll need to read the PDF Reference to understand all the PDF
> objects necessary to incorporate the U3D file into the PDF. It's
> not hard, but there are a variety of objects involved...
>
> Leonard
>
> On Nov 21, 2007, at 5:07 AM, [EMAIL PROTECTED] wrote:
> > Hi,
> >
> > I'm a newbie with PoDoFo - but I really like what I see. Thanks for
> > the good job!
> >
> > So here is my first question: I want to add a 3D annotation with an
> > U3D file. I've already read the thread about the multi-media
> > annotation - but to be honest - it isn't so easy to understand for
> > the first contact with the lib.
> >
> > If I derive from PdfObject - what do I have to do for include an U3D?
> >
> > Anybody has a hint or even an example?
> >
> > Thanks,
> >
> > Patrik
> > --
> > GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
> > Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
> >
> > ----------------------------------------------------------------------
> > ---
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Podofo-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/podofo-users
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> 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.
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
