Ok - thanks. Got it working with RGB so I'll stick with that.


-----Original Message-----
From: Leonard Rosenthol [mailto:lrose...@adobe.com] 
Sent: Monday, November 21, 2011 12:10 PM
To: Post here
Subject: Re: [iText-questions] What is required to make a file PDF/A?

Depends on what ICC profile you specify for the output intent.  If you use
a CMYK profile, then you can't use RGB data.  If you use an RGB profile,
then you can't have CMYK data.  Your choice.

Leonard

On 11/21/11 11:02 AM, "David Thielen" <da...@windward.net> wrote:

>Thank you - this is getting me a lot further. Now I'm getting an
>exception saying that the RGB colorspace is not allowed. It looks like we
>have to convert to CMYK for the colorspace.
>
>So question, is it better to always use CMYK or should we stick with RGB
>and only use CMYK if we need PDF/A output?
>
>Thanks - dave
>
>
>-----Original Message-----
>From: TvT [mailto:tvtre...@nepatec.de]
>Sent: Monday, November 21, 2011 3:43 AM
>To: Post all your questions about iText here
>Subject: Re: [iText-questions] What is required to make a file PDF/A?
>
>Hi,
>
>here's an example:
>http://itextpdf.com/examples/iia.php?id=226
>
>And you are right, the method to use is called 'setPDFXConformance':
>(Probably historical reasons?)
>writer.setPDFXConformance(PdfWriter.PDFX1A2001);
>
>You should better upgrade to the latest version. If you can't do that try
>to use at least 2.1.7.
>I checked the history of iText since 2.1.7 and didn't find (major)
>changes in the PDF/A area.
>But maybe i overlooked it. Best you check for yourself again:
>http://itextpdf.com/history/
>
>Also try to run your code in the current version and verify the output...
>
>
>2011/11/18 David Thielen <da...@windward.net>
>>
>> The javadoc for 5.1.3 is the same - just setPDFXConformance(). I think
>>that is how it's set. But maybe version 2 didn't fully implement it.
>>
>>
>>
>> Thanks - dave
>>
>>
>>
>>
>>
>>
>>
>> From: Leonard Rosenthol [mailto:lrose...@adobe.com]
>> Sent: Friday, November 18, 2011 11:08 AM
>>
>> To: Post here
>> Subject: Re: [iText-questions] What is required to make a file PDF/A?
>>
>>
>>
>> Then I am guessing whatever version of iText you are using is too old
>>:(.
>>
>>
>>
>> From: David Thielen <da...@windward.net>
>> Reply-To: Post here <itext-questions@lists.sourceforge.net>
>> Date: Fri, 18 Nov 2011 09:48:16 -0800
>> To: Post here <itext-questions@lists.sourceforge.net>
>> Subject: Re: [iText-questions] What is required to make a file PDF/A?
>>
>>
>>
>> I understand that. However PdfWriter only has setPDFXConformance(), no
>>setConformance() or setPDFAConformance(). And the documentation for
>>setPDFXConformance says:
>>
>>
>>
>> Sets the PDF/X conformance level. Allowed values are PDFX1A2001,
>>PDFX32002, PDFA1A and PDFA1B. It must be called before opening the
>>document.
>>
>>
>>
>> I'm clearly missing something but going through the javadoc I can't
>>find anything else that discusses PDF/A.
>>
>>
>>
>> Thanks - dave
>>
>>
>>
>>
>>
>>
>>
>> From: Leonard Rosenthol [mailto:lrose...@adobe.com]
>> Sent: Friday, November 18, 2011 9:49 AM
>> To: Post here
>> Subject: Re: [iText-questions] What is required to make a file PDF/A?
>>
>>
>>
>> PDFAConformance.  PDF/X is a completely separate standard!
>>
>>
>>
>> From: David Thielen <da...@windward.net>
>> Reply-To: Post here <itext-questions@lists.sourceforge.net>
>> Date: Fri, 18 Nov 2011 08:12:16 -0800
>> To: Post here <itext-questions@lists.sourceforge.net>
>> Subject: Re: [iText-questions] What is required to make a file PDF/A?
>>
>>
>>
>> I set it using PdfWriter. setPDFXConformance(PdfWriter.PDFA1B);
>>
>>
>>
>> It's a lot closer now but I still get:
>>
>> *         Author mismatch between Document Info and XMP Metadata
>>
>> *         Creation date mismatch between Document Info and XMP
>> Metadata
>>
>> *         Device process color used but no PDF/A OutputIntent (253
>> matches on 4 pages)
>>
>> *         Last Modification Date mismatch between Document Info and
>> XMP Metadata
>>
>> *         Metadata missing (XMP)
>>
>> *         PDF/A entry missing
>>
>> *         Producer mismatch between Document Info and XMP Metadata
>>
>>
>>
>> Are these expected? Or do I need to set something else also?
>>
>>
>>
>> Thanks - dave
>>
>>
>>
>>
>>
>>
>>
>> From: Leonard Rosenthol [mailto:lrose...@adobe.com]
>> Sent: Thursday, November 17, 2011 9:20 AM
>> To: Post here
>> Subject: Re: [iText-questions] What is required to make a file PDF/A?
>>
>>
>>
>> If you are creating the PDF ENTIRELY with iText - then you can just use
>>the setConformance() API and it will take care of the details for you.
>>If you are starting with an existing PDF - then there aren't any options
>>for iText at this time.
>>
>>
>>
>> But that will ONLY get you PDF/A-1b.
>>
>>
>>
>> PDF/A-1a requires that you properly structure & tag your content -
>>something that iText will not (currently) do for you.  So you will need
>>to do all that work yourself if you want full conformance.
>>
>>
>>
>> And then there's PDF/A-2, which iText doesn't currently support either
>> - but most folks aren't there just yet.
>>
>>
>>
>> Leonard
>>
>>
>>
>> From: David Thielen <da...@windward.net>
>> Reply-To: Post here <itext-questions@lists.sourceforge.net>
>> Date: Thu, 17 Nov 2011 08:12:38 -0800
>> To: Post here <itext-questions@lists.sourceforge.net>
>> Subject: Re: [iText-questions] What is required to make a file PDF/A?
>>
>>
>>
>> I didn't know about pre-flight, that's cool.
>>
>>
>>
>> Ok, ran my iText generated document through it and got the following:
>>
>> *         Convert to PDF/A-1a (sRGB)
>>
>> *         Convert to PDF/A-1b (sRGB)
>>
>>
>>
>> I then double clicked on "Verify compliance with PDF/A-1a" and got a
>>lot:
>>
>> *         Author mismatch between Document Info and XMP Metadata
>>
>> *         CIDset in subset font missing (238 matches on 4 pages)
>>
>> *         Creation date mismatch between Document Info and XMP
>> Metadata
>>
>> *         Device process color used but no PDF/A OutputIntent (253
>> matches on 4 pages)
>>
>> *         Last Modification Date mismatch between Document Info and
>> XMP Metadata
>>
>> *         MarkInfo missing
>>
>> *         Metadata missing (XMP)
>>
>> *         PDF/A entry missing
>>
>> *         Producer mismatch between Document Info and XMP Metadata
>>
>> *         Structured PDF: Structure tree root entry missing
>>
>>
>>
>> The biggies seem to be the CIDset for the fonts and colors stored
>>correctly. I'm guessing this is not a simple couple of hours to add in.
>>
>>
>>
>> Is there a setting in iText to set these values or does this require a
>>3rd party app?
>>
>>
>>
>> Thanks - dave
>>
>>
>>
>>
>>
>>
>>
>> From: Leonard Rosenthol [mailto:lrose...@adobe.com]
>> Sent: Thursday, November 17, 2011 8:44 AM
>> To: Post all your questions about iText here
>> Subject: Re: [iText-questions] What is required to make a file PDF/A?
>>
>>
>>
>> > no external referencing
>>
>> >
>>
>> Careful with that phrase as it's led to misunderstanding by
>>non-technical people.
>>
>>
>>
>> What you really mean to say is "no externally referenced
>>resources/assets".
>>
>>
>>
>> Leonard
>>
>>
>>
>> From: TvT [mailto:tvtre...@nepatec.de]
>> Sent: Thursday, November 17, 2011 7:12 AM
>> To: Post all your questions about iText here
>> Subject: Re: [iText-questions] What is required to make a file PDF/A?
>>
>>
>>
>> 1. That depends which PDF/A you mean:
>> PDF/A-1a or PDF/A-1b or PDF/A-2?
>>
>> 2. Even if you take the simplest PDF/A-1b there is lots of stuff to
>>consider. Best you read the PDF/A spec. (ISO 19005-1:2005 or ISO
>>19005-2:2011) No javascript, no external referencing, colors etc etc.
>>
>> 3. What probably acrobat is looking at is the PDF/A tag in the meta
>>information. Probably if you set that one acrobat will say its PDF/A. A
>>better check is the PDF/A preflight check acrobat professional is
>>offering. It shows you which part of the spec you are missing. If all
>>tests pass then you probably have a 95% compliant PDF/A document.
>>
>> Regards,
>> ToM
>>
>> 2011/11/17 David Thielen <da...@windward.net>
>>
>> I thought it was just embedding fonts but when we do that Acrobat says
>>it is not PDF/A.
>>
>>
>>
>> thanks - dave
>>
>> ----------------------------------------------------------------------
>> -------- All the data continuously generated in your IT infrastructure
>> contains a definitive record of customers, application performance,
>> security threats, fraudulent activity, and more. Splunk takes this
>> data and makes sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-novd2d
>> _______________________________________________
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> iText(R) is a registered trademark of 1T3XT BVBA.
>> Many questions posted to this list can (and will) be answered with a
>> reference to the iText book: http://www.itextpdf.com/book/ Please
>> check the keywords list before you ask for examples:
>> http://itextpdf.com/themes/keywords.php
>>
>>
>>
>> ----------------------------------------------------------------------
>> -------- All the data continuously generated in your IT infrastructure
>> contains a definitive record of customers, application performance,
>> security threats, fraudulent activity, and more. Splunk takes this
>> data and makes sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-novd2d
>> _______________________________________________
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> iText(R) is a registered trademark of 1T3XT BVBA.
>> Many questions posted to this list can (and will) be answered with a
>> reference to the iText book: http://www.itextpdf.com/book/ Please
>> check the keywords list before you ask for examples:
>> http://itextpdf.com/themes/keywords.php
>
>--------------------------------------------------------------------------
>----
>All the data continuously generated in your IT infrastructure contains a
>definitive record of customers, application performance, security
>threats, fraudulent activity, and more. Splunk takes this data and makes
>sense of it. IT sense. And common sense.
>http://p.sf.net/sfu/splunk-novd2d
>_______________________________________________
>iText-questions mailing list
>iText-questions@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>iText(R) is a registered trademark of 1T3XT BVBA.
>Many questions posted to this list can (and will) be answered with a
>reference to the iText book: http://www.itextpdf.com/book/ Please check
>the keywords list before you ask for examples:
>http://itextpdf.com/themes/keywords.php
>
>--------------------------------------------------------------------------
>----
>All the data continuously generated in your IT infrastructure
>contains a definitive record of customers, application performance,
>security threats, fraudulent activity, and more. Splunk takes this
>data and makes sense of it. IT sense. And common sense.
>http://p.sf.net/sfu/splunk-novd2d
>_______________________________________________
>iText-questions mailing list
>iText-questions@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>iText(R) is a registered trademark of 1T3XT BVBA.
>Many questions posted to this list can (and will) be answered with a
>reference to the iText book: http://www.itextpdf.com/book/
>Please check the keywords list before you ask for examples:
>http://itextpdf.com/themes/keywords.php


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to