Hi,

thanks - I will try it as soon as I have some time...

@Michail - sorry - I can't answer your question by mail. It seems my 
provider blocks your domain as target :-(

Greets,

Patrik

Dominik Seichter schrieb:
> Oh, ok. You can add keys using the PdfDictionary class. PoDoFo will take care 
> of the Subtype entry in the annotation object for you already though.
> 
> A bit longer example below showing how to add different types to the 
> anotations directory.
> 
> 
> PdfMemDocument doc("file.pdf");
> 
> // This object will hold your stream data
> PdfObject* pStream = doc.GetObjects().CreateObject( "3D" );
> pStream->AddKey( PdfName("Subtype"), PdfName("U3D") );
> pStream->GetStream()->Set( pointer to your data, length of your data ); // 
> the 
> here the data buffer. PoDoFo will do compression etc for you.
> 
> PdfPage* pPage = doc.CreatePage( PdfPage::CreateStandardPageSize( A4 ) );
> PdfAnnotation* pAnnot  = pPage->CreateAnnotation( ePdfAnnotation_3D );
> pAnnot->GetObject()->GetDictionary().AddKey( PdfName("3DD"), 
> pStream->Reference() );
> 
> best regards,
>       Dom
> 
> Am Thursday 22 November 2007 schrieben Sie:
>> Hi,
>>
>> I've already studied the PDF spec and done the U3D inclusion with
>> another tool. I need a start how to add it to PoDoFo (for example the
>> subtype entry and so on)...
>>
>> Best regards,
>>
>> Patrik
>>
>> Dominik Seichter schrieb:
>>> 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
> 
> 
> 


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to