Added documentation for toPDF()