This is probably not the right way to check whether Cairo can generate PDFs.