PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: <td><</td> generated as <</td> in the pdf
   PostPosted: 25 Aug 2011, 12:31 
Hi,
when i try to generate a pdf using the below html code , </td> is also displayed in the pdf.

Code:
<html>
<head>
<title>recall</title>
</head>
<body>
<form action="userLogin">
<table>
   <tr>
      <td>Hello<</td>
   </tr>
</table>
</form>
</body>
<html>


output in pdf:
Hello<</td>

Thanks,
Rajvinder


  Subject: Re: <td><</td> generated as <</td> in the pdf
   PostPosted: 25 Aug 2011, 13:06 
Do you find it is wrong? There is an HTML syntax error, so PD4ML does not interpret <</td> as a tag.


  Subject: Re: <td><</td> generated as <</td> in the pdf
   PostPosted: 25 Aug 2011, 13:13 
My point is it should be uniform with browser display. I have used both IE and mozilla to test it. and both are displaying it as :-
Hello<


  Subject: Re: <td><</td> generated as <</td> in the pdf
   PostPosted: 25 Aug 2011, 14:01 
I see your point. But I guess the HTML specification does not define what supposed to happen in the situations like that. It only explicitly requires that '<' content character should be defined as '&lt;'

Of course there is a common practice how to workaround invalid syntax, but you can imagine it is not realistic to predict all possible coding errors and to test them in the popular browsers.

We opened a ticket for the issue, however it will take not less than one month to fix: even minor changes in JavaCC parser grammar definition cause big differences in autogenerated Java classes. That means big additional efforts to port the changes to .NET platform.

As a workaround I would recommend to pre-process source HTML before it is passed to PD4ML: to substitute all occurrences of '<<' with '< <'


  Subject: Re: <td><</td> generated as <</td> in the pdf
   PostPosted: 25 Aug 2011, 14:04 
Thanks for the reply.

Thanks,
Rajvinder



[Reply]     [ 5 posts ] 

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