Finishes a PDF page.
Use this command to terminate
a page before appending a new one.
Returns:
Type |
Value |
Description |
Boolean |
True
or False |
Returns
True if the page has successfully
been finished. |
Available in:
WindowMain |
WindowLink |
YES |
YES |
Hint: You can find
references to XojoScripts which make use of this function by sending the
following SQL statement to the database:
Select id,GUID, ScriptName,ScriptCode from
im_scripts where ScriptCode Like '%PdfEndPage%'
Example XojoScript:
// Create a new PDF file
If
PdfStart("testfile.pdf")
> 0 Then
// Set coordinate system
top-left as 0,0
PdfSetPageCoordsTopDown
Dim x,y As Double = 30.0
// Set output font and
color
PdfSetFont("Arial","Regular",10.0)
Call PdfSetFillColor("&c00000000")
// black textcolor
// write a text
Call PdfWriteText(x,y,"Page
1")
// terminate page 1
Call PdfEndpage
// Add a new page
Call PdfAppend
//Define font for new
page and write text
PdfSetFont("Arial","Regular",10.0)
Call PdfWriteText(x,y,"Page
2")
// Finalize PDF file
Call PdfCloseFile
// Show it to the user
Call Pdflaunch
End
If