Re: [iText-questions] How to remove XMP Metadata inside Stamper?

2005-08-30 Thread Bruno Lowagie
Paulo Soares wrote: PdfDate.W3C cant't be static or if it is must be synchronized. OK, fixed it in the CVS. br, Bruno --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Devel

RE: [iText-questions] How to remove XMP Metadata inside Stamper?

2005-08-30 Thread Paulo Soares
> Cc: 'itext-questions@lists.sourceforge.net' > Subject: Re: [iText-questions] How to remove XMP Metadata > inside Stamper? > > Leonard Rosenthol wrote: > > > > > > >> That way you wouldn't have to care > >> about the XML. It would be generated

Re: [iText-questions] How to remove XMP Metadata inside Stamper?

2005-08-30 Thread Leonard Rosenthol
At 11:12 AM 8/30/2005, bruno wrote: For the average user of iText - YES! AND it would be a nice marketing tool for iText, since it would make it only the THIRD program to support this. Done. See the CVS repository. VERY COOL!! Nice job - and thanks! Leonard

Re: [iText-questions] How to remove XMP Metadata inside Stamper?

2005-08-30 Thread bruno
Leonard Rosenthol wrote: That way you wouldn't have to care about the XML. It would be generated behind the screens... Would that be a good idea? For the average user of iText - YES! AND it would be a nice marketing tool for iText, since it would make it only the THIRD program

Re: [iText-questions] How to remove XMP Metadata inside Stamper?

2005-08-30 Thread Leonard Rosenthol
At 08:59 AM 8/30/2005, bruno wrote: Are you suggesting I should have some method PdfDocument.generateXmpData() to be called after adding the metadata? As an ALTERNATIVE to users having to understand the details of XMP - yes! This method would then automatically generate XMP with in

Re: [iText-questions] How to remove XMP Metadata inside Stamper?

2005-08-30 Thread bruno
Leonard Rosenthol wrote: Also be sure to read the PDF/A specification, specifically the section concerning the "crosswalk" of XMP to /Info dict. Found the crosswalk table. Trying to figure out what to do with it. Are you suggesting I should have some method PdfDocument.generateXmpData

Re: [iText-questions] How to remove XMP Metadata inside Stamper?

2005-08-30 Thread Leonard Rosenthol
At 06:43 AM 8/30/2005, bruno wrote: I have studied the XMP specs and added a simple XmpWriter to CVS. Cool! Also be sure to read the PDF/A specification, specifically the section concerning the "crosswalk" of XMP to /Info dict. Leonard -

Re: [iText-questions] How to remove XMP Metadata inside Stamper?

2005-08-30 Thread bruno
[EMAIL PROTECTED] wrote: Paulo, It would be very helpful if you could provide examples (as I've not been able to find any elsewhere) of how easy it is when you say... "It's very easy to set/get the XMP metadata, the problem is what to put there." I have studied the XMP specs and added a si

RE: [iText-questions] How to remove XMP Metadata inside Stamper?

2005-08-17 Thread Paulo Soares
10:21 AM > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] How to remove XMP Metadata > inside Stamper? > > Paulo, > > It would be very helpful if you could provide examples (as > I've not been > able to find any elsewhere) of how easy it is whe

Re: [iText-questions] How to remove XMP Metadata inside Stamper?

2005-08-17 Thread listservs
Paulo, It would be very helpful if you could provide examples (as I've not been able to find any elsewhere) of how easy it is when you say... "It's very easy to set/get the XMP metadata, the problem is what to put there." Thanks! Tony Bull -

Re: [iText-questions] How to remove XMP Metadata inside Stamper?

2005-08-13 Thread Paulo Soares
It's very easy to set/get the XMP metadata, the problem is what to put there. - Original Message - From: "Bruno Lowagie" <[EMAIL PROTECTED]> To: "Roger Misteli" <[EMAIL PROTECTED]> Cc: Sent: Saturday, August 13, 2005 8:39 AM Subject: Re: [iText-

Re: [iText-questions] How to remove XMP Metadata inside Stamper?

2005-08-13 Thread Bruno Lowagie
Roger Misteli wrote: Hi Bruno Unfortunately, this didn't solve my problem. Apparently (I looked into the PDF itself) the PDF I have as template has more than one XMP Metadata object stored. If I remove(PdfName.METADATA) I seem to remove, well, one of them. The rest is still there. I attached t

Re: [iText-questions] How to remove XMP Metadata inside Stamper?

2005-08-12 Thread bruno
Roger Misteli wrote: Now I have a PDF document that contains PDF Form fields which I want to fill and flatten and that file contains XMP metadata. I want to remove that metadata and write my own metadata (using the code above) If you have a PdfReader, you can ask for its catalog with getCatalo

[iText-questions] How to remove XMP Metadata inside Stamper?

2005-08-12 Thread Roger Misteli
Hiyas In a previous life, I added my XMP metadata using this: byte[] xmpBuffer = getXMLDocumentAsByteArray(); PdfStream xmp = new PdfStream(xmpBuffer); xmp.put(PdfName.TYPE, PdfName.METADATA); xmp.put(PdfName.SUBTYPE, new PdfName("XML")); PdfIndirectReference ref = w