Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

Container.RenameStream

Renames a stream in a container.

Component Version macOS Windows Linux Server iOS SDK
Container 4.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Container.RenameStream"; Container; InputType; OutputType )   More

Parameters

Parameter Description Example
Container The container field or value to inspect. $data
InputType The input type. "JPEG"
OutputType The output type. "FILE"

Result

Returns modified container value.

Description

Renames a stream in a container.
See Container.GetTypes to figure out what stream types a container value has.

Examples

Rename JPEG like a file import:

MBS("Container.RenameStream"; Test::InputContainer; "JPEG"; "FILE")

Decode hex encoded zlib compressed PDF in a text field:

Set Field [ PDF::PDFFile ; MBS( "Container.Decompress"; MBS( "Container.RenameStream"; MBS( "Container.DecodeFromHex"; "FILE"; PDF::PDF_hex; "test.pdf"); "FILE"; "ZLIB" )) ]

See also

Blog Entries

This function is free to use.

Created 18th August 2014, last changed 1st May 2022


Container.Rename - Container.Screenshot

💬 Ask a question or report a problem