THotPDF.ExtractLoadedPagesTextToStream Method
Writes loaded page text as UTF-8 to a caller-owned stream while retaining only one page of Unicode text in memory
Declaration
function ExtractLoadedPagesTextToStream(Stream: TStream; const PageRange: string= ''; const PageSeparator: UnicodeString= #12; WriteBOM: boolean= False): Integer;
Parameters
Streamreceives UTF-8 bytes at its current positionPageRangeaccepts the loaded-document one-based range syntax; an empty value selects every pagePageSeparatoris encoded between selected pagesWriteBOMemits a UTF-8 BOM when at least one page is selected
Return value
Returns the number of selected pages whose text was extracted successfully