Re: WAComponent to PDF

Paul DeBruicker <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
Hi Hliaire, 

wkhtmltopdf has the --footer-url and --header-url options if you don't want
to create a complete document and instead just want to render a component.  

Then you can save the component to a HTML file and have wkhtmltopdf prepend
the header and append the footer to your content before doing the
conversion.  

Since the header/footer likely change infrequently vs the content it may be
an easier way to go. 


Hope this helps,

Paul



HilaireFernandes wrote
> Le 22/10/2015 18:38, Otto Behrens a écrit :
>>  (WAHtmlCanvas builder fullDocument: true)
>> rootBlock: [ :root |
>> root context visitor: (WARenderingGuide client: root context visitor).
>> root title: 'Form'.
>> root meta contentType: (WAMimeType textHtml charset: 'utf-8').
>> root stylesheet url: self stylesheetFileFullPath.
>> self addAdditionalBookmarksForRowsToRootIfNecessary: root ];
>> yourself
>>
>>
>> HTH
>> Let me know if you need more.
> 
> Hi Otto,
> 
> As the generated html file is read locally I get issue with the css path.
> 
> It renders the path to the style file as /files/MyFileLibrary/style.css
> but it should look like http://myHost/pathToCss/style.css when you want
> to read the html file locally.
> 
> The absolute path to style.css is purely constructed by Seaside, adding
> the host part does not make a valid url:
> http://myHost/files/MyFileLibrary/style.css is not valid.
> 
> How did you manage it? Are you serving your static files with Apache? I
> am not there yet and would like to find a pure Seaside solution. Is
> there a way to have a valid url, to a resource, with the http part in?
> So far I did not find it, but Seaside is so big.
> 
> Thanks
> 
> Hilaire
> 
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> http://google.com/+DrgeoEu
> 
> 
> _______________________________________________
> seaside mailing list

> [email protected]

> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside





--
View this message in context: http://forum.world.st/WAComponent-to-PDF-tp4857328p4858274.html
Sent from the Seaside General mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.