The MIME type of an Attachment

24 views
Skip to first unread message

David Alan Gilbert

unread,
Apr 3, 2025, 7:35:23 PMApr 3
to pdfium
Hi,
  I'd like to get the MIME type of an Attachment, so I can check it's what I can deal with before I bother to call FPDFAttachment_GetFile.
  I can't see a way of doing it, either pointers, or suggestions of where to add it would be great.
 I initially thought that FPDFAttachment_GetStringValue might do the trick, but it looks in the '*params* dictionary' where as I understand it, the MIME type is the 'Subtype' key of the 'embedded file stream dictionary'.

  Any ideas welcome,

Dave

Lei Zhang

unread,
Apr 3, 2025, 8:40:50 PMApr 3
to David Alan Gilbert, pdfium
Please file a feature request on https://crbug.com/pdfium/new for
this. The Subtype key lives next to the Params key, not inside it,
which is why FPDFAttachment_GetStringValue() does not work.
> --
> You received this message because you are subscribed to the Google Groups "pdfium" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pdfium+un...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/pdfium/0ae08df5-e3d8-45eb-beca-857d41d1d745n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages