ByteScout PDF To HTML SDK - VB6 - Change PDF To HTML Output Page Width - ByteScout

ByteScout PDF To HTML SDK – VB6 – Change PDF To HTML Output Page Width

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF To HTML SDK – VB6 – Change PDF To HTML Output Page Width

How to change PDF to HTML output page width in VB6 with ByteScout PDF To HTML SDK

Write code in VB6 to change PDF to HTML output page width with this step-by-step tutorial

This sample source code below will demonstrate you how to change PDF to HTML output page width in VB6. ByteScout PDF To HTML SDK is the SDK that can take PDF and generate HTML version of it with all the visual layout, positions, vectors, images and form fields preserved. Generated HTML requires no special software and can be viewed in any Internet browser and you can use it to change PDF to HTML output page width with VB6.

VB6 code samples for VB6 developers help to speed up coding of your application when using ByteScout PDF To HTML SDK. This VB6 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! Code testing will allow the function to be tested and work properly with your data.

ByteScout PDF To HTML SDK free trial version is available on our website. VB6 and other programming languages are supported.

Try ByteScout PDF To HTML SDK today: Get 60 Day Free Trial or sign up for Web API

ChangeOutputPageWidth.vbp
      
Type=Exe Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#..\..\..\..\..\..\..\..\..\Windows\SysWOW64\stdole2.tlb#OLE Automation Reference=*\G{3D7BFCBE-A112-4953-B4B0-83647F86C919}#9.1#0#..\..\..\..\..\..\..\..\..\WINDOWS\SYSWOW64\Bytescout.PDF2HTML.tlb#ByteScout PDF To HTML SDK [TRIAL] Form=Form1.frm Startup="Form1" Command32="" Name="ChangeOutputPageWidth" HelpContextID="0" CompatibleMode="0" MajorVer=1 MinorVer=0 RevisionVer=0 AutoIncrementVer=0 ServerSupportFiles=0 VersionCompanyName="Hiren" CompilationType=0 OptimizationType=0 FavorPentiumPro(tm)=0 CodeViewDebugInfo=0 NoAliasing=0 BoundsCheck=0 OverflowCheck=0 FlPointCheck=0 FDIVCheck=0 UnroundedFP=0 StartMode=0 Unattended=0 Retained=0 ThreadPerObject=0 MaxNumberOfThreads=1

Try ByteScout PDF To HTML SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

Form1.frm
      
VERSION 5.00 Begin VB.Form Form1 Caption = "ChangeOutputPageWidth" ClientHeight = 1320 ClientLeft = 120 ClientTop = 465 ClientWidth = 4440 LinkTopic = "Form1" ScaleHeight = 1320 ScaleWidth = 4440 StartUpPosition = 3 'Windows Default Begin VB.CommandButton cmd_change_output_pdf_width Caption = "Change Output Page Width" Height = 855 Left = 480 TabIndex = 0 Top = 240 Width = 3495 End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub cmd_change_output_pdf_width_Click() ' Hanlde Error On Error GoTo ErrorHandler: ' 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" MsgBox "PDF file successfully saved as 'output.html'.", vbInformation, "Success" ' Open output file in default associated application CreateObject("WScript.Shell").Run "output.html", 1, False ' Close form Unload Me ErrorHandler: If Err.Number <> 0 Then MsgBox Err.Description, vbInformation, "Error" End If End Sub

Try ByteScout PDF To HTML SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

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

Explore ByteScout PDF To HTML SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next