Hi Support,
I’ve spent a few days trying to work out how to do this and I’ve come to the conclusion that it’s not possible with the current GroupDocs viwer DLLs.
I have emails where several attachments (all different content) have the same file name - in this case “Scanned from a Xerox Multifunction Device.pdf”
I cannot see how to get to the attachment streams for each of these since ViewerHtmlHandler.GetDocumentInfo() returns a DocumentInfoContainer object whose Attachments property (a list of AttachmentBase objects) have multiple items with the same value for Name (but different Size values in this case).
I need to call handler.GetPages(attachment.Stream, attachment.Name, options) with the stream for each attachment - but the only way to get to the stream is with the handler.GetFile() overload that takes an AttachmentBase. It always returns the stream to the first attachment with that name.
Please advise how to get to the file data for the other attachments that share the same name?
Thanks,
Darryl.