URLPDFSource constructor
Creates a URLPDFSource that fetches a PDF document from the specified URL.
The url parameter must not be null or empty.
The headers parameter can be used to add custom HTTP headers to the request.
Implementation
URLPDFSource(String url, {Map<String, String>? headers})
: assert(url.isNotEmpty),
_url = url,
_headers = headers;