Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #26535

    hello

    i have a problem parsing png images … please let me know how to solve it

    thanks

    #28468

    hello
    i cant parse PNG images , please tell me how to solve that

    thanks

    #28469

    hello

    please find the PNG that causes the parsing problem attached to the message . also find html that includes the image below




    Untitled Page

     

    ?????


    ?????

    ????? ??? ??????

    ????? ????

    ????? ???? ??? ??????

    ????? ??? ??????

    ????? ????

    ????? ???? ??? ??????

    ???????

                  
    ???? ???????? ??????? ???????
    ????? ????????
    ??????? ?????? ????? ??????
    ????????? ????????? ??????????? ????????????
    ???????? ????????? ??????
    United Arab Emirates
    Ministry of Interior
    Abu Dhabi Police G.H.Q
    Human Resources General Directorate
    G. Director Office

    ???????? : 11/2/33
    ????????? : 15/10/2007 ?
    ????????? : 03/???? /1428 ??
       

           ???? ?????? ????? ??????? ???????
    ???????  :   ???? ????????
     
    ?? ???? ??
     
    ??????/

    ????????? ???? ??????????????
    ???? ??? :

  • asdfasdf
  • 500254 – 10/10/2007

  • thanks

    #28470

    Unfortunately there is no PNG attached.

    Could you please try to attach once more?

    Thanks.

    #28471

    ok now you can find it attached to the message and by the way its a signature

    thank you very much

    #28472

    hello

    can i get any update on this issue please

    thanks

    #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?

    #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

    #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

    #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)

    #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

    #28478

    hello

    this issue has been hanging for long time . please can i get an answer

    thank you

    #28479

    As we wrote you before, the problem is caused by a corrupted PNG file. The original file seems to be ok, but probably it is damaged on the way to PD4ML. PD4ML only states that during parsing of the image by particular offset if found garbage instead of a numeric value.

    Today we’ll prepare a version with a binary data dump, to check what is actually returned by PNG request. We’ll send you the version by email.

    #28480

    hello

    ok thank you , i will wait for this version . hopefully we will get this ping issue solved after this invistigation .

    thanks alot

    #28481

    Does it work with the patched version?

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

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.