10/19/2017 - 11:14 AM


' For complete examples and data files, please go to
' get Configurations
Dim config As ViewerConfig = Utilities.GetConfigurations()

' create html handler
Dim htmlHandler As New ViewerHtmlHandler(config)

' guid implies that unique document name 
Dim guid As String = DocumentName

' Get document html for print with custom css
Dim css As String = "a { color: hotpink; }"' Some style

Dim printableHtmlOptions As New PrintableHtmlOptions(guid, css)

' get printable html in PrintableHtmlContainer
Dim container As PrintableHtmlContainer = htmlHandler.GetPrintableHtml(printableHtmlOptions)

' save html content 
Utilities.SaveAsHtml(guid, container.HtmlContent)