PDFium Delphi Component Docs

FlattenPage function

Component: TPdfView  ·  Unit: PDFium
TPdfView wrapper that forwards to TPdf.FlattenPage

Syntax

function FlattenPage(nFlag: Integer = FLAT_NORMALDISPLAY): Integer;

Description

Mirrors TPdf.FlattenPage. The TPdfView component passes the call on to its underlying Pdf instance and refreshes the view should the call mutate the document

All semantic notes from TPdf.FlattenPage apply identically here; the only difference is that you address the operation through the visual control rather than the model object

Where TPdfView is bound to an external TPdf (assigning PdfView1.Pdf := Pdf1), reading this member yields the same data as Pdf1.FlattenPage without addressing the model component separately

Remarks

Example

if PdfView1.Active then
  Memo1.Lines.Add('FlattenPage = ' + IntToStr(PdfView1.FlattenPage));

See Also

FlattenPage, Pdf