 | PdfiumFPDFPage_GetMediaBox Method |
Get "MediaBox" entry from the page dictionary.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static bool FPDFPage_GetMediaBox(
IntPtr page,
out float left,
out float bottom,
out float right,
out float top
)
Public Shared Function FPDFPage_GetMediaBox (
page As IntPtr,
<OutAttribute> ByRef left As Single,
<OutAttribute> ByRef bottom As Single,
<OutAttribute> ByRef right As Single,
<OutAttribute> ByRef top As Single
) As Boolean
public:
static bool FPDFPage_GetMediaBox(
IntPtr page,
[OutAttribute] float% left,
[OutAttribute] float% bottom,
[OutAttribute] float% right,
[OutAttribute] float% top
)
static member FPDFPage_GetMediaBox :
page : IntPtr *
left : float32 byref *
bottom : float32 byref *
right : float32 byref *
top : float32 byref -> bool
public static boolean FPDFPage_GetMediaBox(
IntPtr page,
/** @attribute OutAttribute */ /** @ref */float left,
/** @attribute OutAttribute */ /** @ref */float bottom,
/** @attribute OutAttribute */ /** @ref */float right,
/** @attribute OutAttribute */ /** @ref */float top
)
Patagames.Pdf.Pdfium.FPDFPage_GetMediaBox = function(page, left, bottom, right, top);
Parameters
- page IntPtr
- Handle to a page. Returned by FPDF_LoadPage(IntPtr, Int32) function
- left Single
- Pointer to a double value receiving the left of the rectangle.
- bottom Single
- Pointer to a double value receiving the bottom of the rectangle.
- right Single
- Pointer to a double value receiving the right of the rectangle.
- top Single
- Pointer to a double value receiving the top of the rectangle.
Return Value
BooleanTrue if success, else False
RemarksThe 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
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