Rule-based data extraction from PDF files