Source code documentation samples provide quick and easy way to add a required functionality into your application. What is ByteScout PDF To HTML SDK? It is the SDK for PDF to HTML conversin. Generates static HTML version of input PDF and reconstructs all visual layout, text positions, vector and raster drawings, images, and form elements. Generated HTML requires no special software and can be viewed in any Internet browser. It can help you to change PDF to HTML output page width in your VBScript application.
This rich sample source code in VBScript for ByteScout PDF To HTML SDK includes the number of functions and options you should do calling the API to change PDF to HTML output page width. Just copy and paste the code into your VBScript application’s code and follow the instruction. This basic programming language sample code for VBScript will do the whole work for you to change PDF to HTML output page width.
Trial version of ByteScout PDF To HTML SDK is available for free. Source code samples are included to help you with your VBScript app.
' Create Bytescout.PDF2HTML.HTMLExtractor object Set extractor = CreateObject("Bytescout.PDF2HTML.HTMLExtractor") extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Set HTML with CSS extraction mode extractor.ExtractionMode = 1 ' set output width to 200 pixels extractor.OutputPageWidth = 200 ' Load sample PDF document extractor.LoadDocumentFromFile("..\..\sample2.pdf") ' Save extracted HTML to file extractor.SaveHtmlToFile_2 "output.html" ' Open output file in default associated application Set shell = CreateObject("WScript.Shell") shell.Run "output.html", 1, false Set shell = Nothing Set extractor = Nothing