initialize pdf_startoffset