承接 thousandmonkeys/m2-restpdf-module 相关项目开发

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

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

thousandmonkeys/m2-restpdf-module

Composer 安装命令:

composer require thousandmonkeys/m2-restpdf-module

包简介

Module for magento2 to allow invoice pdfs from eadesignro/module-pdfgenerator to be obtained through a rest end point.

README 文档

README

Module for magento2 to allow invoice pdfs from eadesignro/module-pdfgenerator to be obtained through a rest end point. It requires (and installs) eadesignro/module-pdfgenerator to actually create the pdfs.

Tested and working on magento 2.2.7 and 2.3.7.

Installation

  • composer require thousandmonkeys/m2-restpdf-module
  • php bin/magento setup:upgrade
  • php bin/magento setup:di:compile

Usage

There is now a rest end point at /V1/invoices/:id/pdf/:template

  • :id is the invoice id
  • :template is the template id (from eadesignro/module-pdfgenerator)

The output is in the form

{
   "pdf": "xxxxx"
}

Where xxx is the pdf encoded with base64. You can quickly check the output by putting it in a file called pdf.json and opening json.pdf after running this command cat pdf.json | jq -r '.pdf' | base64 -d > json.pdf

Getting module-pdfgenerator to actually work

You need to patch eadesignro/module-pdfgenerator for it to work as its been abandoned.

These composer patches fix it for the most part (emailing pdfs is still probably broken for instance).

            "eadesignro/module-pdfgenerator": {
                "Pull: https://github.com/EaDesgin/magento2-pdf-generator2/pull/101": "https://patch-diff.githubusercontent.com/raw/EaDesgin/magento2-pdf-generator2/pull/101.patch",
                "Pull: https://patch-diff.githubusercontent.com/raw/lingwooc/magento2-pdf-generator2/pull/1": "https://patch-diff.githubusercontent.com/raw/lingwooc/magento2-pdf-generator2/pull/1.patch"
            },

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2019-03-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固