Hi Ian, Thank you very much for your contribution. This makes indeed a very nice tool, which I commited now to SVN.
Regards,
Dominik
Am Dienstag 10 August 2010 schrieb Ian Ashley:
> Dear Dominik,
>
> Thanks for your help, that worked perfectly. As I am not the only person
> that seems to require this functionality I have attached my test program
> that can either display the XMP in a PDF or create a new PDF with some XMP
> in. This could be made into a tool provided with podofo.
>
> Regards,
> Ian
>
>
> Ian Ashley
> Software Engineering Manager
> Development
>
>
> Open Text
> Sandridge Park, Porters Wood,
> St Albans, Herts.
> AL3 6PH
> UK
>
> Phone: +44 (0) 1727 847488
> Fax: +44 (0) 1727 840649
> Email: [email protected]
> Web site: http://www.opentext.com/
>
> Nstein is now Open Text.
> Please update your address book with my new email address.
> This email is protected by domestic and international copyright laws and
> treaties and is the property of Open Text Corporation, it may contain
> confidential and/or trade secret information of the Open Text Corporation
> and/or its subsidiaries (OTC), and may be subject to legal privilege in
> favour of OTC. This email may only be lawfully received, accessed,
> displayed on a computer screen, printed, copied, and/or used by the
> specific addressee(s) named above ("Authorized Recipient") for the purpose
> for which it was sent by OTC. All other rights and licenses to this email
> are fully reserved to OTC. If you are not an Authorized Recipient, you are
> required to immediately delete this email in its entirety without
> printing, copying, using, and/or re-transmitting this email, either in
> whole or in part. The transmission of this email by OTC is not to be
> construed as a waiver by OTC and/or the individual sending this email on
> behalf of OTC of any of their respective rights or privileges at law or
> otherwise, howsoever arising
>
>
>
>
> From: Dominik Seichter <[email protected]>
> Date: Tue, 10 Aug 2010 09:27:55 +0100
> To: Ian Ashley <[email protected]>
> Cc: <[email protected]>
> Subject: Re: [Podofo-users] XMP Metadata
>
> PdfObject* pObj = doc->GetObjects().CreateObject("Metadata");
> pObj->GetDictionary().AddKey(PdfName("Subtype"), PdfName("XML"));
> pObj->GetStream()->Set(xmpString, strlen(xmpString));
> doc->GetCatalog()->GetDictionary().AddKey(PoDoFo::PdfName("Metadata"),
> pObj->Reference());
>
--
**********************************************************************
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 Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
