Text documents: from PDF to vector images