FPDFPage_Flatten function

  1. @Native<FPDF_BOOL Function(FPDF_PAGE, Int)>(FPDF_PAGE, ffi.Int)>()
int FPDFPage_Flatten(
  1. FPDF_PAGE page,
  2. int nFlag
)

Flatten annotations and form fields into the page contents.

page - handle to the page. nFlag - One of the |FLAT_*| values denoting the page usage.

Returns one of the |FLATTEN_*| values.

Currently, all failures return |FLATTEN_FAIL| with no indication of the cause.

Implementation

@ffi.Native<ffi.Int Function(FPDF_PAGE, ffi.Int)>()
external int FPDFPage_Flatten(FPDF_PAGE page, int nFlag);