PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: png images errors while parsing
   PostPosted: 23 Mar 2011, 07:39 
hello

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


thanks


  Subject: Re: png images errors while parsing
   PostPosted: 06 Apr 2011, 00:20 
hello
i cant parse PNG images , please tell me how to solve that

thanks


  Subject: Re: png images errors while parsing
   PostPosted: 06 Apr 2011, 08:47 
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>
&nbsp;
</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> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</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">????&nbsp;????????&nbsp;???????&nbsp;???????</span>
</td>
</tr>
<tr>
<td align="center">
<span style="font-family: Arial; font-weight: bold; font-size: 19">?????&nbsp;????????</span>
</td>
</tr>
<tr>
<td align="center">
<span style="font-family: Arial; font-weight: bold; font-size: 19">???????&nbsp;??????&nbsp;?????&nbsp;??????</br></span>
</td>
</tr>
<tr>
<td align="center">
<span style="font-family: Arial; font-weight: bold; font-size: 16">?????????&nbsp;?????????&nbsp;???????????&nbsp;????????????</span>
</td>
</tr>
<tr>
<td align="center">
<span style="font-family: Arial; font-weight: bold; font-size: 16">????????&nbsp;?????????&nbsp;??????</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&nbsp;Arab&nbsp;Emirates</span>
</td>
</tr>
<tr>
<td align="center">
<span style="font-family: Arial; font-weight: bold; font-size: 18">Ministry&nbsp;of&nbsp;Interior</span>
</td>
</tr>
<tr>
<td align="center">
<span style="font-family: Arial; font-weight: bold; font-size: 18">Abu&nbsp;Dhabi&nbsp;Police&nbsp;G.H.Q</br></span>
</td>
</tr>
<tr>
<td align="center">
<span style="font-family: Arial; font-weight: bold; font-size: 14">Human&nbsp;Resources&nbsp;General&nbsp;Directorate</span>
</td>
</tr>
<tr>
<td align="center">
<span style="font-family: Arial; font-weight: bold; font-size: 14">G.&nbsp;Director&nbsp;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%">
&nbsp;
</td>
<td width="40%" valign="top" align="left">
&nbsp;
</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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ????&nbsp;??????&nbsp;?????&nbsp;???????&nbsp;???????</b>
</td>
</tr>
</table>
</td>
</tr>
<tr align="left">
<td colspan="3">
<table>
<tr>
<td style="font-family: Arial">
<b>???????&nbsp; : &nbsp;</b>
</td>
<td style="font-family: Arial" lang="ar-ae">
<b><u>???? ????????</b>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3">
&nbsp;
</td>
</tr>
<tr>
<td colspan="3">
<span style="font-family: Arial">?? ???? ?? </span>
</td>
</tr>
<tr>
<td colspan="2">
&nbsp;
</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>?????????&nbsp;????&nbsp;??????????????</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
   PostPosted: 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
   PostPosted: 06 Apr 2011, 18:53 
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
test_png.png [ 7.66 KiB | Viewed 721 times ]
  Subject: Re: png images errors while parsing
   PostPosted: 12 Apr 2011, 02:26 
hello

can i get any update on this issue please

thanks


  Subject: Re: png images errors while parsing
   PostPosted: 12 Apr 2011, 15:03 
Below is a copy of email sent to your email address (alrewards.com) on Apr. 07, 2011

Quote:
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?


  Subject: Re: png images errors while parsing
   PostPosted: 14 Apr 2011, 02:34 
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
   PostPosted: 14 Apr 2011, 03:29 
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
   PostPosted: 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)



[Reply]     [ 15 posts ]  Go to page 1, 2  Next

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share