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


Removes a stream from container value.

Component Version macOS Windows Linux Server iOS SDK
Container 3.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Container.Remove"; Container; Type )   More


Parameter Description Example
Container The container field or value to inspect.
Type The type code of the stream to remove. Can be "PDF ", "JPEG" or one of the other usual types. "JPEG"


Returns modified container value or error.


Removes a stream from container value.
This function can be used to remove the JPEG preview from an image.
Or if you have a container with PDF and preview, you could remove the PDF to just get the preview image.
Use Container.GetTypes to learn what types are inside a container.


Renames an image to have a new file extension.

$jpegOnly = MBS( "Container.Remove"; $PDFContainer; "JPEG" )

Remove PDF from container value:

/* PDF produced with DynaPDF Pro will have Preview image. Removing PDF will reveal the preview: */
MBS( "Container.Remove"; FinalPDF; "PDF " )

Removes PDF from a PDF container with preview, so we end up with preview alone:

MBS( "Container.Remove"; $PDFContainer; "PDF " )

Remove DPI metadata:

Set Variable [$Image; MBS( "Container.Remove"; $Image; "DPI_" ) ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 16th June 2021

Container.ReadImageFile - Container.RemovePreview