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

DynaPDF.DeleteOutputIntent

Can be used to delete a specific or all output intents.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 15.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.DeleteOutputIntent"; PDF; Index )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Index Array index or -1 to delete all intents. -1

Result

Returns OK or error.

Description

Can be used to delete a specific or all output intents.
A PDF file can contain more than one output intent. Call DynaPDF.GetOutputIntentCount to determine the number of available output intents. If the parameter Index is set to -1 all output intents will be deleted.
If the function succeeds the return value is the remaining number of output intents.

See also DeleteOutputIntent function in DynaPDF manual.

Examples

Delete first output intent:

Set Variable [ $IntentsRemaining; Value: MBS( "DynaPDF.DeleteOutputIntent"; $PDF; 0 ) ]

Delete all output intents:

Set Variable [ $IntentsRemaining; Value: MBS( "DynaPDF.DeleteOutputIntent"; $PDF; -1 ) ]

See also

Release notes

Blog Entries

This function checks for a license.

Created 17th December 2024, last changed 31st December 2024


DynaPDF.DeleteNamedDest - DynaPDF.DeletePage