From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87983 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: How to create a PDF/A file with mkii? Date: Thu, 3 Jul 2014 14:00:33 +0200 Message-ID: References: <30686631-BCA4-45FE-B986-8E7618E4119C@gmail.com> <5C1434D5-0E27-4655-BF83-BF9295639D4D@gmail.com> <0302996D-D04B-4046-890E-CEF58707E241@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1582259290==" X-Trace: ger.gmane.org 1404388899 22349 80.91.229.3 (3 Jul 2014 12:01:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2014 12:01:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 03 14:01:35 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X2fhX-0002RL-An for gctc-ntg-context-518@m.gmane.org; Thu, 03 Jul 2014 14:01:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 983E4102A9 for ; Thu, 3 Jul 2014 14:01:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id J4RGeFz0gxTD for ; Thu, 3 Jul 2014 14:01:18 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0723910225 for ; Thu, 3 Jul 2014 14:01:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CDC23101E8 for ; Thu, 3 Jul 2014 14:01:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id QtRIo3icVGOY for ; Thu, 3 Jul 2014 14:00:52 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 07ACD101E7 for ; Thu, 3 Jul 2014 14:00:46 +0200 (CEST) Original-Received: from mail-qg0-x229.google.com (mail-qg0-x229.google.com [IPv6:2607:f8b0:400d:c04::229]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s63C0gNY031808 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 3 Jul 2014 14:00:43 +0200 Original-Received: by mail-qg0-f41.google.com with SMTP id i50so84302qgf.28 for ; Thu, 03 Jul 2014 05:00:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=lNJjgsUiurVY0TBGa77HI20M7weGTqLtXT/Tfb7Cc8Y=; b=ox/55KTFQzf7kG0z6PtwfGhCoK1si1i+UTfbc3+/KQ5zN2G7ztAYZei+kSKt28yi6Z DU0P8fD664wd9LoWM+juthWkld+Mj/WsquJK01aDrdWxH/cWN/GkXF/tb/JKu0TIBXF/ gtUGtt8dAEf87tmsL/oum2gk2ae5ZFXmUsuR26ySLkcxf/U2qsx0WMUNp7vs7cO0sRZ9 q6u3CV+yc3imJjgLm15k8aYAl5kvr/xQUEDYeepygYJJOPg8lPB6Ro52gD7qGFEwnNF+ yBa9BCsZVtpN0qwTOocsyhPFcf8AP36Ze0Q5tZ4yV3oI71659Z8WzTa6Ge8jvsUQMn82 g1/A== X-Received: by 10.224.22.12 with SMTP id l12mr6607700qab.88.1404388834003; Thu, 03 Jul 2014 05:00:34 -0700 (PDT) Original-Received: by 10.140.26.40 with HTTP; Thu, 3 Jul 2014 05:00:33 -0700 (PDT) In-Reply-To: <0302996D-D04B-4046-890E-CEF58707E241@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400d:c04::229; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07MlM0Gqb - 736f92d448f1 - 20140703 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:87983 Archived-At: --===============1582259290== Content-Type: multipart/alternative; boundary=047d7bf0e59c93d14f04fd48c127 --047d7bf0e59c93d14f04fd48c127 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Jul 2, 2014 at 10:54 PM, Otared Kavian wrote: > Hi Luigi, > > I did a test with mkiv (see the tex file attached), and then tested the > resulting pdf file on the site you mentioned, > > http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx > > Unfortunately it says that the PDF produced by mkiv is not conform: > > test-PDF-A-1b.pdf does not conform to PDF/A. > > Validating file "test-PDF-A-1b.pdf" for conformance level pdfa-1a > Invalid content of XMP packet header attribute 'id': > 'dtlnfbrryjnvabnrajbkrpyw'. > dc:description :: Wrong value type. Expected type 'lang alt'. > The XMP property 'pdfaid:conformance' has the invalid value 'B'. Required > is 'A'. > The key MarkInfo is required but missing. > A device-specific color space (DeviceGray) without an appropriate output > intent is used. > The document does not conform to the requested standard. > The document contains device-specific color spaces. > The document's meta data is either missing or inconsistent or corrupt. > The document doesn't provide appropriate logical structure information. > Done. > > So, I don=E2=80=99t know how to solve the issue of creating a PDF/A. > > Thanks for any hint. > Best regards: OK > > This pass acrobat xi preflight for pdf/a-1b Note that the icc files default_cmyk.icc default_gray.icc default_rgb.icc ISOcoated_v2_300_eci.icc must be in tex/texmf-context/colors/icc/profiles and must match with the colorprofiles.xml in tex/texmf-context/colors/icc/context \setupinteraction [title=3DTITLE, subtitle=3DSUBTITLE, author=3DAUTHOR, keyword=3D{{KEYWORD1, KEYWORD2}, KEYWORD3}] %% For PDF/A \setupbackend[ format=3D{pdf/a-1b:2005}, profile=3D{default_cmyk.icc,default_rgb.icc,default_gray.icc}, intent=3DISO coated v2 300\letterpercent\space (ECI)] \starttext \chapter[chap:testing]{Testing} \input knuth \input tufte \input knuth \input tufte \input knuth \input tufte \stoptext This pass pdf/a-1a \setupinteraction [title=3DTITLE, subtitle=3DSUBTITLE, author=3DAUTHOR, keyword=3D{{KEYWORD1, KEYWORD2}, KEYWORD3}] %% For PDF/A \setupbackend[ format=3D{pdf/a-1a:2005}, profile=3D{default_cmyk.icc,default_rgb.icc,default_gray.icc}, intent=3DISO coated v2 300\letterpercent\space (ECI)] %% Tagged PDF %% method=3Dauto =3D=3D> default tags by Adobe %% \setupbackend[export=3Dyes] it's necessary now to activate the tags %% probably it could be optional \setupbackend[export=3Dyes] \setupstructure[state=3Dstart,method=3Dauto] \starttext \startchapter[title=3DTesting chapter] \input knuth \startsection[title=3DTesting section] \bTABLE \bTR\bTD 1 \eTD \bTD 2 \eTD \eTR \bTR \bTD[nx=3D2] 3 \eTD\eTR \eTABLE \stopsection \stopchapter \stoptext > -- luigi --047d7bf0e59c93d14f04fd48c127 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Wed, Jul 2, 2014 at 10:54 PM, Otared Kavian &l= t;otared@gmail.com> wrote:
Hi Luigi,

