From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87985 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:25:25 +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="===============1780257405==" X-Trace: ger.gmane.org 1404390356 9652 80.91.229.3 (3 Jul 2014 12:25:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2014 12:25:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 03 14:25:52 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 1X2g5H-0004kj-9k for gctc-ntg-context-518@m.gmane.org; Thu, 03 Jul 2014 14:25:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C2E1A102A7 for ; Thu, 3 Jul 2014 14:25:50 +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 Lq+M9DueIxeo for ; Thu, 3 Jul 2014 14:25:50 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D98F910224 for ; Thu, 3 Jul 2014 14:25:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D78D8101E8 for ; Thu, 3 Jul 2014 14:25:38 +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 2rJS6aEy9zo4 for ; Thu, 3 Jul 2014 14:25:34 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 9AD90101E7 for ; Thu, 3 Jul 2014 14:25:29 +0200 (CEST) Original-Received: from mail-qc0-x235.google.com (mail-qc0-x235.google.com [IPv6:2607:f8b0:400d:c01::235]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s63CpXel029752 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 3 Jul 2014 14:51:34 +0200 Original-Received: by mail-qc0-f181.google.com with SMTP id x13so111118qcv.26 for ; Thu, 03 Jul 2014 05:25:26 -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=8ry26aBJ4CoWQG5TF9EyzdpctvtYbnxcy/OJHe98ZsI=; b=rl9xPJNzvm+zGHJhihHSbxXpZTy7lH+yFmIYnQ2MIV/+eDOCCc5fhOaEPTm9yYgsVm RyeKKzyvCSeAxml5J4mEZHZpXN6fyYFzbROm0l7zE4UJ2xA6bnr5H51GnS1S26VIL18S 3lzhEfz4hK1oMLIECmP4iB0r16uFtyoX25SAxlPqTBfHKbMmR2KC0zg6V/bHsyQf6q6v s8UKReLeZI2ykxmuE2R2jm3RD4AtMrptIcHEODtAN2B5UxnEOeSyTYl1TVOUuN5UNN5F s/YOVl6gHpklzD5E9/l7zP1zTUx/9AILi7ZAn+i519CfAFbM42HVCOs3G0CjVRxjIMQQ PXdw== X-Received: by 10.140.41.116 with SMTP id y107mr6419894qgy.78.1404390325629; Thu, 03 Jul 2014 05:25:25 -0700 (PDT) Original-Received: by 10.140.26.40 with HTTP; Thu, 3 Jul 2014 05:25:25 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400d:c01::235; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01MlMPykM - eca174bfaf07 - 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:87985 Archived-At: --===============1780257405== Content-Type: multipart/alternative; boundary=001a11c125e87c543904fd491a9b --001a11c125e87c543904fd491a9b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Jul 3, 2014 at 2:00 PM, luigi scarso wrote= : > > > > 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'. Require= d >> 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 > Update: this also works --- and it's better \setupbackend [format=3D{pdf/a-1a:2005}, profile=3D{default_cmyk.icc,default_rgb.icc,default_gray.icc}, intent=3D{ISO coated v2 300\letterpercent\space (ECI)}] %% Tagged PDF %% method=3Dauto =3D=3D> default tags by Adobe \setuptagging[state=3Dstart] \setupstructure[state=3Dstart,method=3Dauto] --=20 luigi --001a11c125e87c543904fd491a9b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Thu, Jul 3, 2014 at 2:00 PM, luigi scarso <= luigi.scarso@gm= ail.com> wrote:



On Wed, Jul 2, 2014 at 10:54 PM, Otared Kavian <otar= ed@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<= /div>
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/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

\s= etupinteraction
=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 activat= e the tags
%% probably it could be optional
\setupbacke= nd[export=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


--
luig= i

Update: this also w= orks --- =C2=A0and it's better

\setupbac= kend
=C2=A0 [format=3D{pdf/a-1a:2005},
=C2=A0 =C2=A0pro= file=3D{default_cmyk.icc,default_rgb.icc,default_gray.icc},
=C2=A0 =C2=A0intent=3D{ISO coated v2 300\letterpercent\space (ECI)}]

%% Tagged PDF
%% method=3Dauto =3D=3D>= default tags by Adobe
\setuptagging[state=3Dstart]
\se= tupstructure[state=3Dstart,method=3Dauto]

--
luigi
--001a11c125e87c543904fd491a9b-- --===============1780257405== 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 ___________________________________________________________________________________ --===============1780257405==--