Giter Site home page Giter Site logo

abstract.pfg2pdf's Introduction

abstract.pfg2pdf

A PFG action for creating and downloading a PDF built with data from user input.

Usage

Add Form Folder and add a FormToPDFAdapter to it.

On the adapter, in the field PDF-Body Template you can insert the ZPT code that will be used to generate the PDF. In the field download timeout you can set the amount of seconds that will pass before the download starts.

Once you add the form adapter to the form, the pdf_redirect view will be applied to the thanks page configured in the form. In this way, whenever the user gets to the final page the download will start after the timeout you set on the adapter.

NOTE: if you create/change the thanks page associated w/ the form, remember to apply the view to it.

You can do it by goint to this URL: http://myplone/myform/thanks-page/setLayout?layout=pdf_redirect.

Installation

Install abstract.pfg2pdf by adding it to your buildout:

[buildout]

 ...

 eggs =
     abstract.pfg2pdf

and then running "bin/buildout"

Dependencies

Depends on abstract.wkhtmltopdf to generate the PDF.

TODO

  • handle redirect to thank you page

Contribute

Support

If you are having issues, please let us know. We have a mailing list located at: [email protected]

License

The project is licensed under the GPLv2.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.