initializer for pdf