Questions tagged [printjs]

A tiny javascript library to help printing from the web.

Print.js is a tiny javascript library to help printing from the web. Print friendly support for HTML elements, image files and JSON data.

74 questions
0
votes
0 answers

JSPDF-INVOICE-TEMPLATE Create a pdf with N pages fetching data to a internal orders route

Hi to every one reading this. I am struggling with a PDF.js problem. I am using this library: https://github.com/edisonneza/jspdf-invoice-template to render a PDF with data that I am getting from an internal axios route that returns orders. This…
Wildrama
  • 1
  • 2
0
votes
2 answers

How to print a PHP file using PrintJS?

I'm having a problem wherein I want to use PrintJS library in PHP. I created a PHP file which is invoice.php that is what I want to print out as a PDF using the library. I also created a JavaScript function in which I call the printJS function. How…
aries
  • 64
  • 1
  • 12
0
votes
0 answers

Content overlaps with repeatable header and footer printed using printjs

in my application I have a requirement to enable printing reports. I am using printJs plugin to print these reports. In order to repeat the header and footer in every printed page I am using thead and tfoot elements. But the problem is that the rest…
medhi2006
  • 1
  • 3
0
votes
0 answers

Set the number of Copies with Printjs

Is there way to set the number of copies to be printed by "printjs library" and to not allow user to change this number ?
Kemal AL GAZZAH
  • 967
  • 6
  • 15
0
votes
0 answers

I can't add my highcharts graphic to the printJS

I've an Angular app and using printJS in somewhere in my app. There is a highcharts-chart at the top of the page and a gridTable at the bottom. I can print gridTable with printJS, but I want to print highcharts-chart together with gridTable. Is it…
0
votes
1 answer

after printJS printer dialog opens need to trigger print button

PrintJS working fine with pdf and printer dialog opening. but my request is once the printer dialog open need to check Destination printer is selected then i should able to trigger print button. please help on this as earlier as possible
0
votes
1 answer

Recursive function not incremeanting its own parameter

var documentURLs = ["maca.pdf", "maca2.pdf"] function printDocuments(index){ if(index > documentURLs.length){ return; } else { printJS({ printable: documentURLs[index], type: 'pdf', onPrintDialogClose:…
maca
  • 480
  • 3
  • 12
0
votes
1 answer

PrintJS Styling of action buttons

I was wondering if anyone knew of a way to style the action (re' print & cancel buttons) from the PrintJS iFrame ? Those 2 buttons are both labelled cr-button respectively with classes 'action-button' and 'cancel-button'... Many thanks & BR, JMB
JMB
  • 67
  • 5
0
votes
2 answers

Firefox silent-printing with PrintJS prints blank pages

I am trying to print a pdf blob using printJS without dialog to the default printer using Angular. It works well on Edge and Chrome, however I can't get Firefox to work. The code I'm using: const blob = new Blob([value], {type: 'application/pdf'}); …
ViliusM
  • 61
  • 6
0
votes
0 answers

PrintJS getting blocked a frame with origin issue

Hi My Main Application url is http:localhost:4000. It internally render iframe app which is http:localhost:4000/contentApp/index.html (with sandbox parameter as sandbox="allow-scripts allow-popups allow-modals allow-forms allowdownloads…
dsi
  • 3,199
  • 12
  • 59
  • 102
0
votes
0 answers

safari 14.1.2 - can not print a pdf use printjs

I try to use PrintJs and print a PDF file in safari(14.1.2), but when I preview the print file in dialog, I got a empty page. help me!
dys
  • 1
  • 1
0
votes
0 answers

How to use PrintJS to print a local file

I have a function that saves a file locally. I want to use the PrintJS to access the file and print it. The function below is what I have done $.fn.openPDF = function (id) { printJS({ printable: stores + file_path + id + '.pdf', type:…
Gabelorm
  • 129
  • 1
  • 2
0
votes
1 answer

Is it possible to append a string in code to a Base64 string and create a new Image with the string?

I am using the QR Coder library in C# to generate QR codes that will go to a URL with a Token in the Query String. https://github.com/codebude/QRCoder Currently, I can Print Preview all the QR Codes, but without a Token showing beneath it. I need to…
Tig7r
  • 525
  • 1
  • 4
  • 21
0
votes
1 answer

Unable To Print PDF file Using Print Js

Below Given is my code from which I am trying to print pdf file.
user10333164
0
votes
2 answers

Canvas position using printjs

I'm using printjs to convert my html page to pdf, all works fine except my canvas, which you can see here: and here is the code: printJS({ printable: 'page1', type: 'html', scanStyles: false, ignoreElements: ['btnPrint'], css:…
Kenyuki
  • 65
  • 1
  • 7