Path

ez projects / paradoxpdf / forum / general / html preview of pdf before... / re: html preview of pdf bef...


HTML preview of pdf before download

You need to be logged in to post messages in the forums. New users may register here.

Marjolaine Weibel

Member since:
21 September 2009

Posts: 3

Monday 28 June 2010 5:59:45 pm

Hi,

First allow me to say that I've been craving to find such an extension, thanks!

I'd like to customize my PDF template. So i copied paradoxpdf_layout.tpl to my_extension/design/templates. And I can download the PDF with /content/view/pdf/node_id. But each time i modify my template, i have to download the PDF again.
Is there ny any chance an URL where i can get an HTML view of the pdf layout, like /layout/set/print/ does ?

Thanks much!
Up

Karnichi Mohamed

Member since:
11 February 2008

Posts: 72

Monday 28 June 2010 10:33:51 pm

hello Marjolaine,

During template development , just replace the last line in the paradoxpdf_layout.tpl




{paradoxpdf($paradoxpdf_params)}




by




{*paradoxpdf($paradoxpdf_params)*}


{$xhtml}


 


So the first line disables the pdf generation and the second line outputs the html to the browser. As an alternative to this, enable debug in paradoxpdf.ini then you will have html files stored in var/paradoxpdf directory

hope this will help you

http://www.amiralweb.com Certified eZPublish Expert

Up

Marjolaine Weibel

Member since:
21 September 2009

Posts: 3

Tuesday 29 June 2010 4:21:36 pm

Hello Mohamed,

Your change works very well, merci beaucoup!

I have one more question, if i may (maybe that should be another thread) :
Would you know a way to replace the path /content/view/pdf/node_id by something like /path/to/my/node_url_alias/pdf ? I would say Apache or URL Wildcards but i don't know how the association node_id / node_url is made…

Thanks for your kind help & extension!

M
Up

You need to be logged in to post messages in the forums. New users may register here.