Skip to content

croxton/Pdfcrowd-Craft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Pdfcrowd for Craft CMS 2.x

Version 1.0.0

This plugin allows you to generate PDFs of your webpages using Pdfcrowd API v2

Requirements

  • Craft 2.x
  • A Pdfcrowd account

Installation

  1. Copy the pdfcrowd folder to ./craft/plugins/

  2. Open your craft/config/general.php file, and add pdfCrowdApiUser and pdfCrowdApiKey to your environmentVariables array:

    'environmentVariables' => array(
    	'pdfCrowdApiUser' => '',
    	'pdfCrowdApiKey' => '',
    ),

Usage

{# convert the current url #}
{{ craft.pdfcrowd.convert() }}

{# hardcode the url #}
{{ craft.pdfcrowd.convert('https://www.mywebsite.com/my/webpage') }}

{# specify a filename #}
{{ craft.pdfcrowd.convert({
	filename : 'my_pdf'
}) }}

{# Specify a URL and filename #}
{{ craft.pdfcrowd.convert({
	url : 'https://www.mywebsite.com/my/webpage',
	filename : 'my_pdf'
}) }}

About

PDF Crowd for Craft 2.x

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages