added system.h for pdf_2