Skip to content

dakota/wk_html_to_pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

WkHtmlToPdf Plugin

A wrapper view class to allow easy use of WkHtmlToPdf with CakePHP 1.3 applications. If you need support for CakePHP 2.x, use https://github.com/ceeram/CakePdf

Background

WkHtmlToPdf is the least suckiest HTML to PDF converter, and there needs to be an easy to use CakePHP view class for it.

Requirements

Installation

Plugin installation

[Manual]

  1. Download this: http://github.com/dakota/wk_html_to_pdf/zipball/master
  2. Unzip that download.
  3. Copy the resulting folder to app/plugins

[GIT Submodule]

In your app directory type:

git submodule add git://github.com/dakota/wk_html_to_pdf.git plugins/wk_html_to_pdf
git submodule init
git submodule update

[GIT Clone]

In your plugin directory type

git clone git://github.com/dakota/wk_html_to_pdf.git wk_html_to_pdf

Wkhtmltopdf binary installation

Usage

Two simple ways to use:

Method 1:


    //Route.php
    Router::parseExtensions('pdf');

    //Controller or AppController   
    $components = array('RequestHandler', 'WkHtmlToPdf.WkHtmlToPdf');

Method 2:


    //In your action
    $this->view = 'WkHtmlToPdf.WkHtmlToPdf';

License

Copyright © 2011 Walther Lalk

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

About

[ABANDONED] A wrapper for WkHtmlToPdf for cakephp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages