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.

CommentFileSizeAuthor
Screenshots.png206.89 KBhunziker

Comments

avpaderno’s picture

Hello, hunziker. You need to create a sandbox project, and report the link here.

avpaderno’s picture

Status: Active » Postponed (maintainer needs more info)
hunziker’s picture

Hi 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

hunziker’s picture

Status: Postponed (maintainer needs more info) » Needs work
Anonymous’s picture

Hello Thomas,

Great project. Hope this will turn into a full project soon.

hunziker’s picture

Status: Needs work » Active

The project is know since a month in the queue. Can someone please review the project?

attiks’s picture

Status: Active » Needs work

I 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

rfay’s picture

Comments:

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

hunziker’s picture

I commit a new version with the following changes:

  • Libs are now located in "sites/all/libraries".
  • LICENSE.txt file is removed.
  • I apply the coding standards. (Coder tells no warring / error anymore.)
  • Default style plugin / default row plugin is now set.

See commit: 38b8c04

hunziker’s picture

Status: Needs work » Active
attiks’s picture

Status: Active » Reviewed & tested by the community

good enough for me ;p

rfay’s picture

Status: Reviewed & tested by the community » Fixed

Git Vetted User role granted.

Welcome, hunziker, and thanks for all your contributions in the past and upcoming.

hunziker’s picture

Status: Fixed » Needs work

Thanks for "upgrade" my account ;-)

rfay’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.