该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

PDF or image generator

描述

It provides the following functionalities

  • Converting webpage content, HTML string or file into image.
  • Converting webpage content, HTML string or file into PDF.

Getting Started

Configuration

  • Go to plugin settings page through settings menu or settings link under plugin name in the plugins page.
  • Download wkhtmltox from here.
  • Run that executable file then it will create wkhtmltox folder. Enter the absolute path of the files inside wkhtmltox->bin files.

Usage

  • We have to call the following function with specified paramters and it will return the generated PDF/image path.

    PDFIG_generate($src, $src_type, $dest_file_name, $conversion_type);

    • $src is required, expected string. Ex: “http://osmosys.asia”, “home/osmosys/test.php” etc.
    • $src_type is required, expected string. It specifies what is the source type, It can be one of the 3 values which are specified in the possible values. Possible values: “TEMPLATE_PATH”, “HTML_STRING”, “URL”.
    • $dest_file_name is optional, expected string. It is the file with which file will get downloaded. Ex: “test” etc.
    • $conversion_type is optional, expected string. It specifies to which format we have to convert the given source, it can be one among the 2 values which are specified in the possible values. Possible values: “PDF”, “IMG”.
  • Simply insert the following shortcode [PDFIG_generator_demo] for a demo page.

屏幕截图

  • PDF or image generator settings page.
  • PDF or image generator demo page.

安装

Automatic installation

  • Go to the ‘Plugins’ menu in WordPress and click ‘Add New’
  • Search for ‘PDF or image generator’ and select ‘Install Now’
  • Activate the plugin when prompted

Manual installation

  • Upload the ‘pdf-img-generator’ folder to the ‘/wp-content/plugins/’ directory
  • Activate the plugin through the ‘Plugins’ menu in WordPress

常见问题

Installation Instructions

Automatic installation

  • Go to the ‘Plugins’ menu in WordPress and click ‘Add New’
  • Search for ‘PDF or image generator’ and select ‘Install Now’
  • Activate the plugin when prompted

Manual installation

  • Upload the ‘pdf-img-generator’ folder to the ‘/wp-content/plugins/’ directory
  • Activate the plugin through the ‘Plugins’ menu in WordPress
Where can I contribute to this plugin?

https://github.com/OsmosysSoftware/pdf-image-generator

评价

此插件暂无评价。

贡献者及开发者

“PDF or image generator” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“PDF or image generator”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.0.1

  • Initial release.