Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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
MBS( "WinPDF.LoadContainer"; ContainerValue { ; Password } )   More

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 license.

Created 8th March 2023, last changed 15th April 2023


WinPDF.List - WinPDF.LoadFile