0

我有一个使用 pdfMake 创建 PDF 的网络应用程序。我想从生成的 pdf 中获取 byte[] 以用于传输到数据库。如何获取 pdfmake 生成的 pdf 的字节 []?

4

1 回答 1

0

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;      
                                });
于 2016-02-12T04:48:53.950 回答