CanonicalNumbers
Content stream editing
Description
Controls whether Parse rewrites every numeric operand at the program's fixed four-decimal precision
Syntax
Delphi
Property TPDFContentProgram.CanonicalNumbers: Boolean Read FCanonicalNumbers Write FCanonicalNumbers;Return values
False, the default, keeps the source text of numeric operands read by Parse; true rewrites every parsed number at the fixed four-decimal precision
Remarks
With false, a layer that is edited and re-emitted changes only the operands the edit touched; with true, parsed numbers are canonicalised the way NormalizeContentStreams and the save-time content optimiser require; operands set through SetOperand or created by an edit always follow that precision; only Parse reads the flag, so set it before parsing; a program from ParsePageContentLayer is already parsed, and switching it to canonical numbers takes Parse(Emit) after setting the flag
See also
Parse, SetOperand, ParsePageContentLayer, TPDFContentProgram