combined API/wrapper for cairo, poppler, and image handling