Delete the PDF resource, and free all internal resources. Returns TRUE on success or FALSE on failure.
See also pdf_new().