5/23/2016 - 10:46 AM


// For complete examples and data files, please go to
' Setup GroupDocs.Viewer config
Dim config As ViewerConfig = Utilities.GetConfigurations()

' Init viewer image handler
Dim handler As New ViewerImageHandler(config)

Dim info As DocumentInfoContainer = handler.GetDocumentInfo(DocumentName)

' Iterate over the attachments collection
For Each attachment As AttachmentBase In info.Attachments
    Console.WriteLine("Attach name: {0}, size: {1}", attachment.Name, attachment.FileType)

    ' Get attachment document image representation
    Dim pages As List(Of PageImage) = handler.GetPages(attachment)
    For Each page As PageImage In pages
        Console.WriteLine("  Page: {0}, size: {1}", page.PageNumber, page.Stream.Length)