承接 dnadesign/silverstripe-generatepdf 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dnadesign/silverstripe-generatepdf

Composer 安装命令:

composer require dnadesign/silverstripe-generatepdf

包简介

This module generates a PDF version of a page

README 文档

README

Introduction

This extension allow for a PDF version of any page to be created and served either via a direct link to the generated file or via a method that triggers the download of the generated pdf.

Requirements

Installation

composer require "dnadesign/silverstripe-generatepdf" "dev-master"

Extend any page type with the GeneratePDF extension as well as the page type controller with GeneratePDF_Controller extension. This can be done via the SilverStripe YAML config API

mysite/_config/app.yml

Page:
  extensions:
    - GeneratePDF
   
Page_Controller:
  extensions:
    - GeneratePDF_Controller

Define WKHTMLTOPDF path To use the library locally, you can define the path in the yaml file

Page:
	wkhtmltopdf_binary: /usr/local/bin/wkhtmltopdf

Configuration

The AutoGeneratePDF extension refreshes the generated pdf upon publish. Everytime you republish a page with the extension GeneratePDF, the previous version of the pdf is deleted and a new one is recreated, keeping the generated file always up-to-date with the live version.

Page:
  extensions:
    - AutoGeneratePDF

The PublishRefreshPDF allow for subpage to publish automatically the parent page in order to regenerate the pdf. It can also be used with silvertsripe-elemental to trigger the page publish when a widget (element) is published.

SubPage:
  extensions:
    - PublishRefreshPDF
    
 BaseElement:
  extensions:
    - PublishRefreshPDF

统计信息

  • 总下载量: 111
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 18
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-04-27