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

DocSetPaperSize()

Purpose:
FCPdf::DocSetPaperSize() sets the default paper size for new pages in the document to one of a set of standard paper sizes.
Usage:
rc = FCPdf::DocSetPaperSize(<docident>,<papersize>);
Arguments:

integer <docident> - A valid FCPdf document identifier

alpha <papersize> - The papersize to use for new pages
Returns:
integer <rc>
0 - OK
-1 - Error - invalid docident or invalid papersize.
Where Used:
FCPdf::DocSetPaperSize() can be called anytime you have a valid FCPdf document identifier. However, normally it will be called shortly after creating the document.
Example:
Description:
FCPdf::DocSetPaperSize() sets the default paper size for new pages in the document to one of a set of standard paper sizes.

The paper size set here is the default for new pages added to the document and has no affect on current pages in the document.

Any single page can also change it's own page size.

Allowable paper sizes are
Bugs/Features/Comments:
See Also: See Also
FCPdf Function List


Back to Top