# [NTG-context] [dev-context] type key in \setupattachment

Hans Hagen j.hagen at xs4all.nl
Thu Jun 20 10:46:26 CEST 2019

```On 6/19/2019 9:28 PM, Pablo Rodriguez wrote:
> Hi Wolfgang,
>
> this comes from a previous message from this mailing list
> (https://mailman.ntg.nl/pipermail/dev-context/2019/003574.html), which I
> needed a long while to understand 😅.
>
> Would it be possible that the \setupattachment command has a "type" key
> to specify its MIME type? (Default should be "application/octet-stream"
> [or so it seems].)
>
> This is required to add the value to the /Subtype entry in the
> /Embeddedfile dictionary
>
> This is optional information in PDF-1.7, but required in PDF/A-2.
>
> Many thanks for your help,
there is a type key

-----------------------------------------------------------------