ClearPagePieceInfo

Page properties

Description

Removes the complete PieceInfo dictionary from one page

Syntax

Delphi

Function ClearPagePieceInfo(PageNumber: Integer): Integer;

Parameters

PageNumberOne-based page number

Return values

0No selected document, invalid page, unavailable page dictionary or no /PieceInfo entry to remove
1The page /PieceInfo entry was removed

Remarks

This operation removes every application dictionary under /PieceInfo on the selected page rather than a single AppName or Key

Calling the function again after a successful removal returns 0

Example

if PDF.ClearPagePieceInfo(1)= 0 then
  Log("No PieceInfo entry was removed");

See also

SetPagePieceInfo, GetPagePieceInfo, ClearPageAssociatedFiles