I needed to give a base URL when creating PDF from HTML… 

So, I just added a method, and made very small changes to the initialiser to use the given base URL (or nil) instead of a systematic nil.