Goto: 4C Home | 4C Docs | 4C External Libraries Home | FCPdf Home | FCPdf Function List DocNew()

DocNew()

Purpose:
FCPdf::DocNew() creates a new empty pdf document and returns an identifier to it.
Usage:
docident = FCPdf::DocNew();
Arguments:

None
Returns:
integer <docident>
>= 0 - A docment identifier used in other FCPdf library calls that need a docident.
< 0 - Error
Where Used:
FCPdf::DocNew() can be called from anywhere.
Example:
Description:
FCPdf::DocNew() creates a new empty pdf document and returns an identifier to it.
Bugs/Features/Comments:
This function is an alias for FCPdf::DocAlloc(). The 2 functions are 100% equivalent.
All resources used by an FCPdf document must be freed by the application by calling one of FCPdf:DocFree() or FCPdf::DocFreeAll()
See Also: See Also
FCPdf Function List


Back to Top