offer pdf function