SetPageContentFromString
Page properties, Page layout, Page manipulation
Description
This function allows the content of the selected PDF page to be set.
This is for advanced use only. If incorrect information is put into the page's content stream then the PDF file may not load correctly with Adobe Reader or any other PDF viewer.
This function sets the content of the entire page resulting in a single content stream part. The SetContentStreamFromString function can be used to set the PDF page description commands of the content stream part selected with the SelectContentStream function.
Syntax
Delphi
Function TPDFlib.SetPageContentFromString(Const Source: AnsiString): Integer;
DLL
int DLSetPageContentFromString(int InstanceID, const char* Source);
Parameters
| Source | The new contents of the page |
|---|
Return values
| 1 | The content of the selected page was replaced |
|---|---|
| 0 | The call was rejected because a path, page update, graphics state, marked-content or form XObject scope is still open; LastErrorCode is set to the API scope error |