PDF Generation
Wiki / PDFGenerationBack to Snip <-- Previous Change
| Diff Summary | |||||
|---|---|---|---|---|---|
| Title | |||||
| Date | 2007-06-10 21:58:10 | 2007-06-10 22:22:12 | |||
| Editor | Herbert Poul | Herbert Poul | |||
| Tags | |||||
| 2007-06-10 21:58:10 by Herbert Poul | 2007-06-10 22:22:12 by Herbert Poul | ||||
|---|---|---|---|---|---|
| 47 | - srcfile - this is the .xhtml file (the rende | 47 | - srcfile - this is the .xhtml file (the rende | ||
| > | red body of the wiki snip) | > | red body of the wiki snip) | ||
| 48 | - destfile - the expected output file which wi | 48 | - destfile - the expected output file which wi | ||
| > | ll hold the .pdf file | > | ll hold the .pdf file | ||
| 49 | 49 | ||||
| 50 | ## wiki_pdf_generation_cachedir | 50 | ## wiki_pdf_generation_cachedir | ||
| 51 | 51 | ||||
| t | 52 | This is the "cachedir" where generated PDF files ( | t | 52 | This is the "cachedir" where generated PDF files ( |
| > | and .xhtml files) will be stored. | > | and .xhtml files) will be stored. (Default: /tmp/s | ||
| > | ct_pdf) | ||||
| 53 | |||||
| 54 | ## wiki_pdf_generation_static_filepath | ||||
| 55 | |||||
| 56 | For smileys to work (if you are including a board | ||||
| > | category in the wiki snip) you need to configure t | ||||
| > | his setting. It should point to the static directo | ||||
| > | ry - communitytools/static/sphene within the SCT r | ||||
| > | elease / SCT repository. | ||||
| 53 | 57 | ||||
| 54 | # Methods | 58 | # Methods | ||
| 55 | 59 | ||||
| 56 | The wiki snip contains a method 'pdf_enabled()' wh | 60 | The wiki snip contains a method 'pdf_enabled()' wh | ||
| > | ich will return True or False depending if PDF gen | > | ich will return True or False depending if PDF gen | ||
| > | eration is enabled (for the current user). | > | eration is enabled (for the current user). | ||
| 57 | 61 | ||||
Powered by Sphene Community Tools
