Forum Replies Created

Viewing 15 posts - 301 through 315 (of 583 total)
  • Author
    Posts
  • in reply to: margin-left:auto margin-right:auto not working
    #29084

    For the time being an applying of “align:center” to a table is the only way to center it with PD4ML (however the method is not standard).

    If it does not center, probably the hosting DIV has limited width. Try to apply “width:100%” to it. Also a temporal style like “DIV { border: 1 solid tomato }” should help you to identify reasons of the non-centering.

    in reply to: Anybody had problems with PD4ML on Lion for Mac?
    #28974

    I have a genius colleague who has found the solution.

    There is a problem calling the Apple toolkit on Lion, so you have to add the following parameter to the Tomcat launch script.

    -Dawt.toolkit=sun.awt.HToolkit

    The discussion about this you can find here:
    http://blog.maestropublishing.com/?tag=mac

    in reply to: permgen leak
    #29076

    @PD4ML wrote:

    -Dpd4ml.cache.images.in.tmp.dir=true JVM flag (or an identical dynamic parameter, passed via API) forces PD4ML to immediately dump loaded image bytes to a TMP file and to set the above img = null. Now I am not sure if that is enough, bearing in mind the media tracker. Do you have an idea what needs to be done there?

    I’m not sure what needs to be done. Setting that property at the JVM level does not seem to impact the permgen leak. Also, using the API directly and calling clearCache() does not seem to help.

    An interesting observation on Glassfish is that the images (resources/icons, resources/dialogs) seem to be unpacked. Does the code traverse the classpath using ResourceAsStream and cache the PD4ML – supplied images before loading user – supplied images? I’ll take a look with VisualVM and see if these images are registered in MediaTracker.

    Being a systems architect and not a full time Java developer, I hope I’m not wandering too far off in the weeds.

    Thanks for the reply.
    /mde/

    in reply to: unix : fonts deployment ?
    #28407

    I am using pd4ml version 2.5.
    In jsp file I tried to debug using <pd4ml:transform ... debug=true> but I didn’t get any information in server log file.
    Am I doing correct way or have to do other way?
    Please help me to figure it out .

    Thanks…

    in reply to: PDF page headers/footers definition options
    #27276

    Thanks for you quick reply, this solution worked!

    in reply to: unix : fonts deployment ?
    #28405

    I have same issue.
    Did you resolve this issue?
    If yes then please help me to figure it out.

    Then very appreciate.

    in reply to: Simple text wrapping
    #28861

    I am having this exact same problem. I can’t tell from the above code, but my situation often involves non-breaking white-space characters (u00A0), which PD4ML apparently refused to break on/before/after.

    I was able to force PD4ML to not prefer breaking words at the comma over breaking words on white-space by replacing the comma character (u002C) with the ‘single low-9 quotation mark’ (u201A), which looks the same as a comma. Unfortunately, while PD4ML no longer breaks words up at the comma-like character, it’s now impossible to use CTRL-F to find numbers that you’d expect to have commas in them, and copy-pasting isn’t great either.

    in reply to: Some image not loading when converting to PDF
    #29065

    PD4ML Probe currently embeds v380fx5 – probably that is the reason. (I assume in PD4ML Probe you check generated PDF, not a web browser preview)

    I’ve just tested your HTML with fx5 – images #3 and #8 are missing in the resulting PDF.

    It seems image #3 URL returns a redirect, which is not supported.

    If I open the HTML with a web browser – only image #8 is missing. However if I copy-paste image #8 URL to the address bar of the web browser – it shows it. I’ll let you know our analyze results.

    in reply to: Some image not loading when converting to PDF
    #29064

    @PD4ML wrote:

    I guess (but not 100% sure right now) %2F and %3D codes are auto-replaced with corresponding characters ‘/’ and ‘=’. Would the replacement break the image link?

    And redirects are not supported by PD4ML.

    Could you please publish an HTML snippet to simplify testing from our side. And please let us know PD4ML version you currently use.

    one thing I’m curious is that why the html I use works perfectly in PD4ML probe?

    Thanks.

    in reply to: HTML entities in struts tags
    #29058

    I just needed escapeHtml=”false”, which is true by default.

    in reply to: PDF page headers/footers definition options
    #27274

    I’m trying to insert a footer for only page 1.

    Via API-call this can’t be done, accordering to the reference.

    So, only inline is the only option I see.

    This is my code:

    <pd4ml:page.footer scope="1" areaHeight="100">
    <div style="position: relative; float:left; top: 10px; left: 590px; font-size: 16pt; font-weight: bold;">52008</div>
    <div style="position: relative; float:left; top: 10px; left: 850px; font-size: 16pt; font-weight: bold;">20090001</div>
    </pd4ml:page.footer>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>

    …

    This part seems to be just ignorred. (page.header does work this way).

    Is this a bug, or am I doing something wrong?

    in reply to: Anybody had problems with PD4ML on Lion for Mac?
    #28972

    P.S. please forgive my slow replies

    I’ve finally configured email notifications, however, so I can reply quicker,
    though I will be on hols from 14th July

    in reply to: Anybody had problems with PD4ML on Lion for Mac?
    #28971

    I get an exception with this .jar as follows:

    java.lang.ClassNotFoundException: org.w3c.css.sac.Parser
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1484)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
    java.lang.ClassLoader.defineClass1(Native Method)
    java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2331)
    org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:976)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1451)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
    java.lang.Class.forName0(Native Method)
    java.lang.Class.forName(Class.java:169)
    org.zefer.html.doc.PD4MLHtmlParser.o00000(Unknown Source)
    org.zefer.html.doc.PD4MLHtmlParser.<init>(Unknown Source)
    org.zefer.pd4ml.PD4ML.o00000(Unknown Source)
    org.zefer.pd4ml.PD4ML.render(Unknown Source)
    org.zefer.pd4ml.PD4ML.render(Unknown Source)
    org.zefer.pd4ml.PD4ML.render(Unknown Source)
    org.zefer.pd4ml.taglib.PD4MLTransformerTag.render(Unknown Source)
    org.zefer.pd4ml.taglib.PD4MLTransformerTag.doEndTag(Unknown Source)
    org.apache.jsp.includedocs.houseInclude.PrintPdf_jsp._jspService(PrintPdf_jsp.java:294)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
    org.apache.jasper.servlet.JspServlet._serviceJspFile(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
    org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
    org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
    org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)

    in reply to: TTF embedding
    #27302

    what are the license terms for the fonts used in https://pd4ml.com/i/easyfonts/fonts.jar? Can we use that in our commercial web application in which we generate and serve pdf to the users?

    in reply to: CSS overflow:hidden being ignored
    #29013

    Apologies – it turns out that I hadn’t properly refreshed the package and the old version was still being used. The above html now renders as expected – many thanks!

Viewing 15 posts - 301 through 315 (of 583 total)