Forum Replies Created

Viewing 15 posts - 931 through 945 (of 1,410 total)
  • Author
    Posts
  • in reply to: Error while rendering PDF
    #28484

    I did not wrote it accepts no PNG. Normally it has no problems with PNGs. But it could be that:
    1. your particular image has corrupted colorspace information
    2. there are bugs in the recent application update (the development build you evaluate did not pass QA yet).

    in reply to: Not generating a pdf/a with option
    #28173

    There is no PDF/A-capable evaluation version of PD4ML available for download.
    Please contact support pd4ml com to get one.

    in reply to: Nested CSS definitions not rendered
    #27479

    It depends on the issue date of your license. Please contact sales pd4ml com

    in reply to: Nested CSS definitions not rendered
    #27477

    PD4ML does not support <tbody> tag. It simply ignores it.

    So TBODY.ui-datatable-data condition makes the selector to fail.
    As a workaround I would recommend to remove .ui-datatable-data from there.

    .ui-datatable td, .ui-datatable .ui-datatable-data-empty td{
    border-color:inherit;
    border-style:solid;
    border-width:1px;
    padding: 4px 10px;
    }

    in reply to: Nested CSS definitions not rendered
    #27475

    In the HTML I see no any element of class ui-datatable-data-empty, so the selector always returns nothing.

    If your concern is about borders of empty cells, it can be solved with

    TABLE { empty-cells: show }

    in reply to: Error while rendering PDF
    #28482

    It seems the exception is thrown by an image colorspace processing. Can you please temporarily comment images out from the document? Does it help?

    If yes, it would be nice if you send us the images that cause the problem.

    in reply to: fonts included in the html
    #28467

    You need to pass either a directory name of the font dir
    pd4ml.useTTF("/windows/fonts",true);
    or refer to a resource, available via the classloader (distinguished by “java:” prefix)
    pd4ml.useTTF("java:fonts",true);

    In both cases pd4fonts.properties file has to be generated in advance with
    java -jar pd4ml.jar -configure.fonts ...
    call.

    in reply to: Nested CSS definitions not rendered
    #27473

    Could you please also publish an HTML snippet, you want to apply the CSS to.

    Also, to make sure the CSS selector does not work, try to temporarily add any obvious CSS property, like “color: red”.

    in reply to: Nested CSS definitions not rendered
    #27471

    We had no reason not to include it, so PD4ML does support the feature.

    in reply to: dir=rtl is not working
    #28462

    The forthcoming version is intended to resolve the issue.

    in reply to: fonts included in the html
    #28465

    HTML does not provide fonts. It only refers to fonts, present on a client PC (where a client browser has physical access to the fonts).

    In order to add fonts to a PDF document, PD4ML needs an access to font files (to parse the TTFs, extract used glyphs and embed the extracted subset to PDF document).

    JVM may use fonts in Java applications, but it offers no access to physical font files. In order to workaround the restriction, you need to accept TTF embedding “complexities”.

    First I would recommend to use the standard font dir.
    pd4ml.useTTF("/windows/fonts", true);
    But before you need to index existing fonts with the command line call:
    java -jar pd4ml.jar -configure.fonts /windows/fonts

    After it works you may create a JAR file with selected fonts. But first make sure the above works.

    Also if you want to define document access permissions, you should call setPermissions() method only once:

    pd4ml.setPermissions("empty", PD4ML.AllowCopy | PD4ML.AllowModify, false);

    in reply to: How to know the total numbe of pages usiong pd4ml java api
    #28463

    You may request the number after pd4ml.render() call:

    System.out.println("pages: " + (Long)pd4ml.getLastRenderInfo(PD4Constants.PD4ML_TOTAL_PAGES));

    in reply to: Need to set a different footer for last page
    #28464

    It is not possible for limit footer appearance scope to the last page only.

    Try to define a footnote at the end of the document, instead of a footer.
    footnote text

    in reply to: Java 6.0_24b07 crashes while in finalize of PD4Device
    #28442

    > between the the download of the pdf and the crash were roundabout 50 minutes

    Ok, now the picture is a bit more clear for me. So it looks like JVM releases resources, allocated by native DLLs, before the Java class is actually garbage collected. It is strange that the garbage collecting makes that long pause – on the other hand the Java spec does not limit the time.

    Next week we plan to release an updated version – we’ll add a workaround for the issue.

    in reply to: Java 6.0_24b07 crashes while in finalize of PD4Device
    #28440

    In one of the previous posts I asked you to try to identify the image, which crashes the VM. It would help us to find a solution.

    If it happens with any PNG image, it is definitely a inconsistency/configuration problem of your JDK.

    In any case we have a possible workaround: to (conditionally) disable color profiles extraction. But it would be better to avoid that.

Viewing 15 posts - 931 through 945 (of 1,410 total)