当前位置:网站首页>PHP 图片转PDF
PHP 图片转PDF
2022-08-04 15:13:00 【小洪帽i】
下载html2pdf:
链接: https://pan.baidu.com/s/1DBMb01raWqgWwMZPn-KKAQ
提取码: 95yk
//引入PDF类
require("pdf.php");
//定义图片路径
$image = './1.jpg';
//实例化
$pdf = new \FPDF();
$pdf->AddPage();
//设置PDF的边缘位置
$pdf->Image($image,20,40,170,170);
//输出PDF页面
$pdf->Output();
//转换成文档并保存 第一个参数:你转换的文件名称,可以自己设置名称 第二参数为:F
$pdf->Output('./1.pdf',"F");
详情看官网:convert image into pdf using php – Ishakali
FPDF文件介绍和下载:FPDF
边栏推荐
- leetcode: 259. Smaller sum of three numbers
- Redis-哨兵模式
- 技术分享| 小程序实现音视频通话
- Hangzhou Electric School Competition (Counter Attack Index)
- 游戏网络 UDP+FEC+KCP
- 基于 Next.js实现在线Excel
- 本周讨论用户体验:Daedalus 的 Nemo 加入 Ambire,探索加密海洋
- Technology sharing | Description of the electronic fence function in the integrated dispatching system
- Flutter 运动鞋商铺小demo
- 素士科创板IPO撤单,雷军失去“电动牙刷第一股”
猜你喜欢
ping的原理

快速整明白Redis中的字典到底是个啥

remote: Check Access Error, please check your access right or username and password!fatal: Authenti

leetcode:215无序数组中找第k大的元素

技术分享| 融合调度系统中的电子围栏功能说明

16. Learn MySQL Regular Expressions

Compound Refractive Lenses for X-ray Focusing

Semaphore 基本原理

Byte、Short、Integer、Long内部缓存类的对比与源码分析

HarePoint Analytics for SharePoint Online
随机推荐
Byte、Short、Integer、Long内部缓存类的对比与源码分析
JCMsuite Application: Oblique Plane Wave Propagation Transmission Through Aperture
This week to discuss the user experience: Daedalus Nemo to join Ambire, explore the encryption of the ocean
剑指Offer 63.股票的最大利润
Redis 高可用
Hangzhou electric the competition team arrangement (ACM)
leetcode: 259. Smaller sum of three numbers
从-99打造Sentinel高可用集群限流中间件
Hangzhou Electric School Competition (Counter Attack Index)
7 天找个 Go 工作,Gopher 要学的条件语句,循环语句 ,第3篇
什么,你告诉我?作用域也分种类?
Android Sqlite3基本命令
微软表示将向内部网络安全专家共享数据 为企业提供更安全保护
SublimeText 粘贴图片保存到本地
2022杭电多校3
Roslyn 通过 nuget 统一管理信息
OAID是什么
2022杭电多校4
Leetcode: 215 disorderly to find the first big k element in the array
[Beiya data recovery] IBM System Storage storage lvm information lost data recovery solution