Make PDFDocument as top-level class of the PDF library LogEnabled. (Reason: It accesses TTFFile which is LogEnabled, so there must be some way to pass a logger. This will be revisited when Avalonization is underway.) Proper resolving of LazyFonts. Add helper method to apply encryption if it's enabled.