<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=519452413-17072006>Refinement of problem statement:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=519452413-17072006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=519452413-17072006>The DTML file on which html2pdf is called is populated
by a python script which builds and returns html by processing a list of objects
in a for loop. <SPAN class=519452413-17072006><FONT face=Arial
color=#0000ff size=2>The html content which is missing from the pdf is generated
inside the for loop. As said before though, the information built in the
for loop is displayed in the DTML when it is viewed as a
webpage.</FONT></SPAN></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=519452413-17072006><SPAN
class=519452413-17072006></SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=519452413-17072006>The python is below:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=519452413-17072006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=519452413-17072006>data = [n for n in context.objectValues(['RDMA
Narrative','RDMA Indicator']) if n.country==selectedCountry]
</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=519452413-17072006>body=""</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=519452413-17072006>##TITLE PAGE<BR>body+="<h1>%s</h1>\n" %
selectedCountry<BR>body+="<!-- PAGE BREAK -->\n"</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=519452413-17072006>##BODY<BR>for d in data:<BR> body+="%s\n" %
(d.title)<BR> if d.meta_type == 'RDMA Indicator':<BR> if
hasattr(d,'xltohtml'):<BR>
body+=d.xltohtml()<BR> elif d.meta_type == 'RDMA
Narrative':<BR> body+="<h3>%s</h3>" %
d.narrativeType<BR> body+=d.narrativeText<BR>
body+="<!-- PAGE BREAK -->\n"</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=519452413-17072006>return body</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=519452413-17072006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
zope-bounces+bsmith=constellagroup.com@zope.org
[mailto:zope-bounces+bsmith=constellagroup.com@zope.org] <B>On Behalf Of
</B>Smith, Barrett<BR><B>Sent:</B> Monday, July 17, 2006 9:14 AM<BR><B>To:</B>
zope@zope.org<BR><B>Subject:</B> [Zope] RE: html2pdf truncating html
content<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=070215912-17072006><FONT face=Arial
size=2>I'm using html2pdf and it seems to be truncating the content. The
html on which html2pdf is:</FONT></SPAN></DIV>
<DIV><SPAN class=070215912-17072006></SPAN> </DIV>
<DIV><SPAN class=070215912-17072006><<SPAN
class=start-tag>html</SPAN>><BR><<SPAN
class=start-tag>head</SPAN>><<SPAN
class=start-tag>title</SPAN>>Narrative Report</<SPAN
class=end-tag>title</SPAN>></<SPAN
class=end-tag>head</SPAN>><BR><<SPAN
class=start-tag>body</SPAN>><BR><BR><BR><<SPAN
class=start-tag>h1</SPAN>>PNG</<SPAN class=end-tag>h1</SPAN>><BR><SPAN
class=comment><!-- PAGE BREAK --></SPAN><BR><<SPAN
class=start-tag>h2</SPAN>>Narrative: PNG- Challenge Situation</<SPAN
class=end-tag>h2</SPAN>><BR><SPAN class=comment><!-- PAGE BREAK
--></SPAN><BR><<SPAN class=start-tag>h2</SPAN>>Narrative: PNG- Key
Accomplishments</<SPAN class=end-tag>h2</SPAN>><BR><SPAN
class=comment><!-- PAGE BREAK --></SPAN><BR><<SPAN
class=start-tag>h2</SPAN>>Narrative: PNG- Program Performance</<SPAN
class=end-tag>h2</SPAN>><BR></DIV>
<DIV><PRE id=line13><SPAN class=comment><!-- PAGE BREAK --></SPAN>
<<SPAN class=start-tag>h2</SPAN>>Narrative: PNG- Success Stories</<SPAN class=end-tag>h2</SPAN>>
<SPAN class=comment><!-- PAGE BREAK --></SPAN>
<<SPAN class=start-tag>h2</SPAN>>Table 1-2 PNG</<SPAN class=end-tag>h2</SPAN>>
<SPAN class=comment><!-- PAGE BREAK --></SPAN>
<<SPAN class=start-tag>h2</SPAN>>Table 1-4 PNG</<SPAN class=end-tag>h2</SPAN>>
<SPAN class=comment><!-- PAGE BREAK --></SPAN>
<<SPAN class=start-tag>h2</SPAN>>Narrative: PNG- Annex II</<SPAN class=end-tag>h2</SPAN>>
<SPAN class=comment><!-- PAGE BREAK --></SPAN>
<<SPAN class=start-tag>h2</SPAN>>Narrative: PNG- Annex III</<SPAN class=end-tag>h2</SPAN>>
<SPAN class=comment><!-- PAGE BREAK --></SPAN>
</PRE><PRE id=line25></<SPAN class=end-tag>body</SPAN>>
</<SPAN class=end-tag>html</SPAN>>
</PRE><PRE><SPAN class=070215912-17072006>The html which html2pdf is writing to the pdf though is:</SPAN></PRE><PRE><SPAN class=070215912-17072006><html><BR><head><title>Narrative Report</title></head><BR><body><BR></SPAN><SPAN class=070215912-17072006></SPAN></PRE><PRE><SPAN class=070215912-17072006><h1>PNG</h1><BR><!-- PAGE BREAK --><BR></SPAN></PRE><PRE><SPAN class=070215912-17072006></body><BR></html><BR></SPAN></PRE><PRE><SPAN class=070215912-17072006>I'm at a loss to explain the truncation. Can anyone offer some suggestions?</PRE></SPAN></SPAN></DIV></BODY></HTML>