Table of Contents

TTMSFNCPDFGraphicsLibOutputWriter.AddPageCountXPosInfo Method

Registers an x-position placeholder for the total page-count string at the given alignment and bounds, and returns the placeholder token to embed in the stream.

API unit family: TMSFNCPDFCoreLibBase Declaring type: TTMSFNCPDFGraphicsLibOutputWriter

Syntax

function AddPageCountXPosInfo(AAlignment: Integer; ARectLeft, ARectRight, AFontSize, AFontCharSpacing: Single; const AFontGlyphRefName: string; ALineWidthNoPageCount: Single): string;

Parameters

Name Description
AAlignment Text alignment integer (0 = leading, 1 = center, 2 = trailing).
ARectLeft Left edge of the text bounding rectangle in PDF user space.
ARectRight Right edge of the text bounding rectangle in PDF user space.
AFontSize Font size in points used to render the page-count string.
AFontCharSpacing Character spacing applied to the page-count string.
AFontGlyphRefName PDF font resource reference name for the page-count font.
ALineWidthNoPageCount Total line width of the surrounding text without the page-count token, used to compute final x-position after the count is known.