简体   繁体   English

如何使用PHP或Javascript生成PDF文件?

[英]How to generate a PDF file using PHP or Javascript?

I need to generate a pdf file by adding pages from an already generated pdf using only php or javascript. 我需要通过仅使用php或javascript从已经生成的pdf添加页面来生成pdf文件。 I tried fpdf but could not find any appropriate function. 我尝试了fpdf,但找不到任何合适的功能。 Is there a method I could use to do this? 我可以使用一种方法来做到这一点吗?

There is an extension that should allow this to work called FPDI 有一个扩展名应该叫FPDI允许它工作

That being said, I've not had a ton of luck through the years using FPDF. 话虽这么说,多年来使用FPDF并没有带来很多运气。 I've always fallen back to DomPDF or the likes. 我一直都退回到DomPDF之类的网站。 Like anything Adobe touches, PDF is not the most friendly tool in the world for those of us charged to make them work. 像Adobe所接触的任何事物一样,对于我们这些要使其工作的人来说,PDF并不是世界上最友好的工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM