如何使用node.js创建现有pdf文件的定制版本?

时间:2022-02-20 21:10:55

I have an old system that was written in PHP a long time ago that I would like to update to node.js to allow me to share code with a more modern system. Unfortunately, one of the main features of the PHP system is a tool that allows it to load an existing PDF file (which happens to be a government form), fill out the user's information, and provide a PDF to the browser that has all of that information present.

我有一个很久以前用PHP编写的旧系统,我想要更新到node。允许我与更现代的系统共享代码。不幸的是,PHP系统的主要功能之一是允许它加载现有的PDF文件(碰巧是一个*表单),填写用户的信息,并向拥有所有这些信息的浏览器提供PDF。

I have considered making a PHP script that will just do the PDF customization and using node for everything else, but it seems like something like this should be able to be done without requiring PHP to be installed.

我已经考虑过制作一个PHP脚本,它将只做PDF定制和使用node做其他的事情,但是看起来像这样的事情应该可以在不需要安装PHP的情况下完成。

Any idea how I might solve my problem just using node?

知道如何用node解决我的问题吗?

1 个解决方案

#1


19  

After a lot of searching and nearly giving up, I did eventually find that the HummusJS library will do what I want to do!

经过大量的搜索和几乎放弃,我最终发现,HummusJS库会做我想做的事情!

#1


19  

After a lot of searching and nearly giving up, I did eventually find that the HummusJS library will do what I want to do!

经过大量的搜索和几乎放弃,我最终发现,HummusJS库会做我想做的事情!