An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

## Checkout our latest project
[![](https://raw.githubusercontent.com/docpht/docpht/master/public/assets/img/logo.png)](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.
-----------
[![Latest release](https://img.shields.io/github/release/creecros/Task2pdf.svg)](https://github.com/creecros/Task2pdf/releases)
![GitHub license](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-no-red.svg)](https://github.com/creecros/Task2pdf/graphs/contributors)
![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)
![Downloads](https://img.shields.io/github/downloads/creecros/Task2pdf/total.svg)

Donate to help keep this project maintained.

Donate with PayPal button

**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*

![image](https://user-images.githubusercontent.com/26339368/46331051-f5fc4980-c5e3-11e8-8d3c-f1d023ee20eb.png)

*Create PDF of all open tasks in a project*

![image](https://user-images.githubusercontent.com/26339368/56245029-5a589500-606c-11e9-85f3-af77617d9219.png)

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


*Embeded files in PDF

![image](https://user-images.githubusercontent.com/26339368/104648839-c1f8a580-5681-11eb-8e6c-a6c7c8f7acd9.png)

## Option panel located in Settings > Application Settings

![image](https://user-images.githubusercontent.com/26339368/104648953-f1a7ad80-5681-11eb-8c89-ff4beba6622c.png)