<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il Dom 17 Mar 2019, 16:42 Pablo Rodriguez <<a href="mailto:oinos@gmx.es">oinos@gmx.es</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear list,<br>
<br>
my sample to add attachments to a PDF/A-3 valid document is the following:<br>
<br>
    \setuptagging[state=start]<br>
<br>
    \setupbodyfont[30pt]<br>
<br>
    \setupbackend<br>
      [format=PDF/A-3a,<br>
       intent=sRGB IEC61966-2.1,<br>
       profile={sRGB.icc,default_gray.icc},<br>
       level=0]<br>
<br>
    \setupcolors[pagecolormodel=auto]<br>
<br>
    \setupinteraction[state=start]<br>
    \starttext<br>
    \startTEXpage[offset=1em]<br>
    an attachment\attachment[file=xml-mkiv.pdf]<br>
    \stopTEXpage<br>
    \stoptext<br>
<br>
There are five reported errors when tested with the latest development<br>
version of veraPDF (<a href="http://downloads.verapdf.org/dev/verapdf-installer.zip" rel="noreferrer noreferrer" target="_blank">http://downloads.verapdf.org/dev/verapdf-installer.zip</a>):<br>
<br>
- Annotation should have /F value<br>
(<a href="https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-632-1" rel="noreferrer noreferrer" target="_blank">https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-632-1</a>);<br>
unless their Rect key value 1 equal to value 3 and value 2 equal to<br>
value 4, or the annotation subtype is /Popup or /Link.<br>
<br>
- Although not reported, the /F value should conform these considerations:<br>
<br>
    If present, the F key's Print flag bit shall be set to 1 and its<br>
    Hidden, Invisible, ToggleNoView, and NoView flag bits shall be set<br>
    to 0.<br>
<a href="https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-632-2" rel="noreferrer noreferrer" target="_blank">https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-632-2</a><br>
<br>
- Annotations need an appearance dictionary<br>
(<a href="https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-633-1" rel="noreferrer noreferrer" target="_blank">https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-633-1</a>);<br>
unless the same exception for the /F value apply.<br>
<br>
- The /EmbeddedFile dictionary should specify the MIME type in its<br>
/Subtype entry<br>
(<a href="https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-68-1" rel="noreferrer noreferrer" target="_blank">https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-68-1</a>).<br>
<br>
- The /AFRelationship key is missing from the /Filespec dictionary<br>
(<a href="https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-68-3" rel="noreferrer noreferrer" target="_blank">https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-68-3</a>).<br>
Possible values are: Source, Data, Alternative, Supplement,<br>
EncryptedPayload, FormData, Schema or Unspecified (from<br>
<a href="https://www.pdfa.org/wp-content/uploads/2018/10/PDF20_AN002-AF.pdf" rel="noreferrer noreferrer" target="_blank">https://www.pdfa.org/wp-content/uploads/2018/10/PDF20_AN002-AF.pdf</a>).<br>
<br>
- The /Filespec lacks association with the PDF document or any of its<br>
parts, such as pages<br>
(<a href="https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-68-4" rel="noreferrer noreferrer" target="_blank">https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-68-4</a>).<br>
<br>
    From<br>
    <a href="https://www.pdfa.org/wp-content/uploads/2018/10/PDF20_AN002-AF.pdf" rel="noreferrer noreferrer" target="_blank">https://www.pdfa.org/wp-content/uploads/2018/10/PDF20_AN002-AF.pdf</a>,<br>
    it seems that either the /Catalog or a /Page dictionary (there are<br>
    other ones, but I would limit attachments in ConTeXt to those two<br>
    [if not to the /Catalog itself only]) should contain an /AF entry<br>
    with the reference to the /Filespec object(s). I assume that<br>
    the value type for the /AF entry is an array of one or multiple<br>
    object references.<br>
<br>
These are all the issues veraPDF finds when validating the PDF document<br>
generated from the source above.<br>
<br>
I hope it helps. Many thanks for your help,<br>
<br>
Pablo<br>
-- <br>
<a href="http://www.ousia.tk" rel="noreferrer noreferrer" target="_blank">http://www.ousia.tk</a><br>
_______________________________________________<br>
dev-context mailing list<br>
<a href="mailto:dev-context@ntg.nl" target="_blank" rel="noreferrer">dev-context@ntg.nl</a><br>
<a href="https://mailman.ntg.nl/mailman/listinfo/dev-context" rel="noreferrer noreferrer" target="_blank">https://mailman.ntg.nl/mailman/listinfo/dev-context</a> <br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Ok, thank you very much.</div><div dir="auto">--</div><div dir="auto">luigi</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>