CreateDocument Method

Creates a new XFF/XML/PDF file.


Object.CreateDocument(tcFileName [, liCodePage)

PDFL.CreateDocument(tcFileName [, tlAdd [, tcOwner [, tcUser]]])

Parameters

tcFileName
  The file name if the document to be created. If this parameter is empty, the XFF file is created in memory.

liCodePage
 Document code page.

tlAdd
    If .T. and file exist then output will be add to existing file.

tcOwner
   Owner password. If the owner password is empty, a random string will be generated as the password. The owner can do anything with the document.

tcUser
   The user password can be empty..

Return value

XFF/XML:

.T. … the file was successfully created
.F. … file couldn’t have been created

PDFL:

0 … the file was successfully created
-1 … file couldn’t have been created

Remarks

Applies To: XFRX#DRAW, XFRX#XMLPDFL#INIT

XFF/XML: An existing file is overwritten.