Forum Replies Created

Viewing 15 posts - 3,286 through 3,300 (of 4,246 total)
  • Author
    Posts
  • in reply to: Troubleshooting
    #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
    #27106

    Hi,

    Unable to see some of Romanian characters ( š, ș, ť ) in PDF.
    Characters are not displayed in PDF. Please suggest what configuration missing.

    Thanks in advance.

    Regards,
    Santosh

    in reply to: General questions / FAQ
    #27107

    Hi,
    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
    #29949

    Did 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
    #29942

    PD4ML 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
    #29947

    Hi,

    Some of Romanian characters(ș, ț, ă, î, â .. ) are not displayed in pdf, Characters ș and ț are missing in pdf. other Romanian characters are displaying properly.

    Regards,
    Santosh

    in reply to: General questions / FAQ
    #27108

    Does pd4ml support merging of several PDFs to one?

    in reply to: ClassCastException with endless loop in PDF page generation
    #29933

    The 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
    #27109

    Hello,
    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
    #29950

    Hi,
    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
    #29951

    Hi,
    do you have some news ?

    Eric

    in reply to: Out of memory when ResourceProvider throws an IIOException
    #29943

    Hi,
    do you have some news ?

    Thanks

    in reply to: Troubleshooting
    #27110

    We 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,
    Lettisha

    in reply to: Issue with Horizontal Scrolling
    #29964

    Please send an HTML sample with its resulting PDF to support pd4ml com

    in reply to: Out of memory when ResourceProvider throws an IIOException
    #29944

    How big is the original image (dimensions, file size)? What are the dimensions after the resizing?

Viewing 15 posts - 3,286 through 3,300 (of 4,246 total)