API referenceCore SDK

pdfDANormalizePage

Normalize a page's box/rotation combination (e.g. baking a

C
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);
Delphi
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.

ParameterDescription
IPDFDocument handle.
PageNum/PageRef1-based page to validate.
Options/NormalizeOptionsAccepted but not consulted — no normalization logic exists yet.
FileHandleAccepted but never consulted.

Return value. 1 if the page number is in range; 0 otherwise. Does not indicate any normalization occurred.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfDANormalizePage(IntPtr IPDF, int FileHandle, int PageRef, int NormalizeOptions);
Area
Core SDK
Category

Core

Exported names

pdfDANormalizePage

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.