Hello
How can I make a PDF available for the visitors automatically when they view an Articles/Entry.
The entry should also be downloaded in PDF automatically.
How can i achieve that in EE 2.2 ?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
June 24, 2011 6:26am
Subscribe [2]#1 / Jun 24, 2011 6:26am
Hello
How can I make a PDF available for the visitors automatically when they view an Articles/Entry.
The entry should also be downloaded in PDF automatically.
How can i achieve that in EE 2.2 ?
#2 / Jun 24, 2011 6:46am
Hi Ibn
If you mean ‘people who are not logged in’ then you could use this within your Entries tag:
{if logged_out}
<a href="http://{pdf_file_field_name}">Here's a link to a {title} PDF…</a>
{/if}This would only be visible to guests.
Option 2:
If you mean that a PDF version of the Entry content must be generated on the fly, then you could use a PRINT CSS stylesheet and a link to allow people to print the article, they can then choose to make a PDF using their normal PDF writer or print out a hard copy.
Option 3:
Use a plugin like this: http://devot-ee.com/add-ons/tcpdf/ to do the above, but the file is downloaded as a PDF.
Hope that helps.
#3 / Jun 24, 2011 7:15am
@Matt:P
Thanks for the reply
In short, i need the guests to be able to download a PDF version of the article they are viewing.
I tried the tcpdf addon, but decided to not use it for a reason i cant recall.
I’ll try out your Option 1 and see how it goes.
I just need to show a small PDF icon on the top right of the article, where the guest can click to download the same article as PDF.
#4 / Jun 24, 2011 7:23am
OK, so my option 1 will render a link to a manually created PDF which is uploaded as part of the Entry creation process…
make sense?
#5 / Jun 24, 2011 7:33am
manually created, hmm
Is there a way to transform the article/entry automatically to PDF format and make it available for download ?
The manual way is fine but it does add extra work since the articles would number in the 1000’s
#6 / Jun 24, 2011 7:41am
That’s what I thought. I would only do it that way if it was more of a brochure style PDF, which had been put together by a graphic designer…
So, what about option 2? (rendering a print media page using CSS)
#7 / Jun 24, 2011 8:02am
The purpose is not for the guests to print the article in pdf format, rather to give them a PDF file for offline viewing of the article, as some articles will be quite long.