https://bugs.documentfoundation.org/show_bug.cgi?id=66580
--- Comment #43 from Dave Gilbert <[email protected]> --- Hmm this was looking promising, until I've hit another thing PDFium doesn't seem to implement. I can't see a way of getting the MIME type of the attachment being loaded to check it matches: auto pAttachment = pPdfiumDoc->getAttachment(0); auto aName = pAttachment->getName(); which is great, gets me the "Original.odt" I was trying to use FPDFAttachment_GetStringValue on that attachment, but that gets an entry out of the 'embedded file *parameter* dictionary' where as the mime type is the Subtype key in the 'embedded file *stream* dictionary' (table 45/46 of the PDF spec I have). I guess I could just go off the filename, but that feels delicate - anyone any ideas how to get the mimetype out of PDFium? -- You are receiving this mail because: You are the assignee for the bug.
