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: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

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

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


DynaPDF.SetCompressionLevel - DynaPDF.SetDocInfo

Feedback: Report problem or ask question.