Skip to content

Commit 3effccf

Browse files
committed
Use proper height for pdf417 barcodes
1 parent 164f98d commit 3effccf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/playground.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,8 @@
375375
eclevel: pdf417.errorlevel,
376376
rows: pdf417.rows,
377377
columns: pdf417.columns,
378-
scale: pdf417.width * 2,
378+
scaleX: pdf417.width * 2,
379+
scaleY: pdf417.height * pdf417.width,
379380
}
380381

381382
result += `<div class='placeholder ${command.type} ${align}'><img src='https://bwipjs-api.metafloor.com/?${Object.entries(properties).map(i => i[0]+'='+escape(i[1])).join('&')}' onerror="this.style.display='none'"></div>`;

0 commit comments

Comments
 (0)