Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个使用 pdfMake 创建 PDF 的网络应用程序。我想从生成的 pdf 中获取 byte[] 以用于传输到数据库。如何获取 pdfmake 生成的 pdf 的字节 []?
You can use the following method provided by the library to fetch the array of the generated PDF.
pdfMake.createPdf(docDefinition).getBuffer(function (databuffer) { data = databuffer; });