Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26205

    HI I’m trying to convert an HTML file to PDF using pd4ml 3.5 on MacOSX 10.4.11
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-275)

    We’re getting an exception and the file is not readable.

    The exception is:
    Exception in thread “main” java.lang.NullPointerException
    at org.zefer.html.doc.b.i.String(Unknown Source)
    at org.zefer.html.doc.x.o00000(Unknown Source)
    at org.zefer.html.doc.b.d.o00000(Unknown Source)
    at org.zefer.html.doc.x.o00000(Unknown Source)
    at org.zefer.html.doc.b.d.o00000(Unknown Source)
    at org.zefer.html.doc.x.o00000(Unknown Source)
    at org.zefer.html.doc.b.d.o00000(Unknown Source)
    at org.zefer.html.doc.x.o00000(Unknown Source)
    at org.zefer.html.doc.Document.paint(Unknown Source)
    at org.zefer.pd4ml.PD4ML.o00000(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at org.zefer.pd4ml.tools.PD4Browser$PD4Converter.o00000(Unknown Source)
    at org.zefer.pd4ml.tools.PD4Browser$PD4Converter.access$800(Unknown Source)
    at org.zefer.pd4ml.tools.PD4Browser.main(Unknown Source)

    We’ve checked the CSS and HTML but not sure what to look for.

    Any suggestions appreciated

    #27329

    OK, more information…

    The problem is an img tag with style information.

    The website docs say img style, left and top are all supported (e.g. since v350)
    The trial 3.50 version I have has docs that say that left and top are not supported at all.

    Which is it?
    Is the trial download not the 3.5 version?
    If not, can we get a trial version which is?
    If it is, why isn’t this working?

    thanks!
    m

    #27330

    It is a bug in v350 code and it seems the actual development build v351 fixes the problem. I’ve just sent it to you by email to test on your side.

    A temporal v350 workaroung for the problem is to absolutely position not the image, but its enclosing DIV:

    [language=xml:7ove3m5j]

    [/language:7ove3m5j]

    #27331

    Thanks, when I try this div style it works for 3.5 and 3.51

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.