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.


The biggest plugin in space...