Platforms to show: All Mac Windows Linux Cross-Platform

/DynaPDF/Create PDF
Feedback.

Function:
You find this example project in your Plugins Download as a Realbasic project file within the examples folder: /DynaPDF/Create PDF
This example is the version from Fri, 18th Feb 2010.
Notes: Last modified: Fri, 18th Feb 2010
Class App
Inherits Application
// Event implementations
Sub Open()
dim pdf as new DynapdfMBS
dim d as new date
dim f as FolderItem = GetFolderItem("Create PDF.pdf")

call pdf.CreateNewPDF f
call pdf.SetDocInfo pdf.kdiSubject, "My first Realbasic output"
call pdf.SetDocInfo pdf.kdiProducer, "Realbasic test application"
call pdf.SetDocInfo pdf.kdiTitle, "My first Realbasic output"

// We want to use top-down coordinates
call pdf.SetPageCoords pdf.kpcTopDown

call pdf.Append


call pdf.SetFont "Times", pdf.kfsItalic, 40.0, true, pdf.kcp1252
call pdf.WriteFText pdf.ktaCenter, "My first Realbasic output!"

call pdf.SetFont "Times", pdf.kfsItalic, 20.0, true, pdf.kcp1252
call pdf.WriteText 50.0, 180.0, "File created: " + d.LongDate

call pdf.EndPage

call pdf.CloseFile

f.Launch

quit

End Sub
End Class


See also:




Links
MBS Realbasic tutorial videos - Nachhilfe in Kretz