SetObjectFromString

Miscellaneous functions

Description

Sets the raw PDF object data for the specified object number. This is for advanced use only.

Syntax

Delphi

function TPDFlib.SetObjectFromString(ObjectNumber: Integer; Const Source: AnsiString): Integer;

ActiveX

Function PDFlib::SetObjectFromString(ObjectNumber As Long, Source As String) As Long

DLL

int DLSetObjectFromString(int InstanceID, int ObjectNumber, char * Source);

Parameters

ObjectNumberThe number of the object to update. The first object is numbered 1 and the last object has an object number equal to the result of the GetObjectCount function. The raw PDF object data to associate with the specified object.
Source

Return values

0The ObjectNumber parameter was out of bounds.
1The specified object was updated successfully.