Name
  doc:LoadJPEGImage -- load external JPEG image
Synopsis

      img = doc:LoadJPEGImage(filename)

Function
  `doc:LoadJPEGImage()` loads an external JPEG image file.

  When `doc:LoadJPEGImage()` succeeds, it returns the handle of an image object. Otherwise, it returns `Nil` and the error handler is called.

Inputs
  filename
    path to a JPEG image file
Results
  img
    handle to an image
Errors
  `#HPDF_INVALID_DOCUMENT` - An invalid document handle was set.

  `#HPDF_FAILED_TO_ALLOC_MEM` - Memory allocation failed.

  `#HPDF_UNSUPPORTED_JPEG_FORMAT` - Unsupported JPEG image format.

Show TOC