On 2/12/2020 14:20, Pablo Rodriguez wrote:
On 2/8/20 10:13 PM, Rik Kabel wrote:

Not quite ready yet. When the hidden method is used, it passes the
online validator[1], but fails VeraPDF[2] for clause 6.8-1. When
visible, it fails the online validator stating that the appearance
dictionary doesn't contain an entry, and fails VeraPDF for clauses 6.8-1
and 6.3.3-1.
Hi Rik,

as for 6.8-1, did you set MIME type of the attached file (such as in
"type={application/pdf}")?

Oddly, the bookmarks do not appear either way under MkIV, and they do
not appear when the attachment is visible under LMTX. The bookmarks do
appear with a hidden attachment under LMTX.
As far as I understand, only LMTX will receive regular updates now. (But
Hans knows better šŸ˜….)

I get both visible attachments and bookmarks in LMTX (latest and
previous latest [ā€œlatestā€ is the new beta]).

Could you provide a minimal sample that shows the issue?

Pablo
--
http://www.ousia.tk

Hello Pablo (and everyone else),

Here is my test file. You can use "context --mode=hidden file.tex" to hide the pushpin, orĀ  leave out the mode to expose it.

%%  Test file for pdf3a compliance.
%%
%%  So far, this fails when the attachment is included. Other than the
%%    handling of attachments, ConTeXt does a good job with the various
%%    PDF/A variants.
%%
%%  Testing done locally with the VeraPDF validator (most recently with
%%    version 1.14.8) and online with the 3-Heights validator found at
%%    https://www.pdf-online.com/osa/validate.aspx (current 2020-01-20).
%%
%%  This is not a minimal example.
\definemode          [hidden][keep]
\setuplanguage       [en]
\setuppapersize      [A6,landscape]
\setuppagenumbering  [location=]
\setuptagging        [state=start]
\setupinteraction    [state=start]
%setupbackend        [format={pdf/a-3u},
\setupbackend        [format={pdf/a-3a},
                      level=0,
                      profile={default_gray.icc},
                      intent={ISO coated v2 300\letterpercent\space (ECI)}]
\setupstructure      [state=start,
                      method=auto]
\setupcolors         [pagecolormodel=auto,
                      start=yes,
                      rgb=no,
                      cmyk=no]
\setupbodyfont       [palatino,18pt]
\starttext

 This document was produced using version \contextversion\ of
 \ConTeXt\ \doifelse{\texenginename}{luametatex}{LMTX}{\contextmark}
 with the version \texengineversion\ of \texenginename.

 

 \attachment        [file=./\jobname.tex,
                     method={\doifmodeelse{hidden}{hidden}{normal}},
                     type={text/plain;charset=UTF-8}]
 The source code for this document is attached as a plain text file. It
 should show up in the pdf bookmarks for the document\doifmodeelse
 {hidden}{}{ and through the icon at the start of this paragraph}.

\stoptext

I have tested with LMTX 2020.02.11 16:41.

Mime type

Validation

Viewing

Clearly there are issues with the various viewers. How much ConTeXt can or should do to manage the differences is not clear to me.

--
Rik Kabel