Added a builder pattern for pdfreader method