douju7503 2012-12-05 10:51 采纳率: 0%
浏览 216

将单个PDF拆分为Sub Pdf使用Php

Got a task to break a single pdf into multiple pdf documents using php. Till now i have not wrote any code because i am not sure which way to follow. But i will try my best to explain the situation here.

I have a pdf document with several pages and all i want is to break this pdf into multiple pdf's by passing the page numbers.

So lets' say i pass starting page as 1 and ending page as 10. The php will read the pdf from page 1 to 10 and will create a new document for these 10 pages.

Hope there will be a way to achieve this

  • 写回答

1条回答 默认 最新

  • ds355020 2012-12-05 11:05
    关注

    There is no good way to do this in PHP alone; as far as I know, none of the PHP PDF libraries can do this. It's a task for an external tool.

    If you are on a Linux server, there's this approach on Unix.SE using Python. Then there's the pdftk command line tool, the "Swiss army knife for PDFs". Googling "split PDF pages" will give you even more options.

    评论

报告相同问题?

悬赏问题

  • ¥15 应该如何判断含间隙的曲柄摇杆机构,轴与轴承是否发生了碰撞?
  • ¥15 vue3+express部署到nginx
  • ¥20 搭建pt1000三线制高精度测温电路
  • ¥15 使用Jdk8自带的算法,和Jdk11自带的加密结果会一样吗,不一样的话有什么解决方案,Jdk不能升级的情况
  • ¥15 画两个图 python或R
  • ¥15 在线请求openmv与pixhawk 实现实时目标跟踪的具体通讯方法
  • ¥15 八路抢答器设计出现故障
  • ¥15 opencv 无法读取视频
  • ¥15 按键修改电子时钟,C51单片机
  • ¥60 Java中实现如何实现张量类,并用于图像处理(不运用其他科学计算库和图像处理库))