PDFLib Question

Anybody familiar with PHP5 and PDFLib?

I am having a hard time finding code that explains how to save the pdf get_buffer data to a PDF and not display it.

All the PHP5 examples show how to display it, but I can’t see how you can just save the PDF file.