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

PDFKit.OpenURL

Opens a PDF from an URL and returns a PDF Reference value.

Component Version macOS Windows Linux Server iOS SDK
PDFKit 2.3 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "PDFKit.OpenURL"; URL )   More

Parameters

Parameter Description Example
URL A text with an URL.

Result

Returns a number for the PDF.

Description

Opens a PDF from an URL and returns a PDF Reference value.
This value can be used in other PDFKit calls to work on the same PDF.
See also PDFKit.OpenPath and PDFKit.OpenContainer.
PDF Document reference numbers are starting at 30000 and counting up for each new document.

Use PDFKit.Release later to free the memory.

Seems to work for HTTP protocol, too. The Apple frameworks transparently handle this out of the control of the plugin. With HTTPS after redirect from HTTP is also possible. For more control, please use CURL functions.

Examples

Open the PDF with the given URL:

MBS("PDFKit.OpenURL"; "http://www.somedomain.invalid/somepath/test.pdf")

See also

This function checks for a license.

Created 18th August 2014, last changed 9th February 2018


PDFKit.OpenPath - PDFKit.PageBounds