Re: [NTG-context] [dev-context] type key in \setupattachment
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 (https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf#named...)
This is optional information in PDF-1.7, but required in PDF/A-2.
Many thanks for your help,
On 6/19/2019 9:28 PM, Pablo Rodriguez wrote: there is a type key ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen schrieb am 20.06.2019 um 10:46:
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 (https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf#named...)
This is optional information in PDF-1.7, but required in PDF/A-2.
Many thanks for your help,
On 6/19/2019 9:28 PM, Pablo Rodriguez wrote: there is a type key I added it to the command but it shows only a generic name as argument because I can see no point to list all possible arguments.
@Hans: I put new files on your FTP server. Wolfgang
On 6/20/19 10:46 AM, Hans Hagen wrote:
On 6/19/2019 9:28 PM, Pablo Rodriguez wrote:
[...] 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].)
there is a type key
Sorry, Wolfgang and Hans, this was totally my fault. I even checked scrn-wid.mkiv (lines 76-93) and since I didn’t find "type", I tought it wasn’t implemented (it’s on line 112. Sorry for the noise again, Pablo -- http://www.ousia.tk
Zitat von Pablo Rodriguez
Sorry, Wolfgang and Hans, this was totally my fault.
I even checked scrn-wid.mkiv (lines 76-93) and since I didn’t find "type", I tought it wasn’t implemented (it’s on line 112.
Apparently the key is not in the interface, at least it’s missing in the autogenerated syntax section of https://wiki.contextgarden.net/Command/setupattachment Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
participants (4)
-
Hans Hagen
-
Henning Hraban Ramm
-
Pablo Rodriguez
-
Wolfgang Schuster