https://github.com/creecros/task2pdf
Kanboard - Task2PDF
https://github.com/creecros/task2pdf
kanboard kanboard-plugin pdf pdf-generation print
Last synced: about 1 month ago
JSON representation
Kanboard - Task2PDF
- Host: GitHub
- URL: https://github.com/creecros/task2pdf
- Owner: creecros
- License: mit
- Created: 2018-10-01T15:48:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-21T18:22:58.000Z (about 1 year ago)
- Last Synced: 2024-10-13T12:31:28.752Z (6 months ago)
- Topics: kanboard, kanboard-plugin, pdf, pdf-generation, print
- Language: PHP
- Homepage:
- Size: 21.1 MB
- Stars: 54
- Watchers: 6
- Forks: 7
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Checkout our latest project
[](https://github.com/docpht/docpht)- With [DocPHT](https://github.com/docpht/docpht) you can take notes and quickly document anything and without the use of any database.
-----------
[](https://github.com/creecros/Task2pdf/releases)

[](https://github.com/creecros/Task2pdf/graphs/contributors)

Donate to help keep this project maintained.
**Due to a lack of time, I will no longer Maintain this project, consider it Archived. If you wish to maintain, seek me out.**
**:star: If you use it, you should star it on Github!**
*It's the least you can do for all the work put into it!*# Task2PDF
Convert a Task to a PDF, Printer Friendly!
# What do?
* Install plugin
* Gain sidebar item to "Create PDF"
* PDF is created that is simple and printer friendly
* Win!
* Support for CJK Characters!
* New Feature: Print all open tasks in a project to one PDF.
* New Feature: Can embed attached files to PDFs*To turn on CJK Support, go to **Settings > Application Settings**, and the toggle will be located toward the bottom of the page.*
# How can I make Task2pdf utilize my plugin?
1.) Utilize any hook that exists in the templates, to insert your own templates in desired locations.
```
template:subtask:table:header:before-timetracking
template:task:details:top
template:task:details:bottom
task2pdf:printlayout:beforedetails
task2pdf:printlayout:beforedescription
task2pdf:printlayout:beforesubtasks
task2pdf:printlayout:beforefiles
task2pdf:printlayout:beforeinternallinks
task2pdf:printlayout:beforecomments
task2pdf:printlayout:bottomoflayout
```2.) For image display using internal links you have 2 options.
Option 1: Pass html to printModel->preparePrint function, and then through markdownPlus. *Must have plugin MarkdownPlus installed*
`$this->text->markdown($this->task->printModel->preparePrint($task['description']), isset($is_public) && $is_public)`Option 2: Prepend `data:image/png;base64,` to src in img tags, and base64_encode the image data
``
# Screenshots?
## Menu item:
*Create PDF of a task*

*Create PDF of all open tasks in a project*

## [Example PDF](https://github.com/creecros/Task2pdf/blob/master/Misc/1_Test%20Task.pdf):
![]()
*Embeded files in PDF

## Option panel located in Settings > Application Settings
