Forum Replies Created

Viewing 15 posts - 3,691 through 3,705 (of 4,249 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: Batik implementation
    #30211

    When PD4ML encounters tag it tries to instantiate BatikSvgCustomTag class. If Batik library is missing it fails and fallbacks to our built-in proprietary SVG renderer.

    No explicit API calls needed to activate it.

    Batik is more strict regarding SVG syntax, so if it starts to panic e.g. because of missing namespace xmlns=”http://www.w3.org/2000/svg&#8221; in <svg> tag – that means Batik is definitely in action.

    You may explicitly disable Batik by com.pd4ml.plugins.BatikSvgCustomTag.disable = true;

    • This reply was modified 5 years, 5 months ago by PD4ML.
    • This reply was modified 5 years, 5 months ago by PD4ML.
    in reply to: Batik implementation
    #30212

    Really great information
    web design company

    in reply to: Licensing / Purchasing of PD4ML
    #33407

    Hi

    Does a single license include the possibility of deployment to a dev, QA/test AND production application server by any chance?

    thanks

    in reply to: Single License Question
    #33408

    Prior to PD4ML v4 our licensing model required to purchase an additional single license to cover development environment. For v4 we removed the requirement, however there are opinions here to return it back. We are collecting statistics now to make the final decision later.

    If you order a single license right now, it will also cover your DEV needs – according to the current licensing terms. PD4ML Volume licenses (now they are called PD4ML Dev Site) always covered and are going to cover DEV environment.

    in reply to: Single License Question
    #33409

    Great, thanks for the information.

    in reply to: Technical questions / Troubleshooting
    #33493

    Apparently “colspan” is not a valid attribute for “TD” HTML. But why I’m getting a OutOfMemoryError error?

    error log:

    TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}

    java.lang.OutOfMemoryError: GC overhead limit exceeded
    at org.zefer.html.parser.g.o00000(Unknown Source)
    at org.zefer.html.parser.b.õo0000(Unknown Source)
    at org.zefer.html.parser.b.ÔÒ0000(Unknown Source)
    at org.zefer.html.parser.f.oo0000(Unknown Source)
    at org.zefer.html.parser.f.intsuper(Unknown Source)
    at org.zefer.html.parser.f.ö00000(Unknown Source)
    at org.zefer.html.parser.f.öO0000(Unknown Source)
    at org.zefer.html.parser.f.ÔO0000(Unknown Source)
    at org.zefer.html.doc.PD4MLHtmlParser.parse(Unknown Source)
    at org.zefer.html.doc.PD4MLHtmlParser.parse(Unknown Source)
    at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)
    at org.zefer.html.doc.e.super(Unknown Source)
    at org.zefer.html.doc.eb.super(Unknown Source)
    at org.zefer.html.doc.r.super(Unknown Source)
    at org.zefer.html.doc.r.Òô0000(Unknown Source)
    at org.zefer.html.doc.o.Ò00000(Unknown Source)
    at org.zefer.html.doc.o.super(Unknown Source)
    at org.zefer.html.doc.view.d.o00000(Unknown Source)
    at org.zefer.html.doc.eb.super(Unknown Source)
    at org.zefer.html.doc.view.d.o00000(Unknown Source)
    at org.zefer.html.doc.eb.super(Unknown Source)
    at org.zefer.html.doc.view.d.o00000(Unknown Source)
    at org.zefer.html.doc.eb.super(Unknown Source)
    at org.zefer.html.doc.Document.layout(Unknown Source)
    at org.zefer.html.doc.e.super(Unknown Source)
    at org.zefer.html.doc.eb.super(Unknown Source)
    at org.zefer.html.doc.r.super(Unknown Source)
    at org.zefer.html.doc.r.Òô0000(Unknown Source)
    at org.zefer.html.doc.o.Ò00000(Unknown Source)
    at org.zefer.html.doc.o.super(Unknown Source)
    at org.zefer.html.doc.view.d.o00000(Unknown Source)
    at org.zefer.html.doc.eb.super(Unknown Source)
    TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}

    java.lang.OutOfMemoryError: GC overhead limit exceeded
    at org.zefer.html.parser.g.o00000(Unknown Source)
    at org.zefer.html.parser.b.õo0000(Unknown Source)
    at org.zefer.html.parser.b.ÔÒ0000(Unknown Source)
    at org.zefer.html.parser.f.oo0000(Unknown Source)
    at org.zefer.html.parser.f.öO0000(Unknown Source)
    at org.zefer.html.parser.f.ÔO0000(Unknown Source)
    at org.zefer.html.doc.PD4MLHtmlParser.parse(Unknown Source)
    at org.zefer.html.doc.PD4MLHtmlParser.parse(Unknown Source)
    at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)
    at org.zefer.html.doc.e.super(Unknown Source)
    at org.zefer.html.doc.eb.super(Unknown Source)
    at org.zefer.html.doc.r.super(Unknown Source)
    at org.zefer.html.doc.r.Ó00000(Unknown Source)
    at org.zefer.html.doc.o.Ò00000(Unknown Source)
    at org.zefer.html.doc.o.super(Unknown Source)
    at org.zefer.html.doc.view.d.o00000(Unknown Source)
    at org.zefer.html.doc.eb.super(Unknown Source)
    at org.zefer.html.doc.view.d.o00000(Unknown Source)
    at org.zefer.html.doc.eb.super(Unknown Source)
    at org.zefer.html.doc.view.d.o00000(Unknown Source)
    at org.zefer.html.doc.eb.super(Unknown Source)
    at org.zefer.html.doc.Document.layout(Unknown Source)
    at org.zefer.html.doc.e.super(Unknown Source)
    at org.zefer.html.doc.eb.super(Unknown Source)
    at org.zefer.html.doc.r.super(Unknown Source)
    at org.zefer.html.doc.r.Òô0000(Unknown Source)
    at org.zefer.html.doc.o.Ò00000(Unknown Source)
    at org.zefer.html.doc.o.super(Unknown Source)
    at org.zefer.html.doc.view.d.o00000(Unknown Source)
    at org.zefer.html.doc.eb.super(Unknown Source)
    at org.zefer.html.doc.view.d.o00000(Unknown Source)
    at org.zefer.html.doc.eb.super(Unknown Source)
    TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}

    java.lang.OutOfMemoryError: GC overhead limit exceeded
    TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}

    java.lang.OutOfMemoryError: GC overhead limit exceeded
    TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}

    java.lang.OutOfMemoryError: GC overhead limit exceeded
    TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}

    java.lang.OutOfMemoryError: GC overhead limit exceeded
    TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}

    java.lang.OutOfMemoryError: GC overhead limit exceeded
    TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}

    java.lang.OutOfMemoryError: GC overhead limit exceeded
    TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}

    java.lang.OutOfMemoryError: GC overhead limit exceeded
    TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}

    java.lang.OutOfMemoryError: GC overhead limit exceeded
    TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}

    java.lang.OutOfMemoryError: GC overhead limit exceeded
    TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}

    java.lang.OutOfMemoryError: Java heap space
    TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}

    java.lang.OutOfMemoryError: GC overhead limit exceeded
    TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}

    java.lang.OutOfMemoryError: GC overhead limit exceeded

    in reply to: java.lang.OutOfMemoryError
    #33494

    In fact “colspan” is a valid attribute for TD and it does not seem it causes the exception. OutOfMemoryError is an indication of a resource (memory) exhaustion.

    How big is the source HTML document? Do you run PD4ML with -Xmx??? JVM parameter?

    in reply to: Technical questions / Troubleshooting
    #33496

    Hi,

    is there any way to emulate the behaviour of enableSmartTableBreaks() in PD4ML v4?

    Thanks

    in reply to: Technical questions / Troubleshooting
    #33639

    Hi ,
    When converted an html file with Arabic text , resulting pdf contains on ?????? instead of actual text

    Attachments:
    You must be logged in to view attached files.
    in reply to: enableSmartTableBreaks
    #33644

    Hi! In PD4ML v4 smartTableBreaks mode can be achieved with CSS properties and HTML structure.

    1. set TR { page-break-inside: avoid } CSS style
    2. Define <thead> table section with row(s) consists of TH cells only

    • This reply was modified 5 years, 4 months ago by PD4ML.
    in reply to: Arabic text not displaying properly
    #33646

    In order to output non-Latin text, you need to configure TTF embedding. See https://pd4ml.tech/pdf-fonts/

    in reply to: Technical questions / Troubleshooting
    #33647

    Hi,

    We are in process of buying pd4ml UA license. So currently, we are performing some tests with the demo jar (pd4ml v4.0.5-SNAPSHOT).
    When border-radius is specified along with background-color for an element, background-color is being applied to the complete box, not taking into consideration the border-radius specified.
    Please find the attached markup and the pdf generated with the markup in attachments

    Thanks,
    Rekha

    Attachments:
    You must be logged in to view attached files.
    in reply to: border-radius with back-ground color not working properly
    #33649

    Attaching the markup
    <html>
    <head>
    <style>
    body{
    background-color: #cccccc;
    }
    button{
    border: 1px solid blue;
    border-radius: 20px;
    background-color: #ffffff;
    height: 30px;
    }
    </style>
    </head>

    <body>
    <button> Button </button>
    </body>
    </html>

    • This reply was modified 5 years, 4 months ago by Rekha Tavvala. Reason: Not able to attach markup
    in reply to: Technical questions / Troubleshooting
    #33651

    Hi,

    We are in process of buying pd4ml UA license. So currently, we are performing some tests with the demo jar (pd4ml v4.0.5-SNAPSHOT).
    When external stylesheet is present in <body> in html markup, the css is not being parsed whereas the stylesheet if mentioned within <head> is working properly.
    Markup being used:
    <html>
    <head>
    <link rel=”stylesheet” type=”text/css” href=”TestCss1.css”/>
    </head>
    <body>

    <link rel=”stylesheet” type=”text/css” href=”TestCss2.css”/>

    <p> I am a para </p>
    </body>
    </html>

    Here the css present in TestCss1.css is getting applied in PDF. But the css present in TestCss2.css is NOT getting applied in PDF.
    With pd4ml-3.1 (V3), this seems to be working. So is this change made deliberately in v4? Or can we expect this usecase to be fixed in V4? Please suggest.

    Thanks,
    Rekha

Viewing 15 posts - 3,691 through 3,705 (of 4,249 total)