I could live with that. I just figure I probably
won't be the last person to want to do this. Would
you want to provide any support for structuring the
XMP? There are a lot of things that seem to be fairly
constant with XMP. I have attached the "constants" I
used. I ignored the "bytes" attribute of the ?xpacket
tag, but it should be easy to set if this were put
into a nice central location within iText.
-Matt
--- Paulo Soares <[EMAIL PROTECTED]> wrote:
> Well, I suppose that the method in PdfStamper would
> make sense.
>
> Best Regards,
> Paulo Soares
>
> > -----Original Message-----
> > From: Matt Benson [SMTP:[EMAIL PROTECTED]
> > Sent: Wednesday, March 26, 2003 17:22
> > To: Paulo Soares;
> '[EMAIL PROTECTED]'
> > Subject: RE: [iText-questions] New release
> itext-paulo-113
> >
> > I know--is the implication that this method's
> > existence might be misleading to the new user and
> > generate a lot of e-mails to the list? ;)
> >
> > -Matt
> >
> > --- Paulo Soares <[EMAIL PROTECTED]> wrote:
> > > setMetadata would need something like PdfStamper
> to
> > > write new content.
> > >
> > > Best Regards,
> > > Paulo Soares
> > >
> > > > -----Original Message-----
> > > > From: Matt Benson [SMTP:[EMAIL PROTECTED]
> > > > Sent: Tuesday, March 25, 2003 15:43
> > > > To: Paulo Soares;
> > > '[EMAIL PROTECTED]'
> > > > Subject: Re: [iText-questions] New release
> > > itext-paulo-113
> > > >
> > > > Nice, but out of curiosity, why did you decide
> not
> > > to
> > > > add a corresponding setMetadata method?
> > > >
> > > > -Matt
> > > >
> > > > --- Paulo Soares <[EMAIL PROTECTED]> wrote:
> > > > > Changes in itext-paulo-113 (2003-03-25)
> > > > >
> > > > > - added a new arabic shaper with farsi
> > > support.
> > > > >
> > > > > - FdfWriter will also output the fields
> from
> > > a
> > > > > PdfReader and AcroFields.
> > > > >
> > > > > - fixed PdfAcroForm for a problem when
> > > creating
> > > > > text fields. The /DA key
> > > > > was being generated incorrectly.
> > > > >
> > > > > - added a file attachment annotation.
> > > > >
> > > > > - the subtype for the ink annotation was
> > > wrong.
> > > > >
> > > > > - modified toPdf() method to write
> directly
> > > to
> > > > > the stream.
> > > > > OutputStreamCounter
> > > > > was created to aid.
> > > > >
> > > > > - added ModDate to the info dictionary.
> > > > >
> > > > > - added methods in PdfPTable to set
> absolute
> > > > > column widths.
> > > > >
> > > > > - added PdfReader.getMetadata() to get
> the
> > > XML
> > > > > metadata.
> > > > >
> > > > > - speed improvement in PdfReader.
> > > > >
> > > > > - fixed a bug in PdfStamperImp when
> stamping
> > > or
> > > > > flattening and the
> > > > > original page
> > > > > content didn't end in an whitespace.
> > > > >
> > > > > - added the ability to manipulate
> directly
> > > the
> > > > > catalog and the info
> > > > > dictionary
> > > > > in PdfWriter. Other methods where made
> > > public
> > > > > for ease of access to
> > > > > low level
> > > > > features.
> > > > >
> > > > >
> > > > >
> > > > > All this at:
> > > > >
> > > > > http://www.geocities.com/itextpdf
> > > > > Mirror at http://itext.execuchoice.net
> > > > >
> > > > > Best Regards,
> > > > > Paulo Soares
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>
-------------------------------------------------------
> > > > > This SF.net email is sponsored by:
> > > > > The Definitive IT and Networking Event. Be
> > > There!
> > > > > NetWorld+Interop Las Vegas 2003 -- Register
> > > today!
> > > > >
> > > >
> > >
> >
>
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> > > > >
> _______________________________________________
> > > > > iText-questions mailing list
> > > > > [EMAIL PROTECTED]
> > > > >
> > > >
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/itext-questions
> > > >
> > > >
> > > >
> __________________________________________________
> > > > Do you Yahoo!?
> > > > Yahoo! Platinum - Watch CBS' NCAA March
> Madness,
> > > live on your desktop!
> > > > http://platinum.yahoo.com
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Platinum - Watch CBS' NCAA March Madness,
> live on your desktop!
> > http://platinum.yahoo.com
> >
> >
> >
>
-------------------------------------------------------
> > This SF.net email is sponsored by:
> > The Definitive IT and Networking Event. Be There!
> > NetWorld+Interop Las Vegas 2003 -- Register today!
> >
>
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> > _______________________________________________
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> >
https://lists.sourceforge.net/lists/listinfo/itext-questions
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
private static final String X_PACKET_START
= "<?xpacket begin='\ufeff' id='W5M0MpCehiHzreSzNTczkc9d'?>";
private static final String X_PACKET_END = "<?xpacket end='w'?>";
private static final String PDF_URI = "http://ns.adobe.com/pdf/1.3/";
private static final String PDF_PREFIX = "pdf";
private static final String PDFX_URI = "http://ns.adobe.com/pdfx/1.3/";
private static final String PDFX_PREFIX = "pdfx";
private static final String DC_URI = "http://purl.org/dc/elements/1.1/";
private static final String DC_PREFIX = "dc";