basic sample to convert a xhtml file to pdf