Forum Replies Created

Viewing 15 posts - 1 through 15 (of 583 total)
  • Author
    Posts
  • in reply to: Batik implementation
    #30210

    Hi there,

    We’ve got the Batik-all dependency setup fine. The issue is more with the Java steps required to use Batik within PD4ML. The code that we have is essentially as follows:

    this.pd4ml = new com.pd4ml.PD4ML();
    
    Dimension dimension= PD4Constants.A4;
    pd4ml.setPageSize(new PageSize(dimension.width, dimension.height));
    
    Insets insets = new java.awt.Insets(5,5,5,5);
    pd4ml.setPageMargins(new PageMargins(insets.left, insets.top, insets.right, insets.bottom));
    
    pd4ml.readHTML(is);
    pd4ml.writePDF(baos);

    I’m not exactly sure where Batik fits in this process, though I’d imagine it’d be somewhere between readHTML and writePDF.

    To clarify exactly what the issue is, we are trying to render a SVG textpath (which doesn’t seem to be supported by the PD4ML in-built SVG renderer), so we’re trying to use Batik within the code that we currently have, but are not sure how.

    Is there a method that needs to be called in order to load Batik into PD4ML?

    Kind regards

    in reply to: TTF embedding
    #27323

    @PD4ML wrote:

    Please try to substitute your fonts jar with this one:
    https://pd4ml.com/i/allfonts.zip (34 MB!)

    unpack it and place fonts.jar to the classpath of your application (or to lib/ folder if any).
    Refer the fonts this way:
    pd4ml.useTTF("java:fonts", true);

    And make sure the HTML has a correct meta charset directive.

    Does it solve the problem?

    No it does not solve the problem

    in reply to: Why 97 PPI and not 96 PPI in this lib?
    #30217

    Please look at the code:

            <div class="square" style="height:1in;width:1in;">width 1in</div>
    <div class="square" style="width:2.54cm;">width 2.54cm</div>
    <div class="square" style="width:72pt;">width 72pt</div>
    <div class="square" style="width:96px;">width 96px</div>

    All bars should have the same width but the 96px bar is smaller… a 97px matches so i think the internal factor is wrong or rounded to much or something like that.
    A global scale should not do something on the relative size of the elements to each other 1inch = 2.54 cm; 1inch = 72 pt; 1inch = 96px <- and it looks like this is actually 1inch = 97px The match of real paper inch don't matter here.

    in reply to: Footer disappears dependent of font size
    #30215

    By the way, I tested it with font sizes from 3pt to 12pt. Just the 7pt does not work.

    in reply to: vertical-alignment
    #30204

    Hi,

    If there will be any update or new information, please write here, I keep checking this topic 🙂

    Elena

    in reply to: Floating elements are reordered
    #30189

    That’s great. The ordering is correct now.
    Unfortunately, soft hypen (shy) are always rendered, not only on line breaks.
    Is there an overview of supported feature for the 4.0 release?

    in reply to: vertical-alignment
    #30203

    Thanks a lot,
    Elena

    in reply to: vertical-alignment
    #30205

    Hello,

    We have tried the proposed workaround with position: relative; top: <inverted value of vertical-align>, unfortunately it did not work. We have tried to modify values of top manually so they would result in a good result in PDF, but did not find any rule or algorithm or coefficients that could be generally used to adjust the vertical alignment in PDF correctly.
    It would be great if you could help us solve this problem, as in the current state exported document is almost not usable.
    I am attaching the link to a sample HTML document (original with vertical-align) that we are trying to export:
    https://drive.google.com/file/d/18EWWqF7Ij_t-qQ6bf8VOY9ESTMZrQumO/view?usp=sharing. I can also provide documents with vertical-align changed to position: relative; top: … if that could help.

    Thanks in advance,
    Elena

    in reply to: PDF rendering issue with display:block
    #29422

    End of January 2019 and display:inline-block is still not working. Please fix.

    in reply to: PageBreak, total numer of pages
    #30164

    Hi,

    in other words:

    I want to do a page break but exclude the following page(s) from total number of pages ($total).

    THX!

    in reply to: Hanging Threads!
    #30162

    i use the pd4ml with version 1.0, there is no method to set TIME_OUT parameter, any suggestions to reslove it ?

    in reply to: Please help ASAP! Corrupted Chinese Character(4bytes UTF-8)
    #30193

    hi @PD4ML

    After testing v3.10.9, the 4-byte Chinese characters even are not displayed as questionmarks, but as blank characters.

    Please try these 4-bytes Chinese Character here http://www.i18nguy.com/unicode/supplementary-test.html

    Please help ASAP! Big Thanks.

    in reply to: Facing different rendering issues after upgrading PD4ML lib
    #30187

    Hi PD4ML team,

    We are also seeing a difference in default fallback fonts. Could you please let us know for version 3.10.7s2 what is the default fallback font?
    Kindly treat these queries as priority, we are getting many customer issues after the upgrade in PD4ML lib.

    Thanks,
    Yogita

    in reply to: Facing different rendering issues after upgrading PD4ML lib
    #30186

    Hi PD4ML team,

    The current upgraded version is 3.10.7s2.

    Thanks,
    Yogita

    in reply to: Is vertical-align supported?
    #30147

    Hi jamesy!

    Thanks for pointing out the list of supported CSS properties. I’ve overlooked it
    somehow (and I’m ashamed now).

    Whatever trouble I had back then it’s irrelevant by now.

    Cheers!

Viewing 15 posts - 1 through 15 (of 583 total)