I've used sharpPDF with good results in some projects. Works with with .NET.
In PHP code I've also used TCPDF. It works fine (and in formatting was actually far more flexible than sharpPDF), but is very, very slow. For generating a page or two it's fine, but I was trying to output a 90k+...