improved scraping on electoral pdf file