Forums / Setup & design / Design templates for PDF exports

Design templates for PDF exports

Author Message

Mark Overduin

Friday 05 December 2003 6:47:26 am

Hi,

I recently installed ezPublish 3.3.0-1 just to try it out.

I found out that articles (or whatever you select) can be exported to PDF. Very nice!
But is it also possible to create a designtemplate for it? So I can use backgrounds, images, etc. which I can print and 'view the website (or just the news articles) on paper'?
Or, if this feature is not already present (haven't found it), will it be in the future? Or is it possible I create something to make this happen?

- - - - -

Btw, I also tried to install a 'plain' version, but no PDF Export was available. How can I add it manually?

-- Mark

Mark Overduin

Friday 19 December 2003 5:37:42 am

Anyone?

Note: The ez people should really fix the ORDER BY stuff in their forum! Why not order the topics by latest reply, instead of creation date???

Marco Zinn

Sunday 21 December 2003 1:35:32 am

Hi,
PDF export ist based on Templates, too (info from ez).
These were not included in the 2 beta release (at least, i didn't find them either).

Marco
http://www.hyperroad-design.com

Kåre Køhler Høvik

Sunday 21 December 2003 8:47:42 am

Hi

The templates for datatypes are placed under: design/standard/templates/content/datatype/pdf/

The main templates for fetching content and displaying it is : design/standard/templates/node/view/pdf.tpl

A pdf tutorial will be published as soon as possible.

Kåre Høvik

Kåre Høvik

Mark Overduin

Monday 22 December 2003 1:39:55 am

Kåre, do you have any idea how soon is possible? :)

Days, weeks maybe? And on what section of this website can this tutorial be found?

Thanx!!

Kåre Køhler Høvik

Monday 22 December 2003 1:41:38 am

Hi

I'll try to finnish it and publish it today. It'll be available under documentation somewhere. I'll notify you here in this thread as soon as it's available.

Kåre Høvik

Kåre Høvik

Mark Overduin

Wednesday 24 December 2003 1:06:26 am

Kåre, did you have the time to finish the PDF tutorial?

-- Mark

Mark Overduin

Tuesday 30 December 2003 1:00:48 am

Did you have time to finish the tutorial?

Kåre Køhler Høvik

Friday 02 January 2004 7:11:41 am

Hi

I'm sorry for the delay, but the days before xmas with the 3.2-4 and 3.3 release where quite buisy.

http://ez.no/developer/ez_publish_3/documentation/incoming/pdf_export_tutorial

More on the pdf specific template functions will come later, and also see comments in original pdf templates.

--
Kåre Høvik

Kåre Høvik

Kåre Køhler Høvik

Friday 02 January 2004 8:40:51 am

PDF function documentation is currently being added here : http://ez.no/developer/ez_publish_3/documentation/incoming/pdf_template_operators

--
Kåre Høvik

Kåre Høvik

Marco Zinn

Friday 02 January 2004 9:35:13 am

Hi back again, Kaare.
We've been waiting for the PDF docu... but you deserved some holidays ;)

Marco
http://www.hyperroad-design.com

Mark Overduin

Friday 16 January 2004 7:39:56 am

I followed the PDF tutorial, but I just get plain text in my .pdf files. Changed the size of text in every pdf template, but it still doesn't work...

Here's what I did:
- I created the templates mentioned in the pdf export tutorial
- I placed them under '/design/mydesign/override/templates/content/pdf/'
- Changed the file 'site.ini.append.php' in '/settings/siteaccess/mysiteaccess'
- Changed the values of text size 'everywhere' to check if my 'updates' would take effect. Apparently not... :(

In the pdf export tutorial, you (Kåre) refer to classid=9, but that one does NOT exist. So I created a pdf class (which has classid=22, changed it in site.ini.append.php), but I don't really know what kind of fields to put in there...
Anyhow, I don't have a very good feeling about this (the stuff the I'm doing; it should just work).

Could you please help me with this?

Thanx in advance...

-- Mårk

Mark Overduin

Friday 23 January 2004 6:52:40 am

Anyone?

Mark Overduin

Friday 30 January 2004 5:10:19 am

And again..... anyone?

Kåre Køhler Høvik

Friday 30 January 2004 6:07:07 am

Hi

Is the sited access/design you added the PDF templates for the same site access you're making the PDF export from ?

I added a new feature in trunk in rev. 4942 for generating PDF's on the fly. It's a new view in the content module, and can be accessed using content/pdf/<nodeID>. User roles must be set up just like when using content/edit and content/view.

To get the new feature in 3.3, in the root of your eZ publish installation, run :
svn merge -r 4941:4942 http://pubsvn.ez.no/nextgen/trunk

--
Kåre Høvik.

Kåre Høvik

Mark Overduin

Friday 06 February 2004 6:28:59 am

The site access/design is the same site access i'm making the pdf exports from.

I can't seem to run 'svn merge -r 4941:4942 http://pubsvn.ez.no/nextgen/trunk'... Probaboy not the right permissions...

Anyways, I'll try to download and install the newest ezPublish, perhaps it 'fixes' the "problem"

-- Mark

Mark Overduin

Friday 13 February 2004 5:36:07 am

Hmm, just installed the latest ezPublish release, but still the problem remains... And this class 9, it just doesn't exist. Guess that's why the designtemplates don't work.

Kare, you refer to class 9 in 'override.ini.append'* (in http://ez.no/ez_publish/documentation/incoming/pdf_export_tutorial):

[documentation]
Source=node/view/pdf.tpl
MatchFile=content/pdf/documentation.tpl
Subdir=templates
Match[class]=9

But, since class 9 does not exist...... How do I create it? Or, if the class exists, but the class id has to be different, please let us know...

-- Mark

(* By the way, the file 'override.ini.append' does not exist in /settings/override/, but it does in /settings/siteaccess/corporate/, (corporate, because I installed a default page). Anyway, should this be the correct path?)

Kåre Køhler Høvik

Monday 16 February 2004 4:27:58 am

Hi

The class numbers in the tutorial is just examples. Please replace them with existing class ID's you would like to create overrides for.

Kåre Høvik

Mark Overduin

Friday 20 February 2004 5:49:26 am

>The class numbers in the tutorial is just examples. Please replace them with existing class ID's you would like to create overrides for

Okay. And, do I need to create a new class? I mean, what do I need to do to get these PDF exports to work with a nice design? Please explain it to me, I'd really appreciate it.

-- Mark

Mark Overduin

Tuesday 02 March 2004 2:55:04 am

.......anyone?