Getting started with TMS FNC WX PDF Viewer
Prerequisites
- TMS FNC Core installed and the runtime package added to the project.
- TMS FNC WX Pack installed.
Add the component
- Drop
TTMSFNCWXPDFViewer from the component palette onto a form.
- Call
LoadFromFile, LoadFromUrl, or LoadFromBase64 at runtime to open a PDF document.
- Assign
OnLoaded to be notified when the document has finished loading.
Load a PDF at runtime
Inline example 1PascalC++{ In a button's OnClick handler: }
PDFViewer1.LoadFromFile('C:\Documents\report.pdf');
// In a button's OnClick handler:
PDFViewer1->LoadFromFile(L"C:\\Documents\\report.pdf");
Navigate pages
Inline example 2PascalC++{ Navigate to a specific page (one-based): }
PDFViewer1.ShowPage(2);
// Navigate to a specific page (one-based):
PDFViewer1->ShowPage(2);
Next steps
- Guides — search, zoom, thumbnail generation, form fields, and touch.
- API reference — full class reference.