only use cairo_pdf if it's available