Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/DocMeasure.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class DocMeasure {
}

convertIfBase64Image(node) {
if (/^data:image\/(jpeg|jpg|png);base64,/.test(node.image)) { // base64 image
if (/^data:(image\/(jpeg|jpg|png)|application\/octet-stream);base64,/.test(node.image)) { // base64 image
Comment thread
nayneshrathod marked this conversation as resolved.
Outdated
let label = `$$pdfmake$$${this.autoImageIndex++}`;
this.pdfDocument.images[label] = node.image;
node.image = label;
Expand Down