<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.18.3">
</HEAD>
<BODY>
<BR>
Op maandag 10-01-2011 om 01:12 uur [tijdzone -0800], schreef Boris Popov, DeepCove Labs:
<BLOCKQUOTE TYPE=CITE>
<PRE>
That code is primarily to render XHTML to a string and then feed it to PRDreactor for conversion to PDF; returning of the bytes in the response is using #respond: as expected. My latest version looks like the following at the moment,

Component&gt;&gt;asPDF

| xhtml |
xhtml := (RenderCanvas builder)
                fullDocument: true;
                documentClass: WAHtmlDocument;
                rootBlock: 
                        [:root |
                        root beXhtml10Strict.
                        root style add: (Styles default documentForFile: 'print.css').
                        root style add: 'svg {-ro-replacedelement: ''com.realobjects.xml.formatters.SVGFormatter'';}'];
                render: [:html | html render: self].
^(PDFreactorClient default convertXHTML: xhtml) bytes
 
-Boris

</PRE>
</BLOCKQUOTE>
Thanks a lot Boris. That is exactly what I needed. I did a first quick implementation and it works for me too. Have to look into my composition of stylesheets to get it right. Maybe this code snippet can be added to the PDF faq on seaside.st?<BR>
<BR>
- <BR>
Arthur<BR>
<BR>
</BODY>
</HTML>