SetObjectJSON
Object model, document editing
Description
Validuje jednu typed JSON hodnotu a nahradí vybraný existujúci nepriamy objekt, pritom zachová jeho object a generation čísla. Dictionary, polia, streamy, skalárne hodnoty a referencie si zachovajú svoje PDF typy. Parsovanie a klonovanie sa dokončia skôr, než sa objekt zmení, takže deformovaný vstup ponechá pôvodný objekt nedotknutý
Syntax
Delphi
Function TPDFlib.SetObjectJSON(ObjectNumber: Integer; Const JSON: AnsiString; Options: Integer): Integer;ActiveX
Function PDFlib::SetObjectJSON(ObjectNumber As Long, JSON As String, Options As Long) As LongDLL
int DLSetObjectJSON(int InstanceID, int ObjectNumber, const char* JSON, int Options);Parameters
| ObjectNumber | Existing indirect object number to replace |
|---|---|
| JSON | Typed value returned by GetObjectJSON or extracted from an object graph |
| Options | Must be 0 |
Return values
| 1 | The object was replaced |
|---|---|
| 0 | The object or JSON is invalid; LastErrorCode is 105 |