Questions tagged [xhtmlrenderer]

XHtmlRenderer (also called Flying Saucer) takes XML or XHTML and applies CSS 2.1-compliant stylesheets to it, in order to render to PDF (via iText), images, and on-screen using Swing or SWT.

Synonym for .

57 questions
0
votes
3 answers

no image displayed using Flying Saucer API in maven project

I am using Flying Saucer API with iText PDF to convert HTML content to PDF. This requires the following libraries: core-renderer.jar iText-2.0.8.jar Since the library doesn't support input type checkbox so I am using checkbox image to render in…
sjain
  • 23,126
  • 28
  • 107
  • 185
0
votes
1 answer

XHMTL rendered produces an empty pdf file

I'm using ITextRenderer() method to convert an xhtml code to pdf in java. This is my code: ITextRenderer renderer = new ITextRenderer(); renderer.setDocumentFromString(XHTML.toString()); renderer.layout(); final ByteArrayOutputStream baos = new…
zinon
  • 4,427
  • 14
  • 70
  • 112
0
votes
1 answer

Generation of Telugu PDF from HTML using ITextRenderer does not getting exact characters?

Generation of Telugu PDF from HTML using ITextRenderer does not getting exact characters? Getting broken charecter(expected charecters వినియోగించుకోకపోయినట్లయితే ) in the pdf. attached screen shot.enter image description here We are using below code…
0
votes
0 answers

htmlRenderer.PDFSharp not converting labels

I am trying to get familiar with htmlRenderer.pdfsharp and have come across an issue that I am trying to figure out. It is not rendering the following HTML: The code I am using to generate the PDF is from…
trkghost
  • 25
  • 6
0
votes
2 answers

flying saucer (xhtmlrenderer) requests image 4 times

in my xhtml i have the following: ... ... and I render like so: ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(XMLResource.load(in).getDocument(), url); renderer.layout(); renderer.createPDF(out); the…
pstanton
  • 35,033
  • 24
  • 126
  • 168
0
votes
1 answer

flying saucer (xhtmlrenderer) out of memory

I'm trying to use flying saucer to create a very large PDF and it seems to be running out of memory. below are a couple of stack traces which suggest to me that flying saucer is not completely scalable... or am i doing something…
pstanton
  • 35,033
  • 24
  • 126
  • 168
0
votes
1 answer

Flying Saucer - Can not caught IOException getting Stream Closed

I am provoking a CSS file load error for internal porpuses, to see if it handles a problem like this. The code that I have is this, and when it arrives at renderer.setDocument(), a method from ITextRenderer class, it throws an uncaughtable…
0
votes
0 answers

Error using iTextPDF and xhtmlrenderer, java.lang.NoClassDefFoundError: com/lowagie/text/pdf/PdfTemplate

I am testing ItexPDF with XHTMLRendered to parse a web to a pdf and got this error java.lang.NoClassDefFoundError:…
Alexev
  • 157
  • 2
  • 19
0
votes
0 answers

xhtmlrenderer optimizations :css taking too much time

I'm using flying saucer xhtmlrenderer to generate pdf from xhtml. The issues i'm facing with it is that xhtmlrenderer is taking too much time to generate pdf when css files are large or there is too much css. I tried to generate pdf with and…
0
votes
2 answers

how to generate pdf from xhtml page dynamically using itext+flying saucer with java

I am using iText+flying saucer for the first time with xhtml pages using JSF 2.0 for simple registration form with regular input fields like firstName,lastName,phone number etc.Once user enters all the data and click on "NEXT" button I have to…
mdp
  • 815
  • 4
  • 17
  • 32
0
votes
1 answer

Is it possible to create vertical text in PDF width XHtmlRenderer?

Like this one: CSS Vertical Text But it uses browser specific CSS extensions, so I'm wondering if it works.
Zeemee
  • 10,486
  • 14
  • 51
  • 81
0
votes
1 answer

Flying Saucer(xhtmlrenderer) word-split

I am getting a bug with Flying Saucer(xhtmlrenderer) where a word at the end of a line gets split across two lines, eg. thinking gets split into thin king, with king appearing at the beginning of the following line. This is very puzzling since the…
aram063
  • 1,067
  • 13
  • 19
1 2 3
4