Click or drag to resize

PdfiumFPDFPage_SetMediaBox Method

Set "MediaBox" entry to the page dictionary.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static void FPDFPage_SetMediaBox(
	IntPtr page,
	float left,
	float bottom,
	float right,
	float top
)

Parameters

page  IntPtr
Handle to a page. Returned by FPDF_LoadPage(IntPtr, Int32) function.
left  Single
The left of the rectangle.
bottom  Single
The bottom of the rectangle.
right  Single
The right of the rectangle.
top  Single
The top of the rectangle.
Remarks
The media box defines the boundaries of the physical medium on which the page is to be printed. It may include any extended area surrounding the finished page for bleed, printing marks, or other such purposes. It may also PDF reference 1.7.pdf SECTION 10.10 Prepress Support 963 include areas close to the edges of the medium that cannot be marked because of physical limitations of the output device. Content falling outside this boundary can safely be discarded without affecting the meaning of the PDF file.
See Also