Hi
Thanks for the information. Can you please let me know whether I am using a
wrong way to generate PDFA/1b complaint files, or it is just the old jar file
which makes all these problems?
If the approach is wrong, that do you suggest me to?
If the jar makes all these problems, can you suggest me a place where I can
download lowagie /itextPDF iText file?
Thanks in advance.
-Manulak
-----Original Message-----
From: mkl [mailto:[email protected]]
Sent: Thursday, August 23, 2012 6:29 PM
To: [email protected]
Subject: [iText-questions] [SPAM] Re: PDF Validation error with PDF/A1b
complaince
Manulak,
The issue is your expectation that iText can create PDF/A compliant PDFs
from non-compliant ones. It merely can create (with support by the program
using it) them from scratch.
Regards, Michael
PS: The version of iText you are using is mighty old.
From: Manulak Dissanayake [mailto:[email protected]]
Sent: Thursday, August 23, 2012 6:07 PM
To: [email protected]
Subject: [iText-questions] PDF Validation error with PDF/A1b complaince
Hi All
I am creating a PDF which is supposed to be complaint with PDF/A1-b and when I
use online validators like PDF TOOLS Online
Validator<http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx>, it gives the
following error saying that the PDF is not PDF/A complaint.
dc:description/*[0] :: Missing language qualifier.
dc:title/*[0] :: Missing language qualifier.
The property 'pdf:keywords' is not defined in schema 'Adobe PDF Schema'.
The XMP property 'dc:title' is not synchronized with the document information
entry 'Title'.
The XMP property 'dc:description' is not synchronized with the document
information entry 'Subject'.
The required XMP property 'pdf:Keywords' for the document information entry
'Keywords' is missing.
I am using FOP for rendering my PDF and using iText (iText 2.1.6 by 1T3XT) for
converting the PDF to be PDF/A complaint.
public void convertToPdfA(File file1, File file2)
{
PdfReader reader = null;
Document document = null;
PdfCopy copy;
InputStream PROFILE =
this.getClass().getClassLoader().getResourceAsStream("com/ini/vldt/config/sRGB
Color Space Profile.icm");
There I first read the PDF file to a PdfReader object, then get a copy as
follows.
reader = new PdfReader(new RandomAccessFileOrArray(file1.getPath()),null);
//Creating a new document that has the existing page size
document = new Document(reader.getPageSizeWithRotation(1));
//save the data in the 'document' to file2
copy = new PdfCopy(document, new FileOutputStream(file2));
Then I try adding the Title, Author, Keywords, Creator, Subject, Creation Date
and Producer as follows.
try{
document.addTitle(reader.getInfo().get("Title").toString());
}
catch(Exception e){
document.addTitle("TEST Title");
}
try{
document.addAuthor(reader.getInfo().get("Author").toString());
}
catch(Exception e){
document.addAuthor("TEST Author");
}
try{
document.addKeywords(reader.getInfo().get("Keywords").toString());
}
catch(Exception e){
document.addKeywords("TEST Keywords");
}
document.addCreator("TEST Creator");
document.addCreationDate();
document.addProducer();
try{
document.addSubject(reader.getInfo().get("Subject").toString());
}
catch(Exception e){
document.addSubject("TEST Subject");
}
Then I give the PDFA conformance values and then create the PDF as follows.
copy.setPDFXConformance(PdfCopy.PDFA1B);
copy.setPdfVersion(PdfCopy.VERSION_1_4);
document.open();
ICC_Profile icc = ICC_Profile.getInstance(PROFILE);
copy.setOutputIntents("Custom", "", "http://www.color.org", "sRGB
IEC61966-2.1", icc);
for(int i=1;i<=reader.getNumberOfPages();i++){
document.setPageSize(reader.getPageSizeWithRotation(i));
copy.addPage(copy.getImportedPage(reader, i));
}
copy.createXmpMetadata();
copy.close();
document.close();
reader.close();
I got another error report from
SolidFrameowrk<http://www.validatepdfa.com/online.htm> validations as follows.
- <metadata>
<problem severity="error" objectID="27" clause="6.7" standard="pdfa">Language
qualifier missing for property 'dc:description'</problem>
<problem severity="error" objectID="27" clause="6.7" standard="pdfa">Language
qualifier missing for property 'dc:title'</problem>
<problem severity="error" objectID="27" clause="TN0003"
standard="pdfa">Property 'pdf:keywords' shall use a custom embedded
schema</problem>
<problem severity="error" objectID="27" clause="6.7.3"
standard="pdfa">Document information entry 'Keywords' not synchronized with
metadata property 'pdf:Keywords'</problem>
</metadata>
- <fonts>
<problem severity="error" objectID="12" clause="6.3.5"
standard="pdfa">Missing or incorrect CIDSet for CIDFont subset</problem>
<problem severity="error" objectID="18" clause="6.3.5"
standard="pdfa">Missing or incorrect CIDSet for CIDFont subset</problem>
</fonts>
What can be the issue? Any reply is highly appreciated.
Thank you.
-Manulak Dissanayake
BstRgds;
Manulak Dissanayake
IFS R&D Technology
------------------------------------------------------------------------------
CONFIDENTIALITY AND DISCLAIMER NOTICE
This e-mail, including any attachments, is confidential and for use only by
the intended recipient. If you are not the intended recipient, please notify
us immediately and delete this e-mail from your system. Any use or disclosure
of the information contained herein is strictly prohibited. As internet
communications are not secure, we do not accept legal responsibility for the
contents of this message nor responsibility for any change made to this
message after it was sent by the original sender. We advise you to carry out
your own virus check as we cannot accept liability for damage resulting from
software viruses.
------------------------------------------------------------------------------
CONFIDENTIALITY AND DISCLAIMER NOTICE
This e-mail, including any attachments, is confidential and for use only by
the intended recipient. If you are not the intended recipient, please notify
us immediately and delete this e-mail from your system. Any use or disclosure
of the information contained herein is strictly prohibited. As internet
communications are not secure, we do not accept legal responsibility for the
contents of this message nor responsibility for any change made to this
message after it was sent by the original sender. We advise you to carry out
your own virus check as we cannot accept liability for damage resulting from
software viruses.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[email protected]
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