Re: [NTG-context] PDF/A generation

2016-10-19 Thread Alan Braslau
Hello,

You can very easily download the beta/standalone installation that can very 
happily coexist with TL release. All that is needed to choose the standalone 
version is to modify your PATH appropriately (by sourcing the setuptex script).

In fact, we recommend even downloading an installation by project. This can 
guarantee stability for a particular project way into the future.

Alan 

> On Oct 18, 2016, at 07:44, Henri Menke  wrote:
> 
> thanks for the update.  Can you maybe tell what exactly has changed to fix 
> it?  I'm on the TL 2016 release and cannot update because I fear regressions 
> for my important document.

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] PDF/A generation

2016-10-18 Thread Peter Rolf
Dear Henri,

the  is taken from a mail to Hans and Luigi.

Better be patient and wait for Hans to implement the changes (shouldn't
break your documents). But I donno if the previously RNG based 'id' (a
fixed value now!) is handled somewhere else in the code. Hans knows, I
don't. There were several changes in the past for a more constant PDF
output for test purposes and every random value would break that.



1. bad XMP 'id'

The XMP packet wrapper is kind of fixed ('7.3.2 XMP packet wrapper',
page 10 of XMPSpecificationsPart1.pdf from XMP-Toolkit-SDK-CC201607.zip)

http://download.macromedia.com/pub/developer/xmp/sdk/XMP-Toolkit-SDK-CC201607.zip



Had also fun times with a (bad) copy and pasted 'begin' attribute
(U+FEFF), until I entered it manually. Quite depressing... :D


2. missing 'pdfaSchema:valueType' entries (containing an empty )



Fixed files (lpdf-pda.xml, lpdf-xmp.lua) are attached ('base' dir).

Tested with all supported PDF/A variants (added test files for a2/a3
variants) and all passed.


Best wishes,  Peter


Am 18.10.2016 um 15:44 schrieb Henri Menke:
> Dear Peter,
> 
> thanks for the update.  Can you maybe tell what exactly has changed to fix 
> it?  I'm on the TL 2016 release and cannot update because I fear regressions 
> for my important document.
> 
> Cheers, Henri
> 
> On 10/18/2016 02:54 PM, Peter Rolf wrote:
>> Hi,
>>
>> just for the records. The problems were on ConTeXt's side (fixed now),
>> the online validator does a pretty good job.
>>
>> Peter
>>
>> Am 14.10.2016 um 17:10 schrieb Peter Rolf:
>>> Am 14.10.2016 um 14:16 schrieb luigi scarso:
 On Fri, Oct 14, 2016 at 2:04 PM, Peter Rolf  wrote:
> Sigh.. I had high hopes on this one. Would be nice to have a free and
> working (in this combination) validator. I'll make some tests over the
> weekend and contact the author(s). No bug report, no fix.

 I have not said that it's wrong, only that it fails to validate the
 pdf..the validator could be ok infact.
>>>
>>> True, that conclusion comes from my side. I'm pretty sure that all
>>> needed XMP entries are properly set, so chances are high, that the error
>>> is on their side. But we will (hopefully) see.
>>> Also: If Acrobat isn't right, what tools are left for validation?
>>>
 Btw, as I can see from
 http://www.pdfa.org/2016/08/slide-decks-and-video-recordings-of-the-pdf-days-europe-2016/
 it seems that there is a bit of depression in validating pdf/a files 

>>>
>>> Interesting, but better don't dig too deep... :D
>>>
>>> ___
>>> 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://context.aanhet.net
>>> archive  : http://foundry.supelec.fr/projects/contextrev/
>>> wiki : http://contextgarden.net
>>> ___
>>>
>>
>> ___
>> 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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> ___
>>
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
> 

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] PDF/A generation

2016-10-18 Thread Henri Menke
Dear Peter,

thanks for the update.  Can you maybe tell what exactly has changed to fix it?  
I'm on the TL 2016 release and cannot update because I fear regressions for my 
important document.

Cheers, Henri

