I am writing a code in php 5 to generate a pdf file which will have the images.I am displaying full length images.The image gets cut as soon as it reaches the end of the page(i.e. bottom of the pdf page).I want the image to continue being displayed from the next page.So that the complete images is visible even if it is larger than the size of the pdf page.Is it possible?If so please help!!
1条回答 默认 最新
- drjk87189 2013-01-30 14:09关注
I'm not sure if it can be done using fdpf alone. The
Image()
function does not support partial images; so you need to find a way to split the image beforehand (using GD or something similar.)In short, you need to find out how much of the image to print per page (ie. how high is the printable area of the PDF page, excluding header, footer etc.), and then create a temporary image consisting of the correct clipping of the image. This is what you add with the
Image()
function.If using GD, here is how to copy a portion of an image into another image:
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 宇视监控服务器无法登录
- ¥15 PADS Logic 原理图
- ¥15 PADS Logic 图标
- ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
- ¥15 DruidDataSource一直closing
- ¥20 气象站点数据求取中~
- ¥15 如何获取APP内弹出的网址链接
- ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
- ¥50 STM32单片机传感器读取错误
- ¥50 power BI 从Mysql服务器导入数据,但连接进去后显示表无数据