Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Returns the result of the transaction as PDF.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 4.0 Yes Yes Yes Yes Yes

MBS( "CURL.GetResultAsPDF"; Handle { ; Filename; DontRenderPreview } )


Parameter Description Example value
Handle The CURL session handle. $curl
Filename Optional
The desired file name.
DontRenderPreview Optional
Pass 1 to not create a JPEG with preview of first page as part of the container.


The result value which you can assign to a container field.


Returns the result of the transaction as PDF.
Make sure the data is a PDF. The plugin does not verify whether result is a PDF file. But if it is one, it sets size properties and creates a preview JPEG so FileMaker can preview it (Preview is Mac only).
For Windows you can generate preview with DynaPDF.GeneratePreview function.
Version 5.2 and later can use the filename from URL if you don't provide one yourself.

See also CURL.GetResultAsContainer.


Load PDF from URL and store in container:

# start new transfer
Set Variable [$curl; Value:MBS("CURL.New")]
# set URL
Set Variable [$r; Value:MBS("CURL.SetOptionURL"; $curl; "")]
# run transfer
Set Variable [$ErrorCode; Value:MBS("CURL.Perform"; $curl)]
# get result as PDF and store in field:
Set Variable [$Result; Value:MBS( "CURL.GetResultAsPDF"; $curl)]
Set Field [test::MyContainerField; $Result]
# get debug messages:
Set Variable [$DebugMessages; Value:MBS( "CURL.GetDebugAsText"; $curl)]
# cleanup
Set Variable [$r; Value:MBS("CURL.Cleanup"; $curl)]

See also

Example Databases

CURL.GetResultAsJPEG   -   CURL.GetResultAsPNG

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins