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.0
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
Statistic
FMM
Blog
WinPDF.LoadContainer
Loads a PDF document from data in container.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WinPDF | 13.2 | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
ContainerValue | The container value (variable or field) to read the PDF from. | MyTable::MyPDFContainer | |
Password | The password to open the Portable Document Format (PDF) document, if it requires one. | Optional |
Result
Returns reference number or error.
Description
Loads a PDF document from data in container.Requires Windows 10 or newer.
If the Portable Document Format (PDF) document does not require a password, this method ignores it.
This method reports an ERROR_WRONG_PASSWORD (1323) error if the wrong password is specified.
Examples
Make preview of page:
Set Variable [ $pdf ; Value: MBS( "WinPDF.LoadContainer"; Get Preview::Input) ]
If [ MBS("IsError") = 0 ]
Set Variable [ $NewImage ; Value: MBS( "WinPDF.PageImageAtSize"; $pdf; 0; 0; 600; "JPEG"; "page.jpg") ]
If [ MBS("IsError") = 0 ]
Set Field [ Get Preview::Preview ; $NewImage ]
Set Field [ Get Preview::Made using ; "WinPDF" ]
Set Variable [ $r ; Value: MBS( "WinPDF.Release"; $pdf) ]
Exit Script [ Text Result: ]
End If
Set Variable [ $r ; Value: MBS( "WinPDF.Release"; $pdf) ]
End If
See also
Example Databases
Blog Entries
This function checks for a paid license.
Created 8th March 2023, last changed 15th April 2023
