From 560d9fae051e92b61c4c7874c288ab47c13fc8a8 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 28 Feb 2022 12:16:33 +0100 Subject: [PATCH] task #2740 add tag code in name of pdf file --- ereuse_devicehub/static/js/print.pdf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/static/js/print.pdf.js b/ereuse_devicehub/static/js/print.pdf.js index d7d9833a..5316e1ef 100644 --- a/ereuse_devicehub/static/js/print.pdf.js +++ b/ereuse_devicehub/static/js/print.pdf.js @@ -65,5 +65,5 @@ function printpdf() { min_tag_side = (Math.min(height, width)/2) + border; pdf.addImage(imgData, 'PNG', border, border, img_side, img_side); pdf.text(tag, max_tag_side, min_tag_side); - pdf.save('Tags.pdf'); + pdf.save('Tag_'+tag+'.pdf'); }