是否有用于 PDF 元数据的 NPM 模块? [英] Is there an NPM Module for PDF metadata?

查看:53
本文介绍了是否有用于 PDF 元数据的 NPM 模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个 npm 模块,我可以用它来编辑元标记,例如 PDF 文件的 AuthorTitle.

I'm looking for an npm module, that I can use to edit the metatags like Author and Title of PDF files.

或者,一个开放许可的 JavaScript 库也可以.

Alternatively, an open-license JavaScript library would also be okay.

有一个名为 pdftk 的程序,它很适合如果它是一个 npm 模块.

There's a program called pdftk, which would be suitable if it was an npm module.

推荐答案

我没有测试过这个包但是 node-exiftool 似乎提供了 pdf 元数据版本.

I have not tested this package but node-exiftool seems to provide pdf metadata edition.

另一种可能性是使用 pdftk(如果可用)和 child_process 编写您自己的模块.
也许我会尝试自己制作一个.

Another possibility is to write your own module with use of pdftk (if available) and child_process.
Maybe I will try to make one myself.

这篇关于是否有用于 PDF 元数据的 NPM 模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