FPDFPageObjMark_SetBlobParam function

  1. @Native<FPDF_BOOL Function(FPDF_DOCUMENT, FPDF_PAGEOBJECT, FPDF_PAGEOBJECTMARK, FPDF_BYTESTRING, Pointer<UnsignedChar>, UnsignedLong)>(FPDF_DOCUMENT, FPDF_PAGEOBJECT, FPDF_PAGEOBJECTMARK, FPDF_BYTESTRING, ffi.Pointer<ffi.UnsignedChar>, ffi.UnsignedLong)>()
int FPDFPageObjMark_SetBlobParam(
  1. FPDF_DOCUMENT document,
  2. FPDF_PAGEOBJECT page_object,
  3. FPDF_PAGEOBJECTMARK mark,
  4. FPDF_BYTESTRING key,
  5. Pointer<UnsignedChar> value,
  6. int value_len,
)

Experimental API. Set the value of a blob property in a content mark by key. If a parameter with key |key| exists, its value is set to |value|. Otherwise, it is added as a new parameter.

document - handle to the document. page_object - handle to the page object with the mark. mark - handle to a content mark. key - string key of the property. value - pointer to blob value to set. value_len - size in bytes of |value|.

Returns TRUE if the operation succeeded, FALSE otherwise.

Implementation

@ffi.Native<
  FPDF_BOOL Function(
    FPDF_DOCUMENT,
    FPDF_PAGEOBJECT,
    FPDF_PAGEOBJECTMARK,
    FPDF_BYTESTRING,
    ffi.Pointer<ffi.UnsignedChar>,
    ffi.UnsignedLong,
  )
>()
external int FPDFPageObjMark_SetBlobParam(
  FPDF_DOCUMENT document,
  FPDF_PAGEOBJECT page_object,
  FPDF_PAGEOBJECTMARK mark,
  FPDF_BYTESTRING key,
  ffi.Pointer<ffi.UnsignedChar> value,
  int value_len,
);