Close the generated PDF file, and free all document-related resources. Returns TRUE on success or FALSE on failure.
See also pdf_new().