The project Views PDF aims to generate faster and better PDF's. The basic approach is to use the Views module to generate the PDF. Each field of the view can draw individually on the PDF.
Motivation
There are already some PDF solutions such as Print. But these solutions use the HTML output and converts this to PDF. The disadvantages of such an integration are:
- No control over page flow (e.g. page break).
- Little or no control over page header and footer.
- You need HTML skills to change the layout.
- The rendering is slow and need a lot of memory, because it need to render the HTML.
- Complex tables make troubles.
- Vector graphics can not be implemented, therefore the printing of the document can be problematic.
- You are limited by HTML's capabilities.
The complete generating of the PDF can be controlled in the admin UI of the view. In contrast to Print you don't need any HTML or CSS skills. In addition with the use of the PDF template, you can simply control the static content of the document. This template can be created by any PDF capable tool.
Demo
Under http://pdf.use-cases.customweb.ch/ you can find a demo of the module.
Screenshots
In the attachment you find some screenshots of the settings.
About the History of the Project
I started the project in the last summer in our company. We needed this for a customer project. In the September of 2010 we deployed the module in a live environment. In December 2010 we deployed it to two other live environments.
As there are at the moment no problems left, we decide to contribute this module to the Drupal community. Therefore no big commit logs exist.
About some critics or suggestions I am very happy.
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshots.png | 206.89 KB | hunziker |
Comments
Comment #1
avpadernoHello, hunziker. You need to create a sandbox project, and report the link here.
Comment #2
avpadernoComment #3
hunziker commentedHi kiamlaluno,
The sandbox project already exists. The link is here: http://drupal.org/sandbox/hunziker/1084012
The documentation can be found here: http://drupal.org/node/1086584
Comment #4
hunziker commentedComment #5
Anonymous (not verified) commentedHello Thomas,
Great project. Hope this will turn into a full project soon.
Comment #6
hunziker commentedThe project is know since a month in the queue. Can someone please review the project?
Comment #7
attiks commentedI tried it, some remarks
1/ You should install http://drupal.org/project/coder module to check your code follows the http://drupal.org/coding-standards
2/ When adding a page display, i get a missing plugin message, I have to select between table and field, maybe set one as default
3/ Same happens when switching between table and fields, missing plugin on row style
But, output looks great, so don't forget to run the code through coder and I'll check again
Comment #8
rfayComments:
* You need to delete the LICENSE.txt, as that's provided by the packaging system now.
* Sure would like to see tcpdf placed in sites/all/libraries (and support the libraries module). It's a much better situation. Not required for now.
This is quite a module, and I haven't looked at everything, but it looks to me to be professional, fine, easily approvable.
Looking forward to getting @hunziker's Git Vetted User approved so that Commerce Coupon can be promoted.
Comment #9
hunziker commentedI commit a new version with the following changes:
See commit: 38b8c04
Comment #10
hunziker commentedComment #11
attiks commentedgood enough for me ;p
Comment #12
rfayGit Vetted User role granted.
Welcome, hunziker, and thanks for all your contributions in the past and upcoming.
Comment #13
hunziker commentedThanks for "upgrade" my account ;-)
Comment #14
rfay