Could you have the set methods return the Pdfcrowd object?
Currently in PHP you set attributes of the class as follows:
$pdfCrowd = new Pdfcrowd;
$pdfCrowd->setPageWidth('11in');
$pdfCrowd->setPageHeight('8.5in');
$pdfCrowd->setPageMargins('.5in', '.5in', '.5in', '.5in');
$pdfCrowd->usePrintMedia(true);
$pdfCrowd->setInitialPdfZoomType(2);
$pdfCrowd->setPdfScalingFactor(1);
$pdfCrowd->setHtmlZoom(200);
If each of the set methods returned the object (for example: return $this;) the code would look like this:
$pdfCrowd = new Pdfcrowd;
$pdfCrowd->setPageWidth('11in')
->setPageHeight('8.5in')
->setPageMargins('.5in', '.5in', '.5in', '.5in')
->usePrintMedia(true)
->setInitialPdfZoomType(2)
->setPdfScalingFactor(1)
->setHtmlZoom(200);
A little cleaner and easier to read.