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

DynaPDF.SetContent

Replaces the content stream of the currently open page or template with a new one.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 7.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.SetContent"; PDF; Content )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Content The new content data.

Result

Returns OK or error.

Description

Replaces the content stream of the currently open page or template with a new one.
If the parameter Buffer is empty the content stream of the page or template will be deleted. In the latter case page resources such as fonts, images and so on will be deleted from the page object too.
Use this function in combination with DynaPDF.GetContent if you need to change a content stream in a manner that DynaPDF does not supports. Do never change a content stream when you don't know exactly what you are doing.

See also SetContent function in DynaPDF manual.

See also

Release notes

Blog Entries

This function checks for a license.

Created 13th December 2016, last changed 13th December 2016


DynaPDF.SetCompressionLevel - DynaPDF.SetDateTimeFormat