[Zope] Re: html2pdf

2007-07-12 Thread Sam Stainsby
On Thu, 12 Jul 2007 16:57:05 +0100, Garry Saddington wrote: > I am trying to use html2pdf and htmldoc to generate pdfs on the fly. I can > get > it to work perfectly if I set all view permissions for anonymous. However, > this is not suitable for a member only site. Can anyone point me in the r

Re: [Zope] Re: html2pdf

2007-07-12 Thread Garry Saddington
On Thursday 12 July 2007 18:19, Maurits van Rees wrote: > Garry Saddington, on 2007-07-12: > > I am trying to use html2pdf and htmldoc to generate pdfs on the fly. I > > can get it to work perfectly if I set all view permissions for anonymous. > > However, this is not suitable for a member only sit

[Zope] Re: html2pdf

2007-07-12 Thread Maurits van Rees
Garry Saddington, on 2007-07-12: > I am trying to use html2pdf and htmldoc to generate pdfs on the fly. I can > get > it to work perfectly if I set all view permissions for anonymous. However, > this is not suitable for a member only site. Can anyone point me in the right > direction for such u

RE: [Zope] RE: html2pdf truncating html content

2006-07-17 Thread Smith, Barrett
Found the problem:  context was changing.  When called from html2pdf, the parent object was different from when the dtml was called raw. From: Jonathan [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 10:52 AMTo: Smith, Barrett; zope@zope.orgSubject: Re: [Zope] RE: html2pdf

Re: [Zope] RE: html2pdf truncating html content

2006-07-17 Thread Jonathan
pdf? (they weren't in the python code you posted)       Jonathan   - Original Message - From: Smith, Barrett To: Jonathan ; zope@zope.org Sent: Monday, July 17, 2006 10:39 AM Subject: RE: [Zope] RE: html2pdf truncating html content Thanks, Jonathan, but no joy. 

RE: [Zope] RE: html2pdf truncating html content

2006-07-17 Thread Smith, Barrett
July 17, 2006 10:25 AMTo: Smith, Barrett; zope@zope.orgSubject: Re: [Zope] RE: html2pdf truncating html content Just a wag (wild assed guess)... in your BODY loop, if d.title is null could you be embedding a 'null' char in the text string, which may cause html2pdf to choke?     Jonath

Re: [Zope] RE: html2pdf truncating html content

2006-07-17 Thread Jonathan
2006 9:30 AM Subject: RE: [Zope] RE: html2pdf truncating html content Refinement of problem statement:   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.  The html conten

RE: [Zope] RE: html2pdf truncating html content

2006-07-17 Thread Smith, Barrett
" % d.narrativeType    body+=d.narrativeText  body+="\n"   return body       From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Smith, BarrettSent: Monday, July 17, 2006 9:14 AMTo: zope@zope.orgSubject: [Zope] RE: html2pdf truncating html content I'm using ht

[Zope] RE: html2pdf truncating html content

2006-07-17 Thread Smith, Barrett
I'm using html2pdf and it seems to be truncating the content.  The html on which html2pdf is:   Narrative Reporttitle>head><body><h1>PNGh1><h2>Narrative: PNG- Challenge Situationh2><h2>Narrative: PNG- Key Accomplishmentsh2><h2>Narrative: PNG- Program Performanceh2> <h2>Narr</span> </blockquote><br> <h2></h2> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <h2>9 matches</h2> <br> <ul><li><a href="/search?l=zope%40zope.org&q=subject%3A%22%5C%5BZope%5C%5D+Re%5C%3A+html2pdf%22&a=1&o=newest">Advanced search</a></li></ul> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="zope@zope.org"> <label class="hidden" for="q">Search the list</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search zope" value="subject:"\[Zope\] Re\: html2pdf""> <input class="submitbutton" id="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <h2 class="hidden"> Site Navigation </h2> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"> <a href="/zope@zope.org" title="c" id="c">zope - all messages</a></li> <li class="icons-about"> <a href="/zope@zope.org/info.html">zope - about the list</a></li> <li class="icons-expand"><a href="/search?l=zope%40zope.org&q=subject%3A%22%5C%5BZope%5C%5D+Re%5C%3A+html2pdf%22&o=newest&f=1" title="e" id="e">Expand</a></li> </ul> </div> <div class="listlogo margintopdouble"> <h2 class="hidden"> Mail list logo </h2> </div> </div> <div class="footer" role="contentinfo"> <h2 class="hidden"> Footer information </h2> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> </ul> </div> <script language="javascript" type="text/javascript"> document.onkeydown = NavigateThrough; function NavigateThrough (event) { if (!document.getElementById) return; if (window.event) event = window.event; if (event.target.tagName == 'INPUT') return; if (event.ctrlKey || event.metaKey) return; var link = null; switch (event.keyCode ? event.keyCode : event.which ? event.which : null) { case 69: link = document.getElementById ('e'); break; } if (link && link.href) document.location = link.href; } </script> </body> </html>