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
1
vote
1 answer

Printing pdf with printJS in chrome with --kiosk-printing enabled always failed

I try to print a pdf with --kiosk-printing enabled in chrome. The pdf is local available. Here is my test-code: When i run the print, Chrome is showing the message Print…
BennoDual
  • 5,865
  • 15
  • 67
  • 153
1
vote
0 answers

Print.js and Bootstrap 4 render issue

Trying to use PrintJS to print the information in a tag. For some reason, it refuses to render properly. I have this: And when I print, I get this: I'm printing using the following code: printJS({ printable: 'permitDetails', …
Robert Benedetto
  • 1,590
  • 2
  • 29
  • 52
1
vote
0 answers

Working on Chrome Browser on Desktop but on Android raises error: SecurityError Blocked a frame with origin from accessing a cross-origin frame

Application running at domain https://lo93p.csb.app/ In Chrome browser on Android, when opening https://lo93p.csb.app/Test.pdf in iframe, it raises error: SecurityError: Blocked a frame with origin "https://lo93p.csb.app/" from accessing a…
user1921636
  • 193
  • 9
1
vote
2 answers

Is there anyway to wait for print window to close in print.js

I have some jquery code using print.js for printing an element and its working fine but I need to know if I can check if the print window is closed and reload the page printJS('print_paper', 'html'); //do stuff after close print window
1
vote
2 answers

style parameter not working for print-js when trying to print from vuejs component

I read it on print-js documentation that we can pass style as a string to printJS function, so that style we pass in gets applied, but I a landing to an error that is not allowing the print to happen: I am getting this error: ReferenceError: Can't…
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
1
vote
1 answer

Printing Google Fonts using printJS

I've using printJS and jQuery together to print the contents of an HTML div. The div contains text which is rendered with the 'Annie get your telescope' google font. When I print, the text is printed using a more standard Web Font rather than the…
DaveH
  • 7,187
  • 5
  • 32
  • 53
1
vote
1 answer

semantic ui modal print using printjs not getting result

semantic ui modal ptint using printjs library. but the result is not correctly showing the expected modal print. help ? $(document).ready(function(){ $('#logIn').click(function(){ $('#modaldiv').modal('show'); }); });
1
vote
1 answer

How to detect printer connected with system using ionic web application

We are developing ionic web application with printer functionality. We used Print.js npm to print the content. If in case the printer not connected with system, I need to show some message about this. how can I determine whether the printer is…
1
vote
1 answer

How to print using print.js in ionic application without opening printer setup page

We are developing ionic web application with printer functionality. We used Print.js npm to print the content. There is a page open in browser when we call print method. We can see the information like printer name, no.of pages and so on. Our…
Murugan.P
  • 335
  • 3
  • 13
1
vote
2 answers

printjs in angular having properties with json object inside one other json

I am using printJs library for printing in properties I added JSON object properties its working fine, but if that JSON object contains one more JSON object inside it is showing [object object]. Can anyone tell me the solution? PrintJS({ …
Sasidhar
  • 11
  • 1
1
vote
1 answer

Cant seem to get printing to work using Print.js, nothing appears when i click print

I have just started using http://printjs.crabbly.com/#documentation and after reading the documentation, it doesnt seem to be giving me a printer preview window when i click print, what is very interesting is that it doesn't seem to be giving me any…
Alex Letford
  • 13
  • 1
  • 4
1
vote
0 answers

Get URL from Blob in Internet Explorer using JavaScript

I need to print a PDF file which I obtain through a GET request in JavaScript. In order to do the actual printing I use PrintJS, which can be used to print from a specific PDF URL. My code looks something like this: printChart() { var req = new…
Tudor Ciotlos
  • 1,805
  • 4
  • 29
  • 47
0
votes
0 answers

Failing to print a PDF file generated with "react-pdf" library. Weird error messages at console

This project was created using Vite, React and TypeScript. I'm using the "react-pdf" library to generate a small PDF with some information needed by the user. Its supposed to look like a receipt and it will be printed by a thermal printer that can…
Athos Franco
  • 67
  • 2
  • 8
0
votes
0 answers

remove subtitle in print.js

I would like to know if there is a way to remove these subtitles from print-JS image I'm doing the same way as this example but I would like to remove this information( page-number, date/time, Document,…
lukas
  • 1
  • 1
0
votes
0 answers

PrintJS : With repeatable header and footer, tbody content overlaps with header and footer in chrome but not on firefox

I am trying to use printJS to print a report using the content inside an html div and it is required to have repeating headers and footers on each page of the report. I used the solution I found in this link to generate the repeating headers and…
medhi2006
  • 1
  • 3