Function Reference
Page 518 of 874
If a content stream contains no text the return value is 0 and the members TextLen and KerningCount
are set to 0. If a content stream contains only one text record the return value is 0 that means that no
further records are available but the members TextLen and KerningCount are set to values greater 0.
GetPageWidth
Syntax:
double pdfGetPageWidth(
const PPDF* IPDF) // Instance pointer
The function returns the width of the currently open page. If no open page can be detected the
return value is the default width which will be used for newly created pages. The page width refers
to the media box of a page. The real size is maybe smaller if a crop box is present. The crop takes
precedence because it crops the media box.
If SetUseVisibleCoords() was set to true, the function checks whether a cop box is present and
returns the size of this box if set. A PDF unit represents 1/72 inch. See also GetBBox().