I did a test with mkiv (see the tex file attached), and then tested the res= ulting pdf file on the site you mentioned,

=C2=A0 =C2=A0 =C2=A0 =C2=A0
http://www.pdf-tools.com/pdf/validate= -pdfa-online.aspx

Unfortunately it says that the PDF produced by mkiv is not conform:

test-PDF-A-1b.pdf does not conform to PDF/A.

Validating file "test-PDF-A-1b.pdf" for conformance level pdfa-1a=
Invalid content of XMP packet header attribute 'id': 'dtlnfbrry= jnvabnrajbkrpyw'.
dc:description :: Wrong value type. Expected type 'lang alt'.
The XMP property 'pdfaid:conformance' has the invalid value 'B&= #39;. Required is 'A'.
The key MarkInfo is required but missing.
A device-specific color space (DeviceGray) without an appropriate output in= tent is used.
The document does not conform to the requested standard.
The document contains device-specific color spaces.
The document's meta data is either missing or inconsistent or corrupt.<= br> The document doesn't provide appropriate logical structure information.=
Done.

So, I don=E2=80=99t know how to solve the issue of creating a PDF/A.

Thanks for any hint.
Best regards: OK

This pass acrobat xi preflight for pdf/a-1b
Note that the icc files=C2=A0
default_cmyk.icc
de= fault_gray.icc
default_rgb.icc
ISOcoated_v2_300_eci.icc=
must be in
tex/texmf-context/colors/icc/profiles
and must match with the colorprofiles.xml in
tex/tex= mf-context/colors/icc/context


\setupinteraction
=C2=A0 [title=3DTITLE,
=C2= =A0 =C2=A0subtitle=3DSUBTITLE,
=C2=A0 =C2=A0author=3DAUTHOR,
=C2=A0 =C2=A0keyword=3D{{KEYWORD1, KEYWORD2}, KEYWORD3}]
%% For PDF/A
\setupbackend[
format=3D{pdf/a-1b:2005},
profile= =3D{default_cmyk.icc,default_rgb.icc,default_gray.icc},
intent=3D= ISO coated v2 300\letterpercent\space (ECI)]

\star= ttext

\chapter[chap:testing]{Testing}

\input knuth

\input tufte

\input knuth

\input tufte

\input knuth

\input tufte

\stoptext



This pass pdf/a-1a=C2=A0

\setupinteraction<= /div>
=C2=A0 [title=3DTITLE,
=C2=A0 =C2=A0subtitle=3DSUBTITLE,
=C2=A0 =C2=A0author=3DAUTHOR,
=C2=A0 =C2=A0keyword=3D{{KEY= WORD1, KEYWORD2}, KEYWORD3}]

%% For PDF/A
\setupbackend[
format=3D{pdf/a-1a:2005},
profile=3D{default_cmyk.icc,default_rgb.icc,default_gray.icc},
intent=3DISO coated v2 300\letterpercent\space (ECI)]

%% Tagged PDF
%% method=3Dauto =3D=3D> default tags by = Adobe
%% \setupbackend[export=3Dyes] it's necessary now to activate the = tags
%% probably it could be optional
\setupbackend[exp= ort=3Dyes]
\setupstructure[state=3Dstart,method=3Dauto]
=

\starttext

\startchapter[title=3DTe= sting chapter]

\input knuth
\startsection[title=3DTesting section]

\bTABL= E

\bTR\bTD 1 \eTD \bTD 2 \eTD \eTR

<= /div>
\bTR \bTD[nx=3D2] 3 \eTD\eTR

\eTABLE
\stopsection
\stopchapter


\stoptext


--
luigi
--047d7bf0e59c93d14f04fd48c127-- --===============1582259290== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1582259290==--