THotPDF.GetLoadedPageContentBytes Method

 

THotPDF.GetLoadedPageContentBytes

THotPDF

 

Top

Materializes every /Contents segment into one decoded byte buffer for a loaded page through the lazy page-content sequence

 

Delphi syntax:

function GetLoadedPageContentBytes(PageIndex: Integer; out Bytes: TBytes): boolean;

 

Description

The method inserts one line-feed byte between segments and grows the destination buffer geometrically, so accumulation is amortised linear rather than copying the complete prefix for every segment

Use OpenLoadedPageContentStream when the logical content can be large or the caller needs seeking without retaining the complete result