Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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 |
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 |
Returns reference number or error.
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
This function checks for a license.
Created 8th March 2023, last changed 15th April 2023