pdfCloseFile
Close the currently open PDF file.
void pdfCloseFile(PDFViewerHandle viewer)
This function closes the currently open PDF file (which was opened
with
pdfLoadFile
, pdfLoadMem
, etc.), if any, leaving a blank
window.
You are not required to call pdfCloseFile
before opening
another file. If you call pdfLoadFile
on a viewer which already
has an open file, the current file will simply be replaced by the new
one.
IMPORTANT: The PDF file on disk (for pdfLoadFile
, etc.) or
in memory (for pdfLoadMem
, etc.), or the PDF stream (for
pdfLoadStream
, etc.) must not be deleted, modified, or freed until
after pdfCloseFile
is called.
C:
pdfCloseFile(viewer);