• Following no one
  • Nothing Unseen
  • Someone Random
  • Everyone
  • Events
 

Serhii   -   Follow Person   Add Another Site   Edit
Sergi Pérez   
Picasa photos


Delicious/serhii
Format Factory - Free media file format converter   Yesterday
WinFF - Free Video Converter   77 days ago
the Web Service, SOA and SOAP Testing Tool - soapUI   81 days ago
User Serhii - Stack Overflow
Comment by Serhii on Using [0,1] versus ["Y","N"] versus ["T","F"] in a logical/boolean database field?   55 days ago

+1 for mentioning other languages

Answer by Serhii for Rewrite spring-security redirect URLs   55 days ago

Spring security is doing the redirect with an absolute URL like http://example.org/-/login

Try to use an outbound-rule without the ^ start of string marker to match the absolute url generated by spring.

<outbound-rule> <from>/-/login(.*)$</from> <to>/login$1</to> </outbound-rule>

Answer by Serhii for convert HTML ( having Javascript ) to PDF using java / javascript   91 days ago

We are also looking for some way to convert html files with complex javascript to pdf. The javasript in our files contains document.write and DOM manipulation.

We have tried using a combination of HtmlUnit to parse the files and Flying Saucer to render to pdf but the results are not satisfactory enough. It works, but in our case the pdf is not close enough to what the user wants.

If you want to try this out, here is a code snippet to convert a local html file to pdf.

URL url = new File("test.html").toURI().toURL(); WebClient webClient = new WebClient(); HtmlPage page = webClient.getPage(url); OutputStream os = null; try{ os = new FileOutputStream("test.pdf"); ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(page,url.toString()); renderer.layout(); renderer.createPDF(os); } finally{ if(os != null) os.close(); }

serhii's shared items in Google Reader
falling in love...   13 days ago

fffffound

Para Brian Eno la música grabada es grasa de ballena   19 days ago
XKCD - Random Number - Stack Overflow   40 days ago

SO ja no es el que era.... :-D


Learn about this site | Contact
API | Source Code
© 2008 Christopher Blizzard