See section 4.11.1 on page 108: pdf.mapfile(<string> map file) pdf.mapfile(<string> map line) I suppose that the latter function should be pdf.mapline().