duanfengtuo6012 2018-02-06 11:38
浏览 227

将pdf文件存储在sql数据库中,并根据用户请求合并它们

I am currently working with a new website for my company and there is some functionality that I have some issue fixing. We want a page where you will find a list of filenames (like different types of manuals etc.) and basically a checkbox where you decide what files you want to merge together to one new pdf.

So, I am a web designer, not great at developing but I can not find any guidelines or help to achieve this.

How do I link my pdf's to the database and how do I create a new pdf (like in acrobat) from the ones I already have? If someone have any good edwice, I would be really glad.

  • 写回答

1条回答 默认 最新

  • doubaran2438 2018-02-06 11:46
    关注

    Suggestion:

    Save the path to your pdf's on the database. After that you'll need to query the pdf file path according to the files the user wants to merge (checkboxes), loop through the files and merge them using the for example pdftk tool, executing a command like this:

    passthru('pdftk file1.pdf file2.pdf file3.pdf cat output mergedFile.pdf');
    

    Then output mergedFile.pdf.

    Also take a look at: Merge PDF files with PHP

    评论

报告相同问题?

悬赏问题

  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型