DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(manager.getBaseURL());
PDFCreationListener pdfCreationListener = new XHtmlMetaToPdfInfoAdapter( doc );
renderer.setListener( pdfCreationListener );
renderer.setDocument(manager.getBaseURL());
renderer.layout();