Breadcrumbs

Init

Intial and reset of the instance. 

Must be called first with every new PDF creation.


Syntax

  Func_FbMnFPDF_Init.bmp

C++
METHOD PUBLIC Init : BOOL
VAR_INPUT
    orientation: STRING;
    unit : STRING;
    page_format : STRING;
END_VAR


Parameters

Parameter 

Description

orientation 

Page layout to be used by default for all pages of the document. Possible values are (case insensitive):

  • 'P' or 'Portrait': portrait format

  • 'L' or 'Landscape': landscape format

The portrait format is used by default. 

unit 

User-defined setting for the unit of measurement to be used within the document for position specifications, dimensions, distances, etc..:

  • 'pt': point / point

  • 'mm': millimeter / millimeter

  • 'cm': centimeter / centimeter

  • 'in': inch

One point corresponds to 1/72 of an inch, i.e. in about 0.35 mm (one inch corresponds to 2.54 cm). The unit dot is a unit often used in typography - font sizes are given in this unit. The standard size is mm. 

page_format 

Specifies the paper size. Possible values for the format are (case insensitive):

  • A3

  • A4

  • A5

  • letter

  • Legal


or a custom format defined by an array of two elements specifying the width and height of the format. The document dimensions correspond to the previously defined unit of measurement for the document.

Return value

Status of the call. 



Example



Requirements



Remarks