use PDF file as input