pdfNormalizePage
Normalize a page's box/rotation combination (e.g. baking a
int32_t __stdcall pdfNormalizePage(PPDF IPDF, int32_t PageNum, int32_t Options);
int32_t __stdcall pdfDANormalizePage(PPDF IPDF, int32_t FileHandle, int32_t PageRef, int32_t NormalizeOptions);
function pdfNormalizePage(const IPDF: PPDF; PageNum, Options: Integer): Integer; stdcall;
function pdfDANormalizePage(const IPDF: PPDF; FileHandle, PageRef, NormalizeOptions: Integer): Integer; stdcall;
Purpose. Normalize a page's box/rotation combination (e.g. baking a /Rotate value into the content stream and box coordinates directly).
Description. Known limitation, same class as pdfHidePage above — both functions only range-validate the target page number and return success/failure; no actual box/rotation normalization is performed by either. pdfDANormalizePage's FileHandle is likewise accepted but not consulted.
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
PageNum/PageRef | 1-based page to validate. |
Options/NormalizeOptions | Accepted but not consulted — no normalization logic exists yet. |
FileHandle | Accepted but never consulted. |
Return value. 1 if the page number is in range; 0 otherwise. Does not indicate any normalization occurred.
C# (P/Invoke)
public static extern int pdfNormalizePage(IntPtr IPDF, int PageNum, int Options);
Core
pdfNormalizePage
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.