This function adds a page to the PDF document is created.
Parameters
Name | Explanation |
---|---|
PSFSetInfo | Structure (user-defined type) variable that sets the conditions for PDF creation |
DocumentSize | Document size (A0-A9, B0-B9, LETTER, LEGAL) |
Landscape | Specify document orientation (TRUE landscape, FALSE portrait) |
DocumentWidth | Specify size of document width (in mm) |
DocumentHeight | Specify size of document height (in mm) |
Return Value
Returns True (nonzero) if successful. Returns False (0) if unsuccessful.
Explanation
The IKPDFAddPage function adds a page to the PDF document is created. PDFSetInfo is also used with the IKPDFStart, IKPDFAddImage, IKPDFEndPage, and IKPDFEnd functions. Regarding SAVE_PDF_INFO, see the description of the member variables of SAVE_PDF_INFO in Ik10File.dll, Ik10FileA.dll, Ik10File64.dll, Ik10File64A.dll.
If you pass a specified size, such as A4, into DocumentSize, the DocumentWidth and DocumentHeight parameter values are invalid. To enable the DocumentWidth and DocumentHeight values, pass NULL, nil, vbNullString, or an empty string into DocumentSize. Sizes that can be used in the DocumentSize parameter are A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, B0, B1, B2, B3, B4, B5, B6, B7, B8, B9, LETTER, LEGAL. *It does not matter whether it is uppercase or lowercase.