Menu

#52 Many bugs in conversion

open
nobody
5
2015-02-18
2007-04-05
grelano
No

Good work, good php class!
But the class count many bugs if you try to convert the html code below (Generated with Open Office 2)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
<TITLE></TITLE>
<META NAME="GENERATOR" CONTENT="OpenOffice.org 2.0 (Win32)">
<META NAME="AUTHOR" CONTENT="* *">
<META NAME="CREATED" CONTENT="20070404;17521800">
<META NAME="CHANGEDBY" CONTENT="* *">
<META NAME="CHANGED" CONTENT="20070404;18264953">
<STYLE>
<!--
@page { size: 21cm 29.7cm; margin: 2cm }
P { margin-bottom: 0.21cm }
TD P { margin-bottom: 0cm }
TH P { margin-bottom: 0cm; font-style: italic }
-->
</STYLE>
</HEAD>
<BODY LANG="fr-FR" DIR="LTR"><SPAN CLASS="sd-abs-pos" STYLE="position: absolute; top: 2.08cm; left: 14.37cm; width: 173px">
<IMG SRC="Test_html_199f3eb6.gif" NAME="Image1" WIDTH=173 HEIGHT=133 BORDER=0></SPAN>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif"><FONT SIZE=5 STYLE="font-size: 20pt"><B>Ets
SIMONNOT</B></FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif"><FONT SIZE=4 STYLE="font-size: 15pt"><B>R&eacute;paration
de chariots &eacute;l&eacute;vateurs</B></FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>25,
Bd Massenet - 13014 - Marseille</FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif"><FONT SIZE=2 STYLE="font-size: 9pt">T&eacute;l
04 91 60 77 52 - Fax : 04 91 60 72 37</FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif"><FONT SIZE=2 STYLE="font-size: 9pt">Siret
33084492900035 - APE : 527H - TVA Intra : FR50330844929</FONT></FONT></P>
<P STYLE="margin-bottom: 0cm"><BR>
</P>
<P STYLE="margin-bottom: 0cm"><BR>
</P>
<P STYLE="margin-bottom: 0cm"><BR>
</P>
<TABLE WIDTH=643 BORDER=0 CELLPADDING=4 CELLSPACING=0>
<COL WIDTH=314>
<COL WIDTH=313>
<THEAD>
<TR VALIGN=TOP>
<TD WIDTH=314>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif"><FONT SIZE=2>Votre
TVA Intra. :</FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><BR>
</P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif"><FONT SIZE=1 STYLE="font-size: 8pt"><I>Domiciliation
bancaire :</I></FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif"><FONT SIZE=1 STYLE="font-size: 8pt"><I>RIB
BPPC ALLAUCH LOGIS NEUF</I></FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif"><FONT SIZE=1 STYLE="font-size: 8pt"><I>Code
Banque : 14607 - Code Guichet : 00022</I></FONT></FONT></P>
<P ALIGN=LEFT><FONT FACE="Arial, sans-serif"><FONT SIZE=1 STYLE="font-size: 8pt"><I>Compte
02221517078 - Cl&eacute; 53</I></FONT></FONT></P>
</TD>
<TD WIDTH=313>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif"><FONT SIZE=2><B>ACCOPLAS</B></FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif"><FONT SIZE=2>7
AVENUE DE BOISBAUDRAN</FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif"><FONT SIZE=2>LOT.INDUSTRIEL
DE LA DELORME</FONT></FONT></P>
<P ALIGN=LEFT><FONT FACE="Arial, sans-serif"><FONT SIZE=2>13015
MARSEILLE</FONT></FONT></P>
</TD>
</TR>
</THEAD>
</TABLE>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><BR>
</P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif"><FONT SIZE=3><B>FACTURE
N&deg; F_0701_1014 du 31/01/07</B></FONT></FONT></P>
<P ALIGN=RIGHT STYLE="margin-bottom: 0cm"><BR>
</P>
<TABLE WIDTH=100% BORDER=1 BORDERCOLOR="#000000" CELLPADDING=4 CELLSPACING=0>
<COL WIDTH=159*>
<COL WIDTH=20*>
<COL WIDTH=31*>
<COL WIDTH=47*>
<THEAD>
<TR>
<TD COLSPAN=4 WIDTH=100% VALIGN=TOP>
<P ALIGN=CENTER><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=2><I><B>Objet
Facture mensuelle du 01/2007</B></I></FONT></FONT></FONT></P>
</TD>
</TR>
</THEAD>
<TBODY>
<TR VALIGN=TOP>
<TD WIDTH=62% BGCOLOR="#ccccff">
<P ALIGN=LEFT><FONT COLOR="#0a0a0a"><FONT FACE="Arial, sans-serif"><FONT SIZE=2><B>D&eacute;signation</B></FONT></FONT></FONT></P>
</TD>
<TD WIDTH=8% BGCOLOR="#ccccff">
<P ALIGN=CENTER><FONT COLOR="#0a0a0a"><FONT FACE="Arial, sans-serif"><FONT SIZE=2><B>Qte</B></FONT></FONT></FONT></P>
</TD>
<TD WIDTH=12% BGCOLOR="#ccccff">
<P ALIGN=CENTER><FONT COLOR="#0a0a0a"><FONT FACE="Arial, sans-serif"><FONT SIZE=2><B>PUHT</B></FONT></FONT></FONT></P>
</TD>
<TD WIDTH=18% BGCOLOR="#ccccff">
<P ALIGN=CENTER><FONT COLOR="#0a0a0a"><FONT FACE="Arial, sans-serif"><FONT SIZE=2><B>Total
HT</B></FONT></FONT></FONT></P>
</TD>
</TR>
<TR>
<TD COLSPAN=4 WIDTH=100% VALIGN=TOP>
<P ALIGN=LEFT><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=2 STYLE="font-size: 9pt">R&eacute;capitulatif
du BSL N&deg; 1160 du 02/01/06 Effectu&eacute; par M. Robert
Padovano</FONT></FONT></FONT></P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=62%>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=2 STYLE="font-size: 9pt">PB203502
Atlet plp200 N&deg; 33502</FONT></FONT></FONT></P>
<P ALIGN=LEFT><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=2 STYLE="font-size: 9pt">ABM
174,24 &euro;</FONT></FONT></FONT></P>
</TD>
<TD WIDTH=8%>
<P ALIGN=CENTER><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=2 STYLE="font-size: 9pt">1.00</FONT></FONT></FONT></P>
</TD>
<TD WIDTH=12%>
<P ALIGN=LEFT><FONT COLOR="#000000"> <FONT FACE="Arial, sans-serif"><FONT SIZE=2 STYLE="font-size: 9pt">2
110,24 &euro; </FONT></FONT></FONT>
</P>
</TD>
<TD WIDTH=18%>
<P ALIGN=RIGHT><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=2 STYLE="font-size: 9pt">2
110,24 &euro;</FONT></FONT></FONT></P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=62%>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=2 STYLE="font-size: 9pt">PB203503
Atlet plp200 N&deg; 33503</FONT></FONT></FONT></P>
<P ALIGN=LEFT><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=2 STYLE="font-size: 9pt">ABM
174,24 &euro;</FONT></FONT></FONT></P>
</TD>
<TD WIDTH=8%>
<P ALIGN=CENTER><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=2 STYLE="font-size: 9pt">1.00</FONT></FONT></FONT></P>
</TD>
<TD WIDTH=12%>
<P ALIGN=LEFT><FONT COLOR="#000000"> <FONT FACE="Arial, sans-serif"><FONT SIZE=2 STYLE="font-size: 9pt">2
110,24 &euro; </FONT></FONT></FONT>
</P>
</TD>
<TD WIDTH=18%>
<P ALIGN=RIGHT><FONT COLOR="#000000"> <FONT FACE="Arial, sans-serif"><FONT SIZE=2 STYLE="font-size: 9pt">2
110,24 &euro; </FONT></FONT></FONT>
</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=62%>
<P ALIGN=RIGHT><BR>
</P>
</TD>
<TD WIDTH=8%>
<P ALIGN=CENTER><BR>
</P>
</TD>
<TD WIDTH=12%>
<P ALIGN=RIGHT><BR>
</P>
</TD>
<TD WIDTH=18%>
<P ALIGN=RIGHT><BR>
</P>
</TD>
</TR>
</TBODY>
</TABLE>
<P ALIGN=RIGHT STYLE="margin-bottom: 0cm"><BR>
</P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><BR>
</P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><BR>
</P>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=4 CELLSPACING=0>
<COL WIDTH=85*>
<COL WIDTH=85*>
<COL WIDTH=85*>
<THEAD>
<TR VALIGN=TOP>
<TH WIDTH=33%>
<P><BR>
</P>
<P><IMG SRC="Test_html_5f46370e.gif" NAME="Image2" ALIGN=BOTTOM WIDTH=191 HEIGHT=126 BORDER=0></P>
</TH>
<TH WIDTH=33%>
<P><BR>
</P>
<P><IMG SRC="Test_html_4bead140.gif" NAME="Image3" ALIGN=BOTTOM WIDTH=168 HEIGHT=126 BORDER=0></P>
<P><BR>
</P>
</TH>
<TH WIDTH=33%>
<P><BR>
</P>
<P><IMG SRC="Test_html_m7b8ae58b.gif" NAME="Image4" ALIGN=BOTTOM WIDTH=188 HEIGHT=126 BORDER=0></P>
</TH>
</TR>
</THEAD>
<TBODY>
<TR VALIGN=TOP>
<TD WIDTH=33%>
<P ALIGN=CENTER STYLE="font-weight: medium"><FONT COLOR="#ff0000"><FONT FACE="Arial, sans-serif">Exemple
de texte ROUGE</FONT></FONT></P>
</TD>
<TD WIDTH=33%>
<P ALIGN=CENTER STYLE="font-weight: medium"><FONT COLOR="#00ff00"><FONT FACE="Arial, sans-serif">Exemple
de texte VERT</FONT></FONT></P>
</TD>
<TD WIDTH=33%>
<P ALIGN=CENTER STYLE="font-weight: medium"><FONT COLOR="#0000ff"><FONT FACE="Arial, sans-serif">Exemple
de texte BLEU</FONT></FONT></P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=33%>
<P ALIGN=CENTER STYLE="background: #ff0000; font-weight: medium"><FONT FACE="Arial, sans-serif">Exemple
de texte</FONT></P>
</TD>
<TD WIDTH=33%>
<P ALIGN=CENTER STYLE="background: #00ff00; font-weight: medium"><FONT FACE="Arial, sans-serif">Exemple
de texte</FONT></P>
</TD>
<TD WIDTH=33%>
<P ALIGN=CENTER STYLE="background: #0000ff; font-weight: medium"><FONT FACE="Arial, sans-serif">Exemple
de texte</FONT></P>
</TD>
</TR>
</TBODY>
</TABLE>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><BR>
</P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><BR>
</P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><BR>
</P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><BR>
</P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><BR>
</P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><BR>
</P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><BR>
</P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><BR>
</P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><BR>
</P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><BR>
</P>
<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><BR>
</P>
<DIV TYPE=FOOTER>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=4 CELLSPACING=0>
<COL WIDTH=220*>
<COL WIDTH=36*>
<THEAD>
<TR VALIGN=TOP>
<TD WIDTH=86%>
<P STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif"><FONT SIZE=1 STYLE="font-size: 8pt"><I>Voir
conditions g&eacute;n&eacute;rales de vente au verso</I></FONT></FONT></P>
<P STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif"><FONT SIZE=1 STYLE="font-size: 8pt"><I>Pas
d'escompte pour paiement anticip&eacute;. Pass&eacute; la date
d'&eacute;ch&eacute;ance, tout paiement diff&eacute;r&eacute;
entra&icirc;ne</I></FONT></FONT></P>
<P><FONT FACE="Arial, sans-serif"><FONT SIZE=1 STYLE="font-size: 8pt"><I>l'application
d'une p&eacute;nalit&eacute; de 1,5 fois le taux d'int&eacute;r&ecirc;t
l&eacute;gal. (Loi N&deg; 92-1442 du 31 D&eacute;cembre 1992)</I></FONT></FONT></P>
</TD>
<TD WIDTH=14%>
<P ALIGN=RIGHT><FONT FACE="Arial, sans-serif"><FONT SIZE=1 STYLE="font-size: 8pt"><I>Page
1 / 2</I></FONT></FONT></P>
</TD>
</TR>
</THEAD>
</TABLE>
<P STYLE="margin-bottom: 0cm"><BR>
</P>
</DIV>
</BODY>
</HTML>

Discussion


Log in to post a comment.

MongoDB Logo MongoDB