The sample source code below will teach you how to get PDF page width and height in VBScript. ByteScout PDF To HTML SDK is the PDF to HTML converter with visual layout, positions, vectors, images and form fields. Generated HTML can be viewed using browser without PDF reader. It can be used to get PDF page width and height using VBScript.
Fast application programming interfaces of ByteScout PDF To HTML SDK for VBScript plus the instruction and the code below will help you quickly learn how to get PDF page width and height. This VBScript sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Enjoy writing a code with ready-to-use sample codes in VBScript.
ByteScout PDF To HTML SDK free trial version is available on our website. VBScript and other programming languages are supported.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
' 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 ' Load sample PDF document extractor.LoadDocumentFromFile("..\..\sample2.pdf") ' read width and height of page #0 from PDF ' and show default output width and calculated page height MsgBox "Page #0" & vbCRLF & "Page height = " & CStr(extractor.GetPageHeight(0)) & vbCRLF & "Page width = " & CStr(extractor.GetPageWidth(0)) & vbCRLF & "Output width =" & CStr(extractor.OutputPageWidth) & vbCRLF & "Output Page Height = " & CStr(extractor.GetOutputHTMLPageHeight(0)) ' uncomment to Convert pdf to HTML to file ' extractor.SaveHtmlToFile_2 "output.html" Set extractor = Nothing
60 Day Free Trial or Visit ByteScout PDF To HTML SDK Home Page
Explore ByteScout PDF To HTML SDK Documentation
Explore Samples
Sign Up for ByteScout PDF To HTML SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout PDF To HTML SDK Home Page
Explore ByteScout PDF To HTML SDK Documentation
Explore Samples
Sign Up for ByteScout PDF To HTML SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples