Extracting pdf parsing logic to own gem