Refactored the `url_fetcher` argument for `write_pdf` to an attribute of the `Document` class