Tutorial: how to create PDF format document in KiXtart using PDFDoc Scout library

 
 

This guide will teach you how to create simple PDF document using PDFDoc Scout library and KiXtart. Thanks to Marty Vijverberg for the contribution!

Break on

;create PDFDoc object
$PDFDoc = CreateObject("PDFDocScout.PDFDocument")

;initialize library
$PDFDoc.InitLibrary("demo", "demo")

;set output filename for PDF document
$PDFDoc.OutputFileName = "c:\HelloWorld.pdf"
;automatically open generated PDF document in default PDF viewer application
$PDFDoc.AutoOpenGeneratedPDF = True

;starts PDF document generation
$PDFDoc.BeginDocument

;add text to current page - draw text At (100,100) And rotate At 15 degrees
$PDFDoc.Page.AddText("Hello, World!", 100, 100, 15)

;close pdf document generation
$PDFDoc.EndDocument

;disconnect from library
$PDFDoc = ""

Filed in: PDFDoc Scout SDK

Tutorials: