FPDFPage_SetMediaBox function

  1. @Native<Void Function(FPDF_PAGE, Float, Float, Float, Float)>(FPDF_PAGE, ffi.Float, ffi.Float, ffi.Float, ffi.Float)>()
void FPDFPage_SetMediaBox(
  1. FPDF_PAGE page,
  2. double left,
  3. double bottom,
  4. double right,
  5. double top,
)

Set "MediaBox" entry to the page dictionary.

page - Handle to a page. left - The left of the rectangle. bottom - The bottom of the rectangle. right - The right of the rectangle. top - The top of the rectangle.

Implementation

@ffi.Native<
  ffi.Void Function(FPDF_PAGE, ffi.Float, ffi.Float, ffi.Float, ffi.Float)
>()
external void FPDFPage_SetMediaBox(
  FPDF_PAGE page,
  double left,
  double bottom,
  double right,
  double top,
);