ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to create a PDF/A file with mkii?
Date: Thu, 3 Jul 2014 14:25:25 +0200	[thread overview]
Message-ID: <CAG5iGsDTY_TSWy2cMYN=iAUOAW4kfw3LwMikbYM7afqiXgJzEA@mail.gmail.com> (raw)
In-Reply-To: <CAG5iGsAicw6yPiuHD9RsFDg0wtPiBd2VUzLyKHJK0TGXmp7CzQ@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 3440 bytes --]

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

>
>
>
> On Wed, Jul 2, 2014 at 10:54 PM, Otared Kavian <otared@gmail.com> 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’t 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=TITLE,
>    subtitle=SUBTITLE,
>    author=AUTHOR,
>    keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}]
>
> %% For PDF/A
> \setupbackend[
> format={pdf/a-1b:2005},
> profile={default_cmyk.icc,default_rgb.icc,default_gray.icc},
> intent=ISO 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=TITLE,
>    subtitle=SUBTITLE,
>    author=AUTHOR,
>    keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}]
>
> %% For PDF/A
> \setupbackend[
> format={pdf/a-1a:2005},
> profile={default_cmyk.icc,default_rgb.icc,default_gray.icc},
> intent=ISO coated v2 300\letterpercent\space (ECI)]
>
> %% Tagged PDF
> %% method=auto ==> default tags by Adobe
> %% \setupbackend[export=yes] it's necessary now to activate the tags
> %% probably it could be optional
> \setupbackend[export=yes]
> \setupstructure[state=start,method=auto]
>
> \starttext
>
> \startchapter[title=Testing chapter]
>
> \input knuth
> \startsection[title=Testing section]
>
> \bTABLE
>
> \bTR\bTD 1 \eTD \bTD 2 \eTD \eTR
>
> \bTR \bTD[nx=2] 3 \eTD\eTR
>
> \eTABLE
> \stopsection
> \stopchapter
>
>
> \stoptext
>
>
>> --
> luigi
>

Update: this also works ---  and it's better

\setupbackend
  [format={pdf/a-1a:2005},
   profile={default_cmyk.icc,default_rgb.icc,default_gray.icc},
   intent={ISO coated v2 300\letterpercent\space (ECI)}]

%% Tagged PDF
%% method=auto ==> default tags by Adobe
\setuptagging[state=start]
\setupstructure[state=start,method=auto]

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 5743 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

      reply	other threads:[~2014-07-03 12:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-02 14:37 Otared Kavian
2014-07-02 14:46 ` luigi scarso
2014-07-02 14:52   ` Otared Kavian
2014-07-02 15:05     ` luigi scarso
2014-07-02 15:18       ` Otared Kavian
2014-07-02 15:35         ` luigi scarso
2014-07-02 20:54           ` Otared Kavian
2014-07-02 21:29             ` luigi scarso
2014-07-03 12:00             ` luigi scarso
2014-07-03 12:25               ` luigi scarso [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAG5iGsDTY_TSWy2cMYN=iAUOAW4kfw3LwMikbYM7afqiXgJzEA@mail.gmail.com' \
    --to=luigi.scarso@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).