Table of Contents

TTMSFNCWXCustomPDFViewer Class

Base class for the PDF viewer control. Renders documents from a URL, file or Base64 string and provides page navigation, zooming, rotation, text search, thumbnail generation and form-field extraction.

API unit family: TMSFNCWXPDFViewer Inherits from: TTMSFNCCustomWEBControl

Syntax

TTMSFNCWXCustomPDFViewer = class(TTMSFNCCustomWEBControl)

Remarks

Members are surfaced as published properties on the descendant TTMSFNCWXPDFViewer.

Methods

Name Description
FitToPage Adjusts the zoom factor so the current page fits the control.
GenerateImageActualPage Renders the current page to a Base64-encoded image.
GenerateThumbnails Generates thumbnails for every page of the loaded document.
GetFormFields Requests the form field data contained in the document.
GetPageAsText Requests the text content of a page.
LoadFromBase64 Loads a document from a Base64-encoded string and displays it.
LoadFromFile Loads a document from a local file and displays it.
LoadFromUrl Loads a document from a URL and displays it.
NextPage Navigates to the next page, if one exists.
PreviousPage Navigates to the previous page, if one exists.
SavePageTextAsJSON Extracts the text of a page and saves it to a JSON file.
SearchText Searches the loaded document for the supplied text.
ShowPage Displays the page at the given index.
TurnAngleLeft Rotates the current page 90 degrees counter-clockwise.
TurnAngleRight Rotates the current page 90 degrees clockwise.
ZoomIn Increases the zoom factor by one step.
ZoomOut Decreases the zoom factor by one step.