Forum Replies Created

Viewing 15 posts - 1,216 through 1,230 (of 4,243 total)
  • Author
    Posts
  • in reply to: Delay in PDF generation at Node2
    #28508

    My first suspect is network delays.

    Does the source HTML refer any external resources (images or stylesheets)?
    If so, try to enable debug info and check in real time server’s log (during the 20 mins) – do the resource loading records appear as quick as expected?

    in reply to: What should i do to render thead column on every page?
    #28506

    For the time being PD4ML does not support THEAD tag.

    But you may achieve the needed behavior if you trigger pd4ml.enableSmartTableBreaks(). If will reproduce table headers (leading table rows consist of TH elements only) on each relevant page.

    in reply to: png images errors while parsing
    #28473

    Below is a copy of email sent to your email address (alrewards.com) on Apr. 07, 2011

    I had no problems to convert an HTML with your image to PDF (see attached).

    Is it exactly the same image, that caused the problem? As I see in your HTML sample there is no test_png.png reference.

    Also in the servlet code please try to invoke
    http://pd4ml.com/api/org/zefer/pd4ml/PD4ML.html#useHttpRequest(HttpServletRequest,%20HttpServletResponse)
    method before pd4ml.render()

    Does it change anything?

    in reply to: What should i do to render thead column on every page?
    #28507

    Thank you very very much for your help

    in reply to: Troubleshooting
    #26541

    Hello,

    Could it be possible to have horizontally overflowing content to be printed on a separate page? Because of my content’s completely dynamic nature, I have no control over how many horizontal pages are required. It just is one huge table which can span in every direction. Scaling is not possible here either because font sizes are defined by the user.

    Currently it seems that PD4ML just skips the overflown part altogether. In my opinion, it should be treated differently.

    Is there a some kind of switch I’ve missed that could be used to fix this issue.

    I have no example here, but I bet you can imagine what happens to a too wide table.

    in reply to: Troubleshooting
    #26548

    I saw in pdf-generation-library-licensing-f6/announcements-t162.html that since v360b2 version of the pd4ml the characters that cannot be drawn using their font will be drawn using some other font which can draw them.

    I downloaded and used the version 370 PD4ML Pro (Trial), and this functionality did not work the way I expected it to works.

    <br /> ...<br /> renderer.useTTF("/home/nenad/Desktop/fonts/", true);<br /> chineseTxt = "常常有不同的方法來寫同樣的漢字,這些被統。有些差異是由於性格的簡化,而有些則是純粹的字形差異,如中風造型。在造型的招用的明朝風格的字體來自康熙字典中使用。在大陸中";<br /> contentStr = "<p>AR PL New Sung: <font face='AR PL New Sung'>" + chineseTxt + "</font></p>"<br /> + "<p>KaiTi_GB2312: <font face='KaiTi_GB2312'>" + chineseTxt + "</font></p>"<br /> + "<p>arial: <font face='arial'>" + chineseTxt + "</font></p>"<br /> + "<p>one more time - without the font: " + chineseTxt + "</p>";<br /> renderer.render(new StringReader(contentStr), formStream);<br />

    The result was that the “AR PL New Sung” and “KaiTi_GB2312” were displayed correctly (with Chinese characters), but the ‘arial’ and ‘one more time’ text are not printed at all. The text I used is:

    We have been using 323fx1 PD4ML Pro and are considering an upgrade to the newer version because of this feature, but it seems to me that it does not work?

    in reply to: png images errors while parsing
    #28474

    hello

    ok i will try again to do the change that you are refering to but please tell me exactly what do you mean by this

    Also in the servlet code please try to invoke
    http://pd4ml.com/api/org/zefer/pd4ml/PD4ML.html#useHttpRequest(HttpServletRequest,%20HttpServletResponse)
    method before pd4ml.render()

    can you please clarify

    thanks

    in reply to: png images errors while parsing
    #28475

    also
    i have tried the following html code and also i have embadded the png image , the same one attached previously







    line one
    line two line three


    and i am getting the following error

    java.lang.NumberFormatException: For input string: “/F”
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:449)
    at org.zefer.pd4ml.pdf.h$_b.o00000(Unknown Source)
    at org.zefer.pd4ml.pdf.c.OÒ0000(Unknown Source)
    at org.zefer.pd4ml.pdf.c.ø00000(Unknown Source)
    at org.zefer.pd4ml.pdf.c.close(Unknown Source)
    at org.zefer.pd4ml.pdf.PD4Device.dispose(Unknown Source)
    at org.zefer.pd4ml.PD4ML.o00000(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at ae.rwd.model.Pdf.convertHtmlToPdf(Pdf.java:87)
    at ae.rwd.servlet.PdfCreater.processRequest(PdfCreater.java:41)
    at ae.rwd.servlet.PdfCreater.doGet(PdfCreater.java:55)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
    at java.lang.Thread.run(Thread.java:662)

    thanks

    in reply to: HTML/CSS rendering issues
    #26549

    I am using CSS in link tag in HTML. My CSS contains styles like
    @media screen and (-webkit-min-device-pixel-ratio:0)
    {

    }

    and pd4ML give run time error while parsing this kind of CSS.
    So is there any option to ignore this kind of CSS?

    in reply to: HTML/CSS rendering issues
    #26550

    I am sending an HTML with table and td and inline width in td.
    If I am selecting Page size as A4 then it is adjusting data in A4 page.
    So is there any configuration to not adjust data in A4 page.If data is not appear(or cut from view) in page then it is okay for me.

    in reply to: png images errors while parsing
    #28476

    Before

    pd4ml.render();

    call in your servlet code you need to invoke

    pd4ml.useHttpRequest(httpRequest, httpResponse);

    (where parameters are HttpServletRequest httpRequest and HttpServletResponse httpResponse)

    in reply to: Dynamic font substitution logic does not work for me?
    #28509

    In order to find an appropriate font to display a text string, PD4ML walks the following lists:
    [language=java:3vg6yswk]private static String[] serifFallback = new String[] {
    “Times New Roman”,
    “MS Mincho”,
    “MingLiU”,
    “SimSun”,
    “Mangal”,
    “David”,
    “Batang”,
    “Wingdings”,
    “Symbol”,
    “Lucida Sans Regular”,
    };

    private static String[] sansFallback = new String[] {
    “Arial”,
    “MS Gothic”,
    “MingLiU”,
    “SimSun”,
    “Mangal”,
    “David”,
    “Gulim”,
    “Wingdings”,
    “Symbol”,
    “Lucida Sans Regular”,
    };

    private static String[] monoFallback = new String[] {
    “Courier New”,
    “MS Gothic”,
    “MingLiU”,
    “SimSun”,
    “Mangal”,
    “David”,
    “GulimChe”,
    “Wingdings”,
    “Symbol”,
    “Lucida Sans Regular”,
    };[/language:3vg6yswk]

    I guess, in your case an existence of SimSun among available fonts should help.

    in reply to: png images errors while parsing
    #28477

    hello
    i tried that but its not working , i get the same error . i am sure its the png image i mean if i change the type of the image to any other type then its ok but when i try png its not working

    please help me

    in reply to: Dynamic font substitution logic does not work for me?
    #28510

    Tried with multiple versions of PD4ML with no result.

    in reply to: Dynamic font substitution logic does not work for me?
    #28511

    Try to switch PD4ML debug on and inspect STDOUT/server’s log. Does it tries to load TTF files at all?

Viewing 15 posts - 1,216 through 1,230 (of 4,243 total)