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 |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
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
- DynaPDF.GetAscent
- DynaPDF.GetContent
- DynaPDF.GetDescent
- DynaPDF.GetFontCount
- DynaPDF.New
- DynaPDF.SetFont
- DynaPDF.SetFontEx
- DynaPDF.SetFontWeight
- DynaPDF.SetTabLen
- DynaPDF.SetTextRect
Release notes
- Version 7.0
- Added DynaPDF.GetContent and DynaPDF.SetContent.
Blog Entries
This function checks for a license.
Created 13th December 2016, last changed 13th December 2016