# PDF-Filler
QGIS plugin. It allows you to fill pdf forms with data from attribute table.

##Requirements:
- installed "fdfgen" module: https://github.com/ccnmtl/fdfgen/
- installed external program "pdftk server": https://www.pdflabs.com/tools/pdftk-server/

##Installation:
####Fdfgen

Open your "OSGeo4W" shell and type:

```python
pip install fdfgen
```

####Pdftk Server

Download it and install like every other program.

__IMPORTANT__: copy "bin" folder (it should contains two file: libiconv2.dll and pdftk.exe) to QGIS installation directory. It should overwrite QGIS one.

##Workflow:

![alt tag](https://github.com/DavidDzl/PDF-Filler/blob/master/img/plugin_screen.png)

1 - Select pdf you want to fill with some data (chosen pdf has 8 spots to fill).<br>
2 - If checked, it will add field to attribute table contains time and date of generated pdf.<br>
3 - If checked, it will generate pdfs for all features in selected layer and ignore current selection.<br>
4 - For each pdf fields choose field you want to put in (eg. in spot1 I want to put information from field "NAME_0").

Data used in this example are in "sample" folder.
