ByteScout PDF To HTML SDK - VBScript - Get PDF Page Width And Height - ByteScout

ByteScout PDF To HTML SDK – VBScript – Get PDF Page Width And Height

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF To HTML SDK – VBScript – Get PDF Page Width And Height

How to get PDF page width and height in VBScript using ByteScout PDF To HTML SDK

How to get PDF page width and height in VBScript

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.

Try it today: Get 60 Day Free Trial or sign up for Web API

ReadPageWidthHeight.vbs
      
' 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

Try it today: Get 60 Day Free Trial or sign up for Web API

MORE INFORMATION

Get 60 Day Free Trial or Visit ByteScout PDF To HTML SDK page

Explore ByteScout PDF To HTML SDK documentation

WEB API VERSION

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next