Image Data

Each PDF image object is converted to an imagedata element:
<imagedata tag="image-tag" file="image-file-name"/>
The image tag is an arbitrary tag for this image, which will be used by image and imagemask elements to refer to the image. The image data will be written to a file in the output directory. Its name is given by the file attribute.

Masked images have an additional attribute:

<imagedata tag="image-tag" file="image-file-name" maskfile="mask-file-name"/>
The mask is stored as a separate image file. Note that PDF allows the mask to be a different resolution than the image.

Images and masks are converted based on the -imagefmt and -keepjpeg options. The image file extensions will match the format (".png", ".tiff", ".jpg").