On 10/18/2016 02:54 PM, Peter Rolf wrote:
> Hi,
> 
> just for the records. The problems were on ConTeXt's side (fixed now),
> the online validator does a pretty good job.
> 
> Peter
> 
> Am 14.10.2016 um 17:10 schrieb Peter Rolf:
>> Am 14.10.2016 um 14:16 schrieb luigi scarso:
>>> On Fri, Oct 14, 2016 at 2:04 PM, Peter Rolf  wrote:
 Sigh.. I had high hopes on this one. Would be nice to have a free and
 working (in this combination) validator. I'll make some tests over the
 weekend and contact the author(s). No bug report, no fix.
>>>
>>> I have not said that it's wrong, only that it fails to validate the
>>> pdf..the validator could be ok infact.
>>
>> True, that conclusion comes from my side. I'm pretty sure that all
>> needed XMP entries are properly set, so chances are high, that the error
>> is on their side. But we will (hopefully) see.
>> Also: If Acrobat isn't right, what tools are left for validation?
>>
>>> Btw, as I can see from
>>> http://www.pdfa.org/2016/08/slide-decks-and-video-recordings-of-the-pdf-days-europe-2016/
>>> it seems that there is a bit of depression in validating pdf/a files 
>>>
>>
>> Interesting, but better don't dig too deep... :D
>>
>> ___
>> 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://context.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki : http://contextgarden.net
>> ___
>>
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
> 

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] PDF/A generation

2016-10-18 Thread Peter Rolf
Hi,

just for the records. The problems were on ConTeXt's side (fixed now),
the online validator does a pretty good job.

Peter

Am 14.10.2016 um 17:10 schrieb Peter Rolf:
> Am 14.10.2016 um 14:16 schrieb luigi scarso:
>> On Fri, Oct 14, 2016 at 2:04 PM, Peter Rolf  wrote:
>>> Sigh.. I had high hopes on this one. Would be nice to have a free and
>>> working (in this combination) validator. I'll make some tests over the
>>> weekend and contact the author(s). No bug report, no fix.
>>
>> I have not said that it's wrong, only that it fails to validate the
>> pdf..the validator could be ok infact.
> 
> True, that conclusion comes from my side. I'm pretty sure that all
> needed XMP entries are properly set, so chances are high, that the error
> is on their side. But we will (hopefully) see.
> Also: If Acrobat isn't right, what tools are left for validation?
> 
>> Btw, as I can see from
>> http://www.pdfa.org/2016/08/slide-decks-and-video-recordings-of-the-pdf-days-europe-2016/
>> it seems that there is a bit of depression in validating pdf/a files 
>>
> 
> Interesting, but better don't dig too deep... :D
> 
> ___
> 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://context.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
> 

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] PDF/A generation

2016-10-14 Thread Peter Rolf
Am 14.10.2016 um 14:16 schrieb luigi scarso:
> On Fri, Oct 14, 2016 at 2:04 PM, Peter Rolf  wrote:
>> Sigh.. I had high hopes on this one. Would be nice to have a free and
>> working (in this combination) validator. I'll make some tests over the
>> weekend and contact the author(s). No bug report, no fix.
> 
> I have not said that it's wrong, only that it fails to validate the
> pdf..the validator could be ok infact.

True, that conclusion comes from my side. I'm pretty sure that all
needed XMP entries are properly set, so chances are high, that the error
is on their side. But we will (hopefully) see.
Also: If Acrobat isn't right, what tools are left for validation?

> Btw, as I can see from
> http://www.pdfa.org/2016/08/slide-decks-and-video-recordings-of-the-pdf-days-europe-2016/
> it seems that there is a bit of depression in validating pdf/a files 
> 

Interesting, but better don't dig too deep... :D

___
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://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] PDF/A generation

2016-10-14 Thread luigi scarso
On Fri, Oct 14, 2016 at 2:04 PM, Peter Rolf  wrote:
> Sigh.. I had high hopes on this one. Would be nice to have a free and
> working (in this combination) validator. I'll make some tests over the
> weekend and contact the author(s). No bug report, no fix.

I have not said that it's wrong, only that it fails to validate the
pdf..the validator could be ok infact.
Btw, as I can see from
http://www.pdfa.org/2016/08/slide-decks-and-video-recordings-of-the-pdf-days-europe-2016/
it seems that there is a bit of depression in validating pdf/a files 
-- 
luigi
___
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://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] PDF/A generation

