Forum Replies Created
-
AuthorPosts
-
in reply to: Troubleshooting October 28, 2016 at 09:14#27105
We implemented a custom ResourceProvider that load images then resize them to fit our required size
In some special use case, when resize failed a javax.imageio.IIOException is thrown then it causes PD4ML to run into Out Of Memory (Tested with JVM 2Gb)
It seems due to an infinite loop
Dump shows millions of instances org.zefer.html.doc.view.b
Thread stack is :
at java.util.Arrays.copyOf([Ljava/lang/Object;I)[Ljava/lang/Object; (Arrays.java:3181)
at java.util.ArrayList.toArray()[Ljava/lang/Object; (ArrayList.java:376)
at org.zefer.html.doc.view.i$_b.o00000(I)I (Unknown Source)
at org.zefer.html.doc.view.i.Õ00000(I)I (Unknown Source)
at org.zefer.html.doc.db.o00000(IZ)I (Unknown Source)
at org.zefer.html.doc.db.ÖÒ0000(I)I (Unknown Source)
at org.zefer.html.doc.db.o00000(ILorg/zefer/html/doc/view/b;)Lorg/zefer/html/doc/view/b; (Unknown Source)
at org.zefer.html.doc.db.o00000(Lorg/zefer/html/util/d;I)V (Unknown Source)
at org.zefer.html.doc.view.d.o00000(Lorg/zefer/html/doc/h;Lorg/zefer/html/util/d;I)V (Unknown Source)
at org.zefer.html.doc.db.o00000(Lorg/zefer/html/util/d;I)V (Unknown Source)
at org.zefer.html.doc.view.d.o00000(Lorg/zefer/html/doc/h;Lorg/zefer/html/util/d;I)V (Unknown Source)
at org.zefer.html.doc.db.o00000(Lorg/zefer/html/util/d;I)V (Unknown Source)
at org.zefer.html.doc.view.d.o00000(Lorg/zefer/html/doc/h;Lorg/zefer/html/util/d;I)V (Unknown Source)
at org.zefer.html.doc.db.o00000(Lorg/zefer/html/util/d;I)V (Unknown Source)
at org.zefer.html.doc.Document.layout(I)V (Unknown Source)
at org.zefer.pd4ml.PD4ML.o00000()V (Unknown Source)
at org.zefer.pd4ml.PD4ML.render(Ljava/io/StringReader;Ljava/io/OutputStream;)V (Unknown Source)in reply to: PD4ML Tips & Tricks November 3, 2016 at 11:58#27106Hi,
Unable to see some of Romanian characters ( š, ș, ť ) in PDF.
Characters are not displayed in PDF. Please suggest what configuration missing.Thanks in advance.
Regards,
Santoshin reply to: General questions / FAQ November 3, 2016 at 13:43#27107Hi,
we would like to use the java: protocol lo load other resources than images : CSS/JS etc…
Is-it something you can include in the next release ?Thanks
in reply to: Support of java: protocol for other resources than images November 3, 2016 at 15:20#29949Did you test a load of CSS by “java:” protocol and it did not work?
What does it write to STDOUT in debug mode?
in reply to: Css not getting apply to a specific page only November 3, 2016 at 15:24#29942PD4ML only partially implements HTML/CSS spec – some CSS properties may take no effect. So the answer depends on CSS style and HTML structure of your document.
Also I would recommend to give a try to the most actual v399fx2 – since v398 it utilizes a new CSS parser/cascading engine.
in reply to: Unable to see some of Romanian characters in pdf November 4, 2016 at 13:50#29947Hi,
Some of Romanian characters(ș, ț, ă, î, â .. ) are not displayed in pdf, Characters ș and ț are missing in pdf. other Romanian characters are displaying properly.
Regards,
Santoshin reply to: General questions / FAQ November 4, 2016 at 14:45#27108Does pd4ml support merging of several PDFs to one?
in reply to: ClassCastException with endless loop in PDF page generation November 7, 2016 at 13:45#29933The original problem seems gone now, but we have notice a very similar one, during the simplification of the HTML for another exception (I’ll post that one separately).
I have a HTML that causes an endless loop around the following stacktrace:
<br /> java.util.zip.Deflater.deflateBytes(Native Method)<br /> java.util.zip.Deflater.deflate(Deflater.java:444)<br /> java.util.zip.Deflater.deflate(Deflater.java:385)<br /> org.zefer.pd4ml.pdf.f.o00000(Unknown Source)<br /> org.zefer.pd4ml.pdf.c.õO0000(Unknown Source)<br /> org.zefer.pd4ml.pdf.c.ÓÓ0000(Unknown Source)<br /> org.zefer.pd4ml.pdf.PD4Device.startNewPage(Unknown Source)<br /> org.zefer.pd4ml.PD4ML.super(Unknown Source)<br /> org.zefer.pd4ml.PD4ML.render(Unknown Source)<br />
-> Since the simplification of the HTML is a time consuming task and multiple different exceptions occur at different simplification stages, I would much prefer to send you the HTML in a less stripped-down form without publishing the entire load.
Is there somewhere I could send you the HTML causing this problem?in reply to: HTML/CSS rendering issues November 7, 2016 at 14:08#27109Hello,
the following HTML (a series of floated inline-block elements)
<br /> <html lang="de"><br /> <body><br /> <br /> <a style="display: inline-block;float: left;"></a><br /> <a style="display: inline-block;float: left;"></a><br /> <a style="display: inline-block;float: left;"></a><br /> <br /> </body><br /> </html><br />
causes an EmptyStackException in the newest fx2 version:java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:102)
at java.util.Stack.pop(Stack.java:84)
at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)
at org.zefer.pd4ml.PD4ML.super(Unknown Source)
at org.zefer.pd4ml.PD4ML.render(Unknown Source)Please let me know when it’s fixed or if we cal deliver more information.
in reply to: Support of java: protocol for other resources than images November 7, 2016 at 15:02#29950Hi,
my sample code :String s = ““;
PD4ML pd4ml = new PD4ML();
pd4ml.render(new StringReader(s), new NullOutputStream());this throws an exception:
java.net.MalformedURLException: unknown protocol: java
at java.net.URL.(URL.java:593)
at java.net.URL.(URL.java:483)
at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)
at org.zefer.pd4ml.PD4ML.super(Unknown Source)
at org.zefer.pd4ml.PD4ML.render(Unknown Source)
at Test.main(Test.java:13)in reply to: Support of java: protocol for other resources than images November 17, 2016 at 08:36in reply to: Out of memory when ResourceProvider throws an IIOException November 17, 2016 at 08:37in reply to: Troubleshooting November 17, 2016 at 13:52#27110We have a page which display the organizational chart.
The page looks perfect with all the CSS in normal JSP page but when we try to convert it into PDF, it displays data from the first
only. Rest of the data is not displayed/chopped off. We have tried setting the page orientation to Landscape and Portrait. Tried setting the screenwidth too but nothing worked.
Do we have Horizontal scrolling in pd4ml?
What could be the issue?
Thanks,
Lettishain reply to: Issue with Horizontal Scrolling November 17, 2016 at 16:12#29964Please send an HTML sample with its resulting PDF to support pd4ml com
in reply to: Out of memory when ResourceProvider throws an IIOException November 17, 2016 at 16:14#29944How big is the original image (dimensions, file size)? What are the dimensions after the resizing?
-
AuthorPosts