Profile Topics Started Replies Created Engagements Forum Replies Created Viewing 3 posts - 1 through 3 (of 3 total) Author Posts maxou in reply to: org/w3c/dom/* classes in ss_css2.jar July 13, 2010 at 13:35 #28100 Okay, I understand. 😉 maxou in reply to: Open an explorer popup with save/open July 13, 2010 at 13:34 #28104 Ok, thanks. It was difficult but I succeed. It is a little bit sad and it need to be ameliorated but it works. A simple example : int userSpaceWidth = 780; File output = new File("document.pdf"); FileOutputStream fos = new FileOutputStream(output); PD4ML pd4ml = new PD4ML(); pd4ml.setHtmlWidth(userSpaceWidth); pd4ml.render("http://www.w3.org/", fos); response.setContentType("application/pdf"); response.setHeader("Content-Disposition", "attachment; filename=document.pdf"); FileInputStream fileInputStream = new FileInputStream(output); int i; while ((i=fileInputStream.read())!=-1) { response.getOutputStream().write(i); } response.getOutputStream().flush(); response.getOutputStream().close(); fileInputStream.close(); output.delete(); maxou in reply to: org/w3c/dom/* classes in ss_css2.jar July 13, 2010 at 12:08 #28098 I’m not sure of that but it seems that ss_css2.jar is the equivalant of CSS Parser 0.9.4. Today, there is the version 0.9.5. Maybe it is better. Else, LGPL, the CSS Parser license, authorize you (and everybody) to modify it if you redistribute the modified library with the same license. Author Posts Viewing 3 posts - 1 through 3 (of 3 total)