Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Loads a PDF document from file synchronously.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WinPDF | 13.2 | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |
Parameter | Description | Example | Flags |
---|---|---|---|
Path | Native file path to the PDF file. | "C:\test\test.pdf" | |
Password | The password to open the Portable Document Format (PDF) document, if it requires one. | Optional |
Returns reference number or error.
Load a PDF from disk:
Set Variable [ $pdf ; Value: MBS( "WinPDF.LoadFile"; "C:\test\test.pdf" ) ]
If [ MBS("IsError") ]
Show Custom Dialog [ "Failed to open PDF." ; $pdf ]
Exit Script [ Text Result: ]
End If
This function checks for a license.
Created 8th March 2023, last changed 7th May 2023