Closes the PostScript document. It will not close a file pointer
passed to PS_open_fp(3). It only closes files which were opened by
This function outputs a last line into
the PostScript document, which is a PostScript comment containing
the number of pages. It also writes the bookmark tree.