Download a PDF File

Author Message

Edavalath prashanth Narayanan

Thursday 24 November 2005 9:43:32 am

Hi,
While creating an Article ,iam uploading a PDF file along with it (customised the Article class to accomodate the PDF file Upload). The uploaded PDF files resides in var/admin/storage/original/application/ but its not visible in USer site.
I have overrided the full.tpl for the articles and the PDF download link is showing a url "index.php/site-name/content/pdf/252".
Its showing a blank page..

Iam using ez 3.6.1 .

Please help..
Regards

Gurudutt Verma

Thursday 24 November 2005 1:18:05 pm

Hi Edavalath

The link
site url../index.php/site-name/content/pdf/252
is a strong feature of ez publish to convert object/your article in to pdf file, and to view your article in pef format you have to customize your article.

Finnaly your problem is you want to see/download the uploaded pdf file for that you have to look in to proper article and create a override and see if there is something like
{attribute_view_gui attribute=$node.object.data_map.yourattributename}

which will show proper display for your upload file.
and to see that

site url../index.php/site-name/content/view/full/252

All the best :-)

Clemens T

Thursday 24 November 2005 2:02:49 pm

I agree Gurudutt, it's a strong feature of ezpublish. But it still contains loads of bugs/shortcomings(the pdf generating process):.

A good feature for eZ would be (concerning the pdf):

- Creating a normal template
- Render the generated html to a pdf lib
- Stream the created pdf

This would be the best way of ezpublish pdf support. Cause, if you try doing something with bullet lists, tables, images etc etc in the current pdf templates. That's just 'hell'.

Maybe you can comment on this idea.
Thanks!
Clemens

Jones Down

Tuesday 29 November 2005 9:56:40 am

Hi Clemens,

>But it still contains loads of bugs/shortcomings(the >pdf generating process)

could you please give some hints about that problems? I am quit new to ezpublish and did not read anything aboput errors with pdf generation, so maybe I am a marketing victim. Where can i find more info on these errors, what minefileds I am wading into right now???

THANKS!

J.

Nathan Kelly

Tuesday 29 November 2005 3:53:18 pm

Hi Jones, Clemens is right about the PDF feature containing loads of bugs/shortcomings, however depending on what you need to do it is still very able to output a decent file.

The biggest issues are as Clemens said, bulleted lists, tables and images. Some other issues are setting line breaks that are "not" 100 pixels high, lines not rendering where they should and positioning can be tricky also.

I spent about 4 hours setting up my PDF export (basically a formal letterhead layout) and it works pretty well (with a couple of exceptions). So don't be too discouraged, the feature is still very handy if you have a little patience with it.

Cheers!

Pardon me while I burst into flames...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.