Template PDF functions
| Name | Summary |
|---|---|
| anchor | Creates an internal link anchor (DEPRECATED). |
| create_index | Creates an index based on the specified keywords (DEPRECATED). |
| filled_circle | Creates a filled circle (DEPRECATED). |
| filled_rectangle | Creates a filled rectangle (DEPRECATED). |
| footer | Sets the footer (DEPRECATED). |
| footer_block | Inserts complex footers (DEPRECATED). |
| frame_header | Sets the header text (DEPRECATED). |
| frontpage | Adds content to the frontpage (DEPRECATED). |
| header | Inserts a header / title (DEPRECATED). |
| header_block | Inserts a complex header (DEPRECATED). |
| image | Inserts an image to the PDF document (DEPRECATED). |
| keyword | Adds a keyword to the keyword index (DEPRECATED). |
| line | Draws a line (DEPRECATED). |
| link | Inserts an external link (DEPRECATED). |
| new_line | Inserts a new line (DEPRECATED). |
| new_page | Inserts a new page (DEPRECATED). |
| page_number | Starts the page number counter (DEPRECATED). |
| set_font | Changes the default font (DEPRECATED). |
| set_margin | Sets the page margins or line spacing (DEPRECATED). |
| strike | Inserts striked text (DEPRECATED). |
| table | Inserts a table (DEPRECATED). |
| text | This function inserts formatted text into the PDF document (DEPRECATED). |
| text_box | Inserts text at a specified location (DEPRECATED). |
| text_frame | Inserts a text with a frame (DEPRECATED). |
| toc | Inserts a generated table of contents (DEPRECATED). |
| ul | Inserts a bullet list (DEPRECATED). |
In this section
- anchor Exponential Documentation
- create_index This function creates an index page from a collection of keywords. The keywords must be specified using the "keyword" PDF template function. The index will start on the next page, and consists of the specified keywords with their corresponding page number.
- filled_circle This function creates a filled circle with a given radius and color. The position of the circle is specified with the "x" and "y" parameters. The given coordinate must be within the page margins. The lower-left corner is at (0,0).
- filled_rectangle This function creates a filled rectangle. The "x" and "y" parameters specify the lower-left corner of the rectangle. The "width" and "height" parameters determine the size of the rectangle.
- footer Exponential Documentation
- footer_block Exponential Documentation
- frame_header Exponential Documentation
- frontpage This function makes it possible to add text to the front page. If the frontpage is not present, a new front page will be created when the function is used for the first time. This function should be called after all other content has been added to the PDF document. The "align" and "size" parameters
- header This function inserts a header or title. The main difference between the "text" and the header function is the "level" parameter. This parameter specifies the type of the header. The level number goes from 1 and up:
- header_block Exponential Documentation
- image This function makes it possible to insert an image. The image location or image source points to the root directory of the eZ publish installation. The image location is relative to this directory. Currently, the supported image types are "jpg" and "png" without alpha channel.
- keyword Exponential Documentation
- line This function draws a line. The line will be drawn from the (x1, y1) coordinate to the (x2, y2) coordinate. If the "pages" parameter is omitted or set to "current", the line will only be present on the current page. If "pages" is set to all, it will appear on all the pages. The thickness of the line
- link Exponential Documentation
- new_line This function inserts a new line.
- new_page Exponential Documentation
- page_number Exponential Documentation
- set_font This function makes it possible to change the default/current font and the text color, style, etc. The following list shows the fonts that can be used.
- set_margin Exponential Documentation
- strike Exponential Documentation
- table Exponential Documentation
- text Exponential Documentation
- text_box This function creates a text box at the specified place on the current page. The font properties (type, size, and color) are not affected by the "set_font" function.
- text_frame This function creates a text with a colored frame around it. The frame has the size of the text plus the amount of padding. The padding can be specified for each side of the text with the parameters "leftPadding", "rightPadding", "topPadding", and "bottomPadding". If the padding is equal for each si
- toc This function generates and inserts the table of contents after the front page. If the front page is not available, the table of contents is inserted at the beginning of the PDF document.
- ul This function inserts a bullet list into the PDF document.
Contributors
- Balazs Halasy Updated
- Lou Commenter
- Paul (eZ) Commenter
Comments (2 historical)
Written by readers of the earlier documentation sites, kept as they were.
Is PDF Export deprecated ?
Lou ·
I really don't understand how this is possible.
In my opinion, eZpublish developers should have come up with a replacement instead of simply "deprecating" all of these functions. Even if we all know these functions shouldn't be used, we are forced to use them still.
Or is the whole concept of exporting to PDF deprecated ?
I sincerely hope for an explanation from eZpublish.
Re: Is PDF Export deprecated ?
Paul (eZ) ·
Deprecated means it will be replaced by something else over time ... so for now, you can still use them (with the limitations it has)
Best regards
Paul