Trac pdf plugin




















After the plugin is enabled, a new administration panel will be available under the Wikiprint section, and 4 new download formats will be available in the Download in other formats section at the end of each wiki page:.

The default configuration for page exports may be provided using the Wikiprint administration page. These settings apply when not overriden by the user while exporting a PDF. The wiki page is stripped from Tracs footer, header and navigation. The resulting page only contains the wiki content. Styles will be used from the style page defined in the global configuration set with the administration panel.

Table of contents macros in the wiki page like [[PageOutline ]] or others are not stripped from the page. The wiki page is exported as a PDF file. A settings page similar to a "print dialog" is presented to the user before the actual export happens. This will create a book-like PDF document. While exporting the user is presented with a settings page to specify a cover page and whether a table of contents should be added. Styling may be changed by selecting one of the available style pages.

The cover page used for the book may be any wiki page. Common table of contents macros in the wiki page like [[PageOutline ]] or [[TracGuideToc ]] are removed from each wiki page. Each book starts with the cover page if any directly followed by the table of contents if enabled. Using the makro it is possible to define PDF books with any number of wiki pages a cover page and table of contents.

Additional options can be set by creating a wikiprint section in your trac. When using cookie based authentication, like AccountManager , the xhtml2pdf library is given a temporary cookie to authenticate the user, so the conversion process will have the same permissions as the user downloading the. WikiPrint adds several download formats to the bottom of the wiki page. Following is the description of the available formats. PDF article can be used to combine several wiki pages too, from the administrative interface.

This format will create a book-like PDF document. A front page that can show title, subject, date and version is inserted at the beginning of the document. A 'Table of Contents' is also inserted after the front page. Any further occurrences of [[PageOutline]] will be removed.

Different wiki pages will be separated by a page break. This option will just convert to wiki text to HTML , and display it in the browser with some styles, so it can be printed directly from the browser. When enabling the plugin, a new WikiPrint panel will be available in the administration panel.

Published hacks are listed in the HackIndex. The list is meant for discussion about trac-hacks. Use it to suggest new features, discuss ways to improve the website, report issues that you come across, stuff like this.

Any feedback is highly appreciated. Please note however that the trac-hacks mailing list is not meant for support requests for any of the plugins provided on trac-hacks.

Powered by Trac 1. Registered usernames can no longer be used by an anonymous author Until now a registered user has been able to make a change without authenticating, by entering their username in the author field.



0コメント

  • 1000 / 1000