added output_pdf example