Forums / Developer / is it possible to generate on fly PDF from search results ?

is it possible to generate on fly PDF from search results ?

Author Message

Lazaro Ferreira

Thursday 30 September 2004 1:59:36 am

Hi,

Which is the simplest way of producing an on fly pdf from a search result page ?

We see a pdf/searchline.tpl template in ezp standard templates, has it something to do with the question above ?

Lazaro

Lazaro
http://www.mzbusiness.com

Paul Forsyth

Thursday 30 September 2004 2:01:39 am

Im not sure if this is possible. I believe PDFs require a node from which to build but the search doesnt have a node.

Kare, can you confirm?

paul

Lazaro Ferreira

Friday 01 October 2004 8:33:18 am

Paul,

Something new on this ?

Lazaro
http://www.mzbusiness.com

Balazs Halasy

Sunday 03 October 2004 2:58:23 am

Hi Lazaro,

I think it would be possible to hack this in. Modify your search result page by adding an extra column. The search result will give you an array of nodes. Try to do the following for each row (within the new column):

...bla bla bla...
<td>
<a href={concat( '/content/pdf/', $:item.node_id )|ezurl}>PDF version</a>
</td>
...bla bla bla...

..where $:item is the current item within the node-result-array-loop in yourdesign/templates/content/searchresult.tpl (just copy the original one from the standard design and modify it).

Hope this helps.

Balazs / Allman

Lazaro Ferreira

Sunday 03 October 2004 5:49:06 am

Hi Balaz,

Thanks, We'll try it

Lazaro
http://www.mzbusiness.com

Joanie Chembars

Thursday 31 March 2005 11:13:13 am

Lazaro,
Did you have any luck with that code that was posted? I am looking for the same functionality......