Cover page and TOC

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

Wei Dai

Member since:
01 April 2008

Posts: 12

Wednesday 10 June 2009 8:26:05 pm

Hi,
How do I insert cover page and a blank page for my PDF?
And, is there a way to create TOC with clickable links? Bookmarks?

Certified eZ Publish 4 developer looking for develop information & collaboration.

Up

Karnichi Mohamed

Member since:
11 February 2008

Posts: 72

Thursday 11 June 2009 2:57:24 am

Hi,

I spent much time to write the documentation. So please read first the documentation then if you need information post your question in the forum.

Thanks

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

Up

Wei Dai

Member since:
01 April 2008

Posts: 12

Wednesday 01 July 2009 4:25:32 am

Yes, I understand how to do the TOC.

I mean, how do I insert a page, e.g. a cover or a blank page, which don't have the header and footer; and it also not take into the count of the total number of the pages.

Same for the TOC page, how to make it not in the count of the total number pages?

Certified eZ Publish 4 developer looking for develop information & collaboration.

Up

Karnichi Mohamed

Member since:
11 February 2008

Posts: 72

Wednesday 01 July 2009 7:08:52 am

Great,


Suppose your content is structured like this





































































































































































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

Up

Wei Dai

Member since:
01 April 2008

Posts: 12

Thursday 02 July 2009 4:13:17 am

Thank you!!!

Certified eZ Publish 4 developer looking for develop information & collaboration.

Up

Wei Dai

Member since:
01 April 2008

Posts: 12

Friday 03 July 2009 2:36:02 am

Hi,
We have created the cover and TOC successfully. However, there is an extra blank page at the very beginning of the PDF file. Weird!
We have checked the css style and the mark up. It seems fine. How we got the blank page?

Certified eZ Publish 4 developer looking for develop information & collaboration.

Up

Karnichi Mohamed

Member since:
11 February 2008

Posts: 72

Friday 03 July 2009 3:18:42 am

Hi,

I guess that there is an element, in your first block, that uses "page-break-before " of "page-break-after" rule.
I need the css and the XHTML to figure out the blank page cause.

Thks

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

Up

Wei Dai

Member since:
01 April 2008

Posts: 12

Sunday 05 July 2009 8:20:29 pm

Hi,
I think I uses the correct "page_break_before" on the correct element, which is a first level titles.

Here is the css:
@page blank {
size: a4 portrait;
margin: 0.25in;
padding: 1em;
@top-left {
content: normal
}
@bottom-left {
content: normal }
@top-right {
content: normal }
@bottom-right {
content: normal }
@bottom-center{
content: normal }



}

.blank { page : blank; }

And, the basic structure of my html:


































































































































































































Certified eZ Publish 4 developer looking for develop information & collaboration.

Up

Karnichi Mohamed

Member since:
11 February 2008

Posts: 72

Tuesday 07 July 2009 2:02:16 am

Hi,

There is no known issue about blank pages. Try to fix this by playing with CSS styles. Is that all CSS you use for rendering the page ?

Thx



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

Up

Wei Dai

Member since:
01 April 2008

Posts: 12

Tuesday 07 July 2009 3:23:43 am

Ok. I'd thought the css info was enough. Here is all the css I think is relevant to this problem:




































































































































Certified eZ Publish 4 developer looking for develop information & collaboration.

Up

Karnichi Mohamed

Member since:
11 February 2008

Posts: 72

Tuesday 07 July 2009 3:43:06 am

It's hard to figure out where is the problem.
Try to start with an empty layout, that contains just some simple elements, like in the first example. As I can't run your template on my testing environement, send me by mail the resulting xhtml, and the used css files on a ziped file. I will try to run it.


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

Up

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