Dompdf is used to generate PDF files. Please visit http://code.google.com/p/dompdf/ for more info.
There's an example to save PDF in disk at this page: http://code.google.com/p/dompdf/wiki/FAQ.
We have tested output method and is working ok. You must be doing something wrong in your code.
Regards.