2016-10-14 Thread Peter Rolf
Am 14.10.2016 um 11:22 schrieb luigi scarso:
> On Thu, Oct 13, 2016 at 4:58 PM, Peter Rolf  wrote:
>> Meanwhile I stumpled over
>>
>> https://www.pdf-tools.com/pdf/validate-pdfa-online.aspx
>>
>> but haven't found the time (and mood!) to test it.
>>
> 
> it fails for pdf/a-1a with the test.pdf made by context
> Validating file "test.pdf" for conformance level pdfa-1a
> Invalid content of XMP packet header attribute 'id': 
> 'frpyaihfvjcmxbxoohwuhyjt'.
> pdfaExtension:schemas/*[0] :: Missing required field 'valueType' in
> value type 'Schema'.
> pdfaExtension:schemas/*[1] :: Missing required field 'valueType' in
> value type 'Schema'.
> pdfaExtension:schemas/*[2] :: Missing required field 'valueType' in
> value type 'Schema'.
> pdfaExtension:schemas/*[3] :: Missing required field 'valueType' in
> value type 'Schema'.
> pdfaExtension:schemas/*[4] :: Missing required field 'valueType' in
> value type 'Schema'.
> The document does not conform to the requested standard.
> The document's meta data is either missing or inconsistent or corrupt.
> Done.
> 
> while verapdf and acrobat
> (Preflight, 11.0.16 (120) Acrobat version: 11.018)  both say that the
> file is ok.
> 

Sigh.. I had high hopes on this one. Would be nice to have a free and
working (in this combination) validator. I'll make some tests over the
weekend and contact the author(s). No bug report, no fix.

Anyhow, thanks for testing ;)


Best wishes,

Peter
___
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://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] PDF/A generation

2016-10-14 Thread luigi scarso
On Thu, Oct 13, 2016 at 4:58 PM, Peter Rolf  wrote:
> Meanwhile I stumpled over
>
> https://www.pdf-tools.com/pdf/validate-pdfa-online.aspx
>
> but haven't found the time (and mood!) to test it.
>

it fails for pdf/a-1a with the test.pdf made by context
Validating file "test.pdf" for conformance level pdfa-1a
Invalid content of XMP packet header attribute 'id': 'frpyaihfvjcmxbxoohwuhyjt'.
pdfaExtension:schemas/*[0] :: Missing required field 'valueType' in
value type 'Schema'.
pdfaExtension:schemas/*[1] :: Missing required field 'valueType' in
value type 'Schema'.
pdfaExtension:schemas/*[2] :: Missing required field 'valueType' in
value type 'Schema'.
pdfaExtension:schemas/*[3] :: Missing required field 'valueType' in
value type 'Schema'.
pdfaExtension:schemas/*[4] :: Missing required field 'valueType' in
value type 'Schema'.
The document does not conform to the requested standard.
The document's meta data is either missing or inconsistent or corrupt.
Done.

while verapdf and acrobat
(Preflight, 11.0.16 (120) Acrobat version: 11.018)  both say that the
file is ok.

-- 
luigi
___
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://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] PDF/A generation

2016-10-13 Thread Peter Rolf
Am 13.10.2016 um 16:23 schrieb luigi scarso:
> On Thu, Oct 13, 2016 at 3:40 PM, Henri Menke  wrote:
>> Dear Luigi,
>>
>> thanks for the link.  I tried the validation with a little simplified 
>> example, which I show below.  VeraPDF reports some errors, see attached 
>> `test-result.xml`.  Unfortunately, VeraPDF cannot handle my production 
>> document and crashes during validation :( (see attached 
>> `production-result.xml`).  Also, it seems that leaving out `intent` does not 
>> make any difference.
>>
>> Cheers, Henri
>>
>> ---
>>
>> \setupinteraction
>>   [
>> title=TITLE,
>> subtitle=SUBTITLE,
>> author=AUTHOR,
>> keyword={KEYWORD1, KEYWORD2, KEYWORD3},
>>   ]
>>
>> \setupbackend
>>   [
>> format={pdf/a-2a},
>> profile={default_cmyk.icc,default_rgb.icc,default_gray.icc},
> currently 2a is not supported , you should use 1a
> format={pdf/a-1a:2005}, % or pdf/a-1a:2005

It's supported (along PDF/A-3a), but untested and undocumented. It was
just a prerequirement when adding PDF/UA-1. I couldn't find a validator
for it (only own Acrobat Pro 9) that time.

Meanwhile I stumpled over

https://www.pdf-tools.com/pdf/validate-pdfa-online.aspx

but haven't found the time (and mood!) to test it.


Peter
___
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://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] PDF/A generation

2016-10-13 Thread luigi scarso
On Thu, Oct 13, 2016 at 3:40 PM, Henri Menke  wrote:
> Dear Luigi,
>
> thanks for the link.  I tried the validation with a little simplified 
> example, which I show below.  VeraPDF reports some errors, see attached 
> `test-result.xml`.  Unfortunately, VeraPDF cannot handle my production 
> document and crashes during validation :( (see attached 
> `production-result.xml`).  Also, it seems that leaving out `intent` does not 
> make any difference.
>
> Cheers, Henri
>
> ---
>
> \setupinteraction
>   [
> title=TITLE,
> subtitle=SUBTITLE,
> author=AUTHOR,
> keyword={KEYWORD1, KEYWORD2, KEYWORD3},
>   ]
>
> \setupbackend
>   [
> format={pdf/a-2a},
> profile={default_cmyk.icc,default_rgb.icc,default_gray.icc},
currently 2a is not supported , you should use 1a
format={pdf/a-1a:2005}, % or pdf/a-1a:2005



-- 
luigi
___
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://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] PDF/A generation

2016-10-13 Thread Henri Menke
Dear Luigi,

thanks for the link.  I tried the validation with a little simplified example, 
which I show below.  VeraPDF reports some errors, see attached 
`test-result.xml`.  Unfortunately, VeraPDF cannot handle my production document 
and crashes during validation :( (see attached `production-result.xml`).  Also, 
it seems that leaving out `intent` does not make any difference.

Cheers, Henri

---

\setupinteraction
  [
title=TITLE,
subtitle=SUBTITLE,
author=AUTHOR,
keyword={KEYWORD1, KEYWORD2, KEYWORD3},
  ]

\setupbackend
  [
format={pdf/a-2a},
profile={default_cmyk.icc,default_rgb.icc,default_gray.icc},
  ]
\setupstructure[state=start,method=auto]

\starttext

\startchapter[title=Testing]
  \input knuth
\stopchapter

\stoptext

On 10/13/2016 03:13 PM, luigi scarso wrote:
> On Thu, Oct 13, 2016 at 3:03 PM, Henri Menke  wrote:
>> Dear list, (especially Luigi)
>>
>> for online publication I need to create a PDF/A compliant output file.  Does 
>> anyone have any experience with it and can tell me whether my setup will 
>> work?  So far I'm using
>>
>> \setupbackend
>>   [
>> format={pdf/a-2a},
>> profile={default_cmyk.icc,default_rgb.icc,default_gray.icc},
>>   ]
>> \setupstructure[state=start,method=auto]
>>
>> I chose PDF/A-2a because there I can have PDF 1.7 which keeps the file size 
>> down but I can also switch to PDF/A-1a.  I have *no* external pixel 
>> graphics, just included PDFs which are also produced by ConTeXt with the 
>> same setup.
>>
>> Online I found Luigi's paper on PDF/A-1a [1].  However, even after reading 
>> I'm unsure whether `intent` is optional or required.
>>
>> Since I don't own Adobe Acrobat (nor am I using Windows) I cannot verify the 
>> resulting output.  Does anyone know any working free or open-source tools 
>> for GNU/Linux to do this task?
> Have a look at
> http://verapdf.org/software/
> and test the file below  with
> $> verapdf -v -x   -f 1a test.pdf
> It should be ok
> 
> The icc files default_cmyk.icc  default_gray.icc  default_rgb.icc are
> from ghostscript, put them in the same directory of the test.
> 
> 
> \nopdfcompression
> \setupinteraction
>   [title=TITLE,
>subtitle=SUBTITLE,
>author=AUTHOR,
>keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}]
> 
> %% For PDF/A
> \setupbackend[
> format={pdf/a-1a:2005}, % or 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]
> \setupstructure[state=start,method=auto]
> 
> 
> \startchapter[title=Testing]
> \startcolor[red]
> \input knuth
> \stopcolor
> \input tufte
> 
> \input knuth
> 
> \placefigure[middle][fig:foo]
>   {This is an image}
>   {\externalfigure[cow.jpg]}
> 
> \input tufte
> 
> \stopchapter
> 
> \stoptext
> 
> I'm in a middle of something else now, I will look into it next days,
> but you can play a bit and report problems.
> 


http://www.verapdf.org/MachineReadableReport; creationDate="2016-10-13T15:35:56.555+02:00" processingTime="00:00:01.537" version="0.24.2" buildDate="2016-10-11T12:21:00+02:00">

/home/user/document.pdf


Could not finish validation. org.verapdf.core.ValidationException: Caught unexpected runtime exception during validation



http://www.verapdf.org/MachineReadableReport; creationDate="2016-10-13T15:35:18.537+02:00" processingTime="00:00:01.114" version="0.24.2" buildDate="2016-10-11T12:21:00+02:00">

/home/user/test.pdf


PDF file is not compliant with Validation Profile requirements.


The document catalog dictionary shall include a MarkInfo dictionary containing an entry, Marked, whose value shall be true.
CosDocument
Marked == true

root



All properties specified in XMP form shall use either the predefined schemas defined in the XMP Specification,
			ISO 19005-1 or this part of ISO 19005, or any extension schemas that comply with 6.6.2.3.2.
XMPProperty
(isPredefinedInXMP2005 == true || isDefinedInMainPackage == true || isDefinedInCurrentPackage == true)  isValueTypeCorrect == true

root/document[0]/metadata[0](20 0 obj PDMetadata)/XMPPackage[0]/Properties[18](http://ns.adobe.com/xap/1.0/mm/ - xmpMM:InstanceID)


root/document[0]/metadata[0](20 0 obj PDMetadata)/XMPPackage[0]/Properties[17](http://ns.adobe.com/xap/1.0/mm/ - xmpMM:DocumentID)



If the FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, then it shall identify all CIDs which are present in the font program,
			regardless of whether a CID in the font is referenced or used by the 

Re: [NTG-context] PDF/A generation

2016-10-13 Thread luigi scarso
On Thu, Oct 13, 2016 at 3:03 PM, Henri Menke  wrote:
> Dear list, (especially Luigi)
>
> for online publication I need to create a PDF/A compliant output file.  Does 
> anyone have any experience with it and can tell me whether my setup will 
> work?  So far I'm using
>
> \setupbackend
>   [
> format={pdf/a-2a},
> profile={default_cmyk.icc,default_rgb.icc,default_gray.icc},
>   ]
> \setupstructure[state=start,method=auto]
>
> I chose PDF/A-2a because there I can have PDF 1.7 which keeps the file size 
> down but I can also switch to PDF/A-1a.  I have *no* external pixel graphics, 
> just included PDFs which are also produced by ConTeXt with the same setup.
>
> Online I found Luigi's paper on PDF/A-1a [1].  However, even after reading 
> I'm unsure whether `intent` is optional or required.
>
> Since I don't own Adobe Acrobat (nor am I using Windows) I cannot verify the 
> resulting output.  Does anyone know any working free or open-source tools for 
> GNU/Linux to do this task?
Have a look at
http://verapdf.org/software/
and test the file below  with
$> verapdf -v -x   -f 1a test.pdf
It should be ok

The icc files default_cmyk.icc  default_gray.icc  default_rgb.icc are
from ghostscript, put them in the same directory of the test.


\nopdfcompression
\setupinteraction
  [title=TITLE,
   subtitle=SUBTITLE,
   author=AUTHOR,
   keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}]

%% For PDF/A
\setupbackend[
format={pdf/a-1a:2005}, % or 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]
\setupstructure[state=start,method=auto]


\startchapter[title=Testing]
\startcolor[red]
\input knuth
\stopcolor
\input tufte

\input knuth

\placefigure[middle][fig:foo]
  {This is an image}
  {\externalfigure[cow.jpg]}

\input tufte

\stopchapter

\stoptext

I'm in a middle of something else now, I will look into it next days,
but you can play a bit and report problems.
-- 
luigi
___
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://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___