 |
 |
 |
 |
 |
PDF Generating Tool Support Forum |
 |
|
Subject: png images errors while parsing |
|
|
hello
i have a problem parsing png images ... please let me know how to solve it
thanks
|
|
| |
 |
Subject: Re: png images errors while parsing |
|
|
hello i cant parse PNG images , please tell me how to solve that
thanks
|
|
| |
 |
Subject: Re: png images errors while parsing |
|
|
hello
please find the PNG that causes the parsing problem attached to the message . also find html that includes the image below
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Untitled Page</title> </head> <body> <table border="0" width="648" id="table1" cellspacing="0" cellpadding="0" style="border-collapse: collapse"> <tr id="controlspacebar"> <td> </td> </tr> <tr id="controlbar"> <td> <span style="cursor: hand;"> <img alt="?????" title="?????" src="/images/ecs/images/icon_print.gif" onclick=" printDoc();" /></span> <span style="cursor: hand;"> <img width="32" height="32" alt="?????" src="/images/ecs/images/headersig.png" onclick=" printPDF(1,0,'264','1','060062069078088094'); " /> </span><span style="cursor: hand;"> <img width="32" height="32" alt="????? ??? ??????" src="/images/ecs/images/noheadersig.png" onclick=" printPDF(0,0,'264','1','060062069078088094'); " /> </span><span style="cursor: hand;"> <img width="32" height="32" alt="????? ????" src="/images/ecs/images/headernosig.png" onclick=" printPDF(1,1,'264','1','060062069078088094');" /> </span><span style="cursor: hand;"> <img width="32" height="32" alt="????? ???? ??? ??????" src="/images/ecs/images/noheadernosig.png" onclick="printPDF(0,1,'264','1','060062069078088094'); " /> </span><span style="cursor: hand;"> <img width="32" height="32" alt="????? ??? ??????" src="/images/ecs/images/signature.gif" onclick=" hideHeader(); printDoc(); showHeader(); " /> </span><span style="cursor: hand;"> <img width="32" height="32" alt="????? ????" src="/images/ecs/images/signature.gif" onclick=" hideSign(); printDoc(); displaySign(); " /> </span><span style="cursor: hand;"> <img width="32" height="32" alt="????? ???? ??? ??????" src="/images/ecs/images/signature.gif" onclick=" hideSign(); hideHeader(); printDoc(); displaySign(); showHeader(); " /> </span><span style="cursor: hand;"> <img id="inboxnote" width="32" height="32" alt="???????" src="/images/ecs/images/Chat_01.gif" onclick=" hideall(); showhide(this,'sendlayer'); var url='http://aghqsrv97.auh.police:80/ecs/ECS_016.viewnotes?p_lang=&P_DOCUMENTNUMBER=264&P_TRANSACTION_NUMBER='; ajaxRef('sendlayertxt',url);"> </span><span> <input type="hidden" id="menu3" /></span> </td> </tr> <tr> <td height="5" align="center" id="navigationbar"> </td> </tr> <tr> <td height="5" align="center" id="messagebar"> </td> </tr> <tr> <td height="5" align="center" id="docheader"> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td width="270"> <table border="0" id="table4" style="border-collapse: collapse"> <tr> <td align="center"> <span style="font-family: Arial; font-weight: bold; font-size: 19">???? ???????? ??????? ???????</span> </td> </tr> <tr> <td align="center"> <span style="font-family: Arial; font-weight: bold; font-size: 19">????? ????????</span> </td> </tr> <tr> <td align="center"> <span style="font-family: Arial; font-weight: bold; font-size: 19">??????? ?????? ????? ??????</br></span> </td> </tr> <tr> <td align="center"> <span style="font-family: Arial; font-weight: bold; font-size: 16">????????? ????????? ??????????? ????????????</span> </td> </tr> <tr> <td align="center"> <span style="font-family: Arial; font-weight: bold; font-size: 16">???????? ????????? ??????</span> </td> </tr> <tr> <td align="center"> <span style="font-family: Arial; font-weight: bold; font-size: 16"></span> </td> </tr> <tr> <td align="center"> <span style="font-family: Arial; font-weight: bold; font-size: 16"></span> </td> </tr> </table> </td> <td width="110" align="center"> <img src="/images/ecs/images/adplogo_s.gif"> </td> <td width="270" align="left"> <table border="0" id="table5" style="border-collapse: collapse"> <tr> <td align="center"> <span style="font-family: Arial; font-weight: bold; font-size: 18">United Arab Emirates</span> </td> </tr> <tr> <td align="center"> <span style="font-family: Arial; font-weight: bold; font-size: 18">Ministry of Interior</span> </td> </tr> <tr> <td align="center"> <span style="font-family: Arial; font-weight: bold; font-size: 18">Abu Dhabi Police G.H.Q</br></span> </td> </tr> <tr> <td align="center"> <span style="font-family: Arial; font-weight: bold; font-size: 14">Human Resources General Directorate</span> </td> </tr> <tr> <td align="center"> <span style="font-family: Arial; font-weight: bold; font-size: 14">G. Director Office</span> </td> </tr> <tr> <td align="center"> <span style="font-family: Arial; font-weight: bold; font-size: 14"></span> </td> </tr> <tr> <td align="center"> <span style="font-family: Arial; font-weight: bold; font-size: 14"></span> </td> </tr> </table> </td> </tr> </table> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr valign="top" height="1" cellpadding="0" cellspacing="0"> <td width="100%" valign="top" height="1"> <hr color="#000000"> </td> </tr> </table> </td> </tr> <tr> <td height="5" align="center" id="docbody"> <table border="0" width="100%" cellspacing="0" cellpadding="0" style="border-collapse: collapse" align="center"> <tr> <td colspan="3"> <table width="100%" border="0" cellpadding="2" cellspacing="0"> <tr style="font-family: Arial"> <td width="40%"> <table border="0"> <tr> <td> ???????? </td> <td> : </td> <td> 11/2/33 </td> </tr> <tr style="font-family: Arial"> <td> ????????? </td> <td> : </td> <td> 15/10/2007 ? </td> </tr> <tr style="font-family: Arial"> <td> ????????? </td> <td> : </td> <td> 03/???? /1428 ?? </td> </tr> </table> </td> <td width="20%"> </td> <td width="40%" valign="top" align="left"> </td> </tr> <tr> <td width="100%" style align="center" colspan="3"> <br> <table width="100%" border="0" cellpadding="2" cellspacing="0"> <tr style="font-family: Arial; font-size: 16pt"> <td title="4003 - ???? ?????? ????? ??????? ???????"> <b> ???? ?????? ????? ??????? ???????</b> </td> </tr> </table> </td> </tr> <tr align="left"> <td colspan="3"> <table> <tr> <td style="font-family: Arial"> <b>??????? : </b> </td> <td style="font-family: Arial" lang="ar-ae"> <b><u>???? ????????</b> </td> </tr> </table> </td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="3"> <span style="font-family: Arial">?? ???? ?? </span> </td> </tr> <tr> <td colspan="2"> </td> <td valign="top" align="left"> <table border="0" align="left"> <tr> <td valign="bottom" width="auto"> <span style="font-family: Arial; font-size: 16pt"><b>??????/</b></span> </td> <td width="180"> <div id="sign2641"> <span style="font-family: Arial"> <img border="0" height="80" width="180" src="ecs_100.download?p_file=f2514/test.png"></span> </div> </td> </tr> <tr> <td colspan="2"> <span style="font-family: Arial; font-size: 16pt"><b>????????? ???? ??????????????</b></span> </td> </tr> <tr> <td colspan="2"> <span style="font-family: Arial; font-size: 16pt"><b></b></span> </td> </tr> </table> </td> </tr> <tr> <td colspan="3"> <span style="font-family: Arial; font-size: 10pt"><u>???? ??? :</u></span> </td> </tr> <tr> <td colspan="3"> <span style="font-family: Arial; font-size: 10pt"> <p align="RIGHT"> <li>asdfasdf</li> </span> </td> </tr> <tr title="???? ??????"> <td colspan="3"> <span style="font-family: Arial; font-size: 10pt"> <p align="RIGHT"> <li>500254 - 10/10/2007</li> </span> </td> </tr> </td> </tr> </table> </td> </tr> </table> </body> </html>
thanks
|
|
| |
 |
