dmItemHasOCRText

Signature

http://CdmServer.com:port/dmwebservices/index.php?q=dmItemHasOCRText/alias/pointer/format

  • alias is a collection alias
  • pointer is the id of the item to check for OCR text
  • format can be xml or json or function. When calling the method directly through the URL, xml or json should be used. When calling the method from another function within the API (as done in dmGetItemInfo), function should be used.

Returns

An array with a single item, hasOCR, with a value of 1 (has OCR text) or 0 (no OCR text).

Example

http://CdmServer.com:port/dmwebservices/index.php?q=dmItemHasOCRText/mycollection/7/json

returns:

Array([hasOCR] => 1)

Note

This function is also called directly from dmGetItemInfo to remove the need for additional API calls.