How can I create PDF/A compliant files. I tried this code but Acrobat Professional says that it is not PDF/A (Preflight).
Document document = new Document();
TiffFile tif = new TiffFile(@"D:\_CVSProjectsNET\_TestData\batch25000\00000001.tif");
document.Pages.Append(tif.GetDocument().Pages);
document.PdfVersion = PdfVersion.v1_4;
document.Prepress.PdfXVersion = PdfXVersion.PDF_X_1a_2003;
document.Prepress.OutputIntents.Add(OutputIntent.IsoWebCoated);
document.Prepress.Trapped = Trapped.False;
document.Title = "report";
XmpMetadata xmp = new XmpMetadata();
xmp.BasicSchema.CreationDate = DateTime.Now;
// Dublin Core Schema.
DublinCoreSchema dc = xmp.DublinCore;
dc.Contributors.Add("");
dc.Coverage = "";
dc.Creators.Add("");
dc.Date.Add(DateTime.Now);
dc.Description.DefaultText = "XMP Schema's test";
dc.Identifier = "";
dc.Publisher.Add("");
dc.Relation.Add("test pdf with xmp");
dc.Rights.DefaultText = "All rights reserved";
dc.Source = "";
dc.Subject.Add("");
dc.Title.DefaultText = document.Title;
dc.Type.Add("Pdf file containing xmp metadata");
document.XmpMetadata = xmp;
document.Draw(@"d:\report.pdf");
PDF/A
Re: PDF/A
Support · Oct 10, 2007Much of the PDF/A compliance guidelines are actually up to you. In other, words how are you creating the PDF and what is being added to it. Specifically things like non-embedded fonts, javascript, encryption, hyperlinks, video, sound and other attached data, interactive forms, transparencies, and many other things can not be added to the PDF itself for PDF/A compliance. Also, there is certain metadata and colorspaces that need to be setup correctly. All these are things that you have and must control for compliance.
While all that will get you close to PDF/A compliance, there is still one thing lacking from our current Generator v4.0 that will not allow full PDF/A compliance. There is a PDF/A tag (this tag literally marking the document as such) that we currently do not add to the document. This will prevent PDF documents created with Generator from being validated (validated using Acrobat Professional Preflight tool or another validation/fixing software). The report will usually state that the "PDF/A label or tag is missing".
I am pretty sure however that all other PDF/A compliance requirements are possible using our products. I will look into this whole subject a bit closer and find out first if there is anything that can (or can not) currently be done within the current objects to get your PDF documents PDF/A compliant and secondly will find out a general timeline for the addition of the PDF/A tag. I will check with some of our development team to find out exactly whether this is a feature that will be added sooner than later.
I hope this helps you for now and we will follow up soon.
Thanks,
ceTe Software Support Team
Re: PDF/A
Forum member · Oct 11, 2007This is very unfortunate. We bought this product becouse we need to create PDF/A documents (long term preservation). I also have troubles converting PDF to PDF/A with other tools. Please help me resolve errors listed below.
I get this errors in various validators:
Font not embedded
Text uses non-embedded font - Text Helvetica 12.0 pt Type 1 not embedded
Font encoding insufficient
Text Verdana 18.0 pt TrueType (CID) embedded (as a subset) - Symbols (glyphen) can not be allocated to all characters in this font (CIDToGIDMap missing or incorrect)
Color data not clear
Bitmap image 96.0 ppi - Device-dependent color exists, but no output intent (1 match on 1 page)
Missing PDF/A-1b entry
No PDF/A entry in the document information
Creation Date mismatch between Document Info and XMP metadata
Last Modification Date mismatch between Document Info and XMP Metadata
Here is code I use:
Document document = new Document();
TiffFile tif = new TiffFile(@"D:\_CVSProjectsNET\_TestData\batch25000\00000001.tif");
document.Pages.Append(tif.GetDocument().Pages);
PageDimensions dimensions = new PageDimensions(PageSize.A6, PageOrientation.Landscape);
Page page = new Page(dimensions);
document.Pages.Add(page);
TrueTypeFont font1 = new TrueTypeFont("verdana.ttf");
page.Elements.Add(new PageElements.Label("Converted", 0, 0, 300, 20, font1, 18));
FormFont font2 = ceTe.DynamicPDF.Font.Helvetica;
page.Elements.Add(new PageElements.Label(DateTime.Now.ToString(), 0, 50, 300, 20, font2, 12));
document.PdfVersion = PdfVersion.v1_4;
document.Prepress.PdfXVersion = PdfXVersion.None;
OutputIntent oi = OutputIntent.IsoWebCoated;
document.Prepress.OutputIntents.Add(oi);
document.Prepress.Trapped = Trapped.True;
document.XmpMetadata = new XmpMetadata();
document.Title = "report";
document.XmpMetadata.BasicSchema.CreationDate = DateTime.Now;
document.XmpMetadata.DublinCore.Title.DefaultText = document.Title;
document.XmpMetadata.DublinCore.Date.Add(document.XmpMetadata.BasicSchema.CreationDate);
document.XmpMetadata.DublinCore.Identifier = "";
document.XmpMetadata.DublinCore.Subject.Add("");
document.Draw(@"d:\report.pdf");
Re: PDF/A
Support · Oct 12, 2007Some of the errors you are getting below can be resolved with our current version but some of them can not. The fonts used in the PDF for PDF/A documents need to be completely embedded. Typically you do not want or need fonts to be completely embedded. So the core fonts are never embedded, the TrueType fonts are partially embedded (subset) but currently Type1 fonts are completely embedded. So to resolve the first two errors make sure to use Type1 fonts. In version 5.0 we will likely be adding the ability to choose whether a TrueType font is fully or partially embedded allowing you the option of using these fonts as well for PDF/A.
As for the other non-validated points (image containing device-dependent color and the missing PDF/A entry) there is no way to get rid of these using the current version of our product. I will again look into this with the developers and find out what the possibility for adding full PDF/A support will be. Expect a follow up next week sometime on this topic.
Thanks,
ceTe Software Support Team
Re: PDF/A
Forum member · Nov 9, 2007Is there any new information about PDF/A support?
Re: PDF/A
Support · Nov 12, 2007In the short term, we will be addressing a couple of the PDF/A invalidation points from above. First, in addition to Type1 fonts that are currently already fully embedded, we will be adding the ability to optionally fully embed any OpenType (or TrueType) fonts. TrueType fonts are currently partially embedded by default which is invalid for PDF/A. Additionally, we will be adding support for the PDF/A entry that will mark the PDF as such.
In the medium term, we will be looking into addressing the device dependent color and output intent invalidation points as well. These we do not have a direct timeline on.
Thanks,
ceTe Software Support Team
Re: PDF/A
Forum member · Dec 27, 2007Will upcoming version 5 support PDF/A?
Re: PDF/A
Support · Dec 27, 2007Yes, one of the new features that is planned to be released in version 5.0 is support for PDF/A-1b documents. Support for tagged document structure (included in the PDF/A-1a compliance) will not initially be released with version 5.0.
Thanks
ceTe Software Support Team