Converts a HTML string to PDF using a base URL to resolve external
resources and returns the rendered PDF document as an object of the
Document class that can be further used in other operations
requiring this type of objects
Converts an URL to PDF and returns the rendered PDF document as an object
of the Document class that can be further used in other
operations requiring this type of objects