node.js - Writing a chucksum to pdf changes a checksum of the pdf. How to chalange this
问题描述
It is common to print a checksum on pdf file to check if the file is the one I want tu use.
I'm buiding a node/puppeteer app to generate a pdf submition - a set of according data save to a database as well. Then an operater gets the pdf file and imports to the app and app is suppoused to validate the checksum.
But, I try, as many apps do, to print a checksum on a pdf that user don't send an old file. But I got stuck. To calculate a checksum of a file (md5) I need the file, then I print this checksum on a file ... it chandes the checksum...
How to overcome?
解决方案
推荐阅读
- c# - 如何在 .NET Core MVC 中的控制器之外进行缓存和依赖注入
- airflow - 将 UI 中的 Airflow 变量设置为 today.date 或 {{ds}}
- hugo - Hugo 找不到主题目录
- zerobrane - 用于 NodeMCU 的 ZeroBrane Studio
- c++ - 在 MAKEWORD / MAKEWPARAM 中使用布尔值而不是 BOOL 值
- javascript - 动态添加和删除的选择框
- html - 为什么不跨越显示高度?
- ios - Swift 4.2 没有在协议中推断类型别名
- plsql - PL/SQL 在循环中删除字符
- scanf - scanf上的分段错误?