Create a new PDF resource, using default error handling and memory management.
See also pdf_close().