idea-html2pdf
Advanced tools
Comparing version 2.1.5 to 2.1.6
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import * as Handlebars from 'handlebars'; | ||
@@ -35,3 +34,3 @@ import { Languages, SignedURL } from 'idea-toolbox'; | ||
*/ | ||
create(params: HTML2PDFCreateParameters): Promise<Buffer>; | ||
create(params: HTML2PDFCreateParameters): Promise<Uint8Array>; | ||
/** | ||
@@ -38,0 +37,0 @@ * Create a new PDF created by an HTML source. |
@@ -129,3 +129,3 @@ "use strict"; | ||
const { Payload } = await lambda.send(command); | ||
return Buffer.from(Payload, 'base64'); | ||
return Payload; | ||
} | ||
@@ -169,2 +169,3 @@ catch (err) { | ||
const pdfData = await this.create(params); | ||
console.log(pdfData); | ||
const Bucket = params.s3Bucket; | ||
@@ -171,0 +172,0 @@ const Key = params.s3Prefix.concat('/', Date.now().toString().concat(Math.random().toString(36).slice(2)), '.pdf'); |
{ | ||
"name": "idea-html2pdf", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"description": "IDEA helper for generating a PDF from HTML contents", | ||
@@ -5,0 +5,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27234