承接 strongbond/pdf-filler-laravel 相关项目开发

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

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

strongbond/pdf-filler-laravel

最新稳定版本:1.0.2

Composer 安装命令:

composer require strongbond/pdf-filler-laravel

包简介

Using this pdf filler we can fill forms as well as add signature

README 文档

README

This packages helps you fill pdf as well as add signature ,using free linux tools.

Step 1 :

sudo apt-get install imagemagick

sudo apt-get install pdftk

sudo apt-get install poppler-utils

Step 2

comment the below line on /etc/ImageMagick-6/policy.xml

<policy domain="coder" rights="none" pattern="PS" />

<policy domain="coder" rights="none" pattern="PS2" />

<policy domain="coder" rights="none" pattern="PS3" />

<policy domain="coder" rights="none" pattern="EPS" />

<policy domain="coder" rights="none" pattern="PDF" />

<policy domain="coder" rights="none" pattern="XPS" />

Step - 4

php artisan vendor:publish

This will create a config file[pdffiller.pdf] in config folder.

Keep all the pdf to be filled inside the folder that you have specified in the config file. Cause the program will search in that folder for the pdf file that you will supply in the function.

The program bascially creates a sub folder [pdata] and keep all the modified pdf in that folder.

How to use ?

  $pdfObj = new PdfFiller();    
  $pdfObj->fill(['First Name' => 'John', 'License Period' => '2 Years',
'signatures' => [
    ["pg_no" => 2, "image_loc" => 'S3_URL', "bottom" => "300", "left" => "150"], 
    ["pg_no"=>  1, "image_base_64"=> "data:image/jpeg;base64 ..." ,"bottom"=>"102","left"=>"25"]
    
]], "doctor_melvin.pdf", "doctor_melvin_filled.pdf"));

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2022-07-28