Subject: Re: png images errors while parsing PD4ML
Posted: 06 Apr 2011, 15:34 |
|
|
Unfortunately there is no PNG attached.
Could you please try to attach once more?
Thanks.
|
|
| |
 |
Subject: Re: png images errors while parsing |
|
|
ok now you can find it attached to the message and by the way its a signature
thank you very much
| Attachments: |

test_png.png [ 7.66 KiB | Viewed 721 times ]
|
|
|
| |
 |
Subject: Re: png images errors while parsing |
|
|
hello
can i get any update on this issue please
thanks
|
|
| |
 |
Subject: Re: png images errors while parsing PD4ML
Posted: 12 Apr 2011, 15:03 |
|
|
|
| |
 |
Subject: Re: png images errors while parsing |
|
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/PD ... etResponse) method before pd4ml.render()can you please clarify thanks
|
|
| |
 |
Subject: Re: png images errors while parsing |
|
|
also i have tried the following html code and also i have embadded the png image , the same one attached previously
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body dir="rtl" > <table width="100%"> <tr> <td> <font face="Times New Roman"> line one </font> </td> <td> line two </td> <td> line three </td> <td> <img src="resources/images/f2080_test_png.png" /> </td>
</tr> </table> </body> </html>
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
|
|
| |
 |
Subject: Re: png images errors while parsing PD4ML
Posted: 14 Apr 2011, 21:04 |
|
|
Before
pd4ml.render();
call in your servlet code you need to invoke
pd4ml.useHttpRequest(httpRequest, httpResponse);
(where parameters are HttpServletRequest httpRequest and HttpServletResponse httpResponse)
|
|
| |
 |

|
 |
 |
|
 |
Copyright ©2004-10 zefer|org. All rights reserved. |
|
|
 |
|
 |