Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

void wxPdfDocument::Close (  ) [virtual]

Terminates the PDF document.

It is not necessary to call this method explicitly because SaveAsFile() does it automatically. If the document contains no page, AddPage() is called to prevent from getting an invalid document.

See also:
Open(), SaveAsFile()

Definition at line 1946 of file pdfdoc.cpp.

References AddPage(), EndDoc(), EndPage(), Footer(), m_inFooter, m_page, and m_state.

Referenced by CloseAndGetBuffer(), and SaveAsFile().

{
  // Terminate document
  if (m_state == 3)
  {
    return;
  }
  if (m_page == 0)
  {
    AddPage();
  }

  // Page footer
  m_inFooter = true;
  Footer();
  m_inFooter = false;

  // Close page
  EndPage();

  // Close document
  EndDoc();
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index