Skip to main content
Table of Contents

TTMSFNCWXCustomPDFViewer.SavePageTextAsJSON Method

Extracts the text of a page and saves it to a JSON file.

API unit family: TMSFNCWXPDFViewer Declaring type: TTMSFNCWXCustomPDFViewer

Syntax

FMX.TMSFNCWXPDFViewer.hppPascalC++
procedure SavePageTextAsJSON(AFileName: string; APageNumber: Integer = -1);
void __fastcall SavePageTextAsJSON(System::UnicodeString AFileName, int APageNumber = 0xffffffff);

Parameters

Name Description
AFileName The path of the JSON file to write.
APageNumber The one-based page to extract, or -1 to use the active page. Defaults to -1.