WindowsPDFDocumentMBS shared methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsPDFDocumentMBS class.

WindowsPDFDocumentMBS.ConvertImage(ImageData as String) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows PDF MBS WinFrameworks Plugin 23.3 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Converts a picture to PNG.
Example

// read in a HEIC image
dim f as FolderItem = SpecialFolder.Desktop.Child("IMG_4609.HEIC")
dim b as BinaryStream = BinaryStream.Open(f)
dim s as string = b.Read(b.Length)

// convert to PNG
dim p as string = WindowsPDFDocumentMBS.ConvertImage(s)

// and write out as PNG file
dim o as FolderItem = SpecialFolder.Desktop.Child("test.png")
dim c as BinaryStream = BinaryStream.Create(o, true)
c.Write p
c.close

o.Launch

This is a little utility function to use Windows' built-in image encoders and decoders to convert various image formats like HEIF/HEIC to a PNG image.
Returns new image as string with bytes of PNG image.

WindowsPDFDocumentMBS.LoadFromData(data as MemoryBlock, Password as String = "") as WindowsPDFDocumentMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows PDF MBS WinFrameworks Plugin 23.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Loads a PDF document from data in Memoryblock synchronously.

Password: The password to open the Portable Document Format (PDF) document, if it requires one.

If the Portable Document Format (PDF) document does not require a password, this method ignores it.

This method raises an exception reporting an ERROR_WRONG_PASSWORD (1323) error if the wrong password is specified.

See also:

WindowsPDFDocumentMBS.LoadFromData(data as String, Password as String = "") as WindowsPDFDocumentMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows PDF MBS WinFrameworks Plugin 23.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Loads a PDF document from data in string synchronously.

Password: The password to open the Portable Document Format (PDF) document, if it requires one.

If the Portable Document Format (PDF) document does not require a password, this method ignores it.

This method raises an exception reporting an ERROR_WRONG_PASSWORD (1323) error if the wrong password is specified.

See also:

WindowsPDFDocumentMBS.LoadFromDataAsync(data as MemoryBlock, Handler as WindowsPDFDocumentLoadedMBS, Password as String = "")

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows PDF MBS WinFrameworks Plugin 23.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Loads a PDF document from data in MemoryBlock asynchronously.

Calls the given delegate later.

Password: The password to open the Portable Document Format (PDF) document, if it requires one.

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 via delegate if the wrong password is specified.

See also:

WindowsPDFDocumentMBS.LoadFromDataAsync(data as String, Handler as WindowsPDFDocumentLoadedMBS, Password as String = "")

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows PDF MBS WinFrameworks Plugin 23.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Loads a PDF document from data in string asynchronously.

Calls the given delegate later.

Password: The password to open the Portable Document Format (PDF) document, if it requires one.

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 via delegate if the wrong password is specified.

See also:

WindowsPDFDocumentMBS.LoadFromFile(File as FolderItem, Password as String = "") as WindowsPDFDocumentMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows PDF MBS WinFrameworks Plugin 23.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Loads a PDF document from folderitem synchronously.

Password: The password to open the Portable Document Format (PDF) document, if it requires one.

If the Portable Document Format (PDF) document does not require a password, this method ignores it.

This method raises an exception reporting an ERROR_WRONG_PASSWORD (1323) error if the wrong password is specified.

WindowsPDFDocumentMBS.LoadFromFileAsync(File as FolderItem, Handler as WindowsPDFDocumentLoadedMBS, Password as String = "")

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows PDF MBS WinFrameworks Plugin 23.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Loads a PDF document from folderitem asynchronously.

Calls the given delegate later.

Password: The password to open the Portable Document Format (PDF) document, if it requires one.

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 via delegate if the wrong password is specified.

WindowsPDFDocumentMBS.LoadFromPath(Path as String, Password as String = "") as WindowsPDFDocumentMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows PDF MBS WinFrameworks Plugin 23.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Loads a PDF document from path synchronously.

Password: The password to open the Portable Document Format (PDF) document, if it requires one.

If the Portable Document Format (PDF) document does not require a password, this method ignores it.

This method raises an exception reporting an ERROR_WRONG_PASSWORD (1323) error if the wrong password is specified.

WindowsPDFDocumentMBS.LoadFromPathAsync(Path as String, Handler as WindowsPDFDocumentLoadedMBS, Password as String = "")

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows PDF MBS WinFrameworks Plugin 23.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Loads a PDF document from path asynchronously.

Calls the given delegate later.

Password: The password to open the Portable Document Format (PDF) document, if it requires one.

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 via delegate if the wrong password is specified.

The items on this page are in the following plugins: MBS WinFrameworks Plugin.


💬 Ask a question or report a problem