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

Adjusting Div Width with printJS

I am attempting to use the PrintJS library. It allows you to target a specific id and print the html contained within that id. The problem that I am facing is when I change the size of the screen it also changes the print size of the div. They give…
btwalsh
  • 3
  • 2
0
votes
0 answers

Image is not displayed in print preview

I am learning print.js, but I am having trouble printing the image. I tried to called printJS but the image is not displayed in the print preview.
潘夏开
  • 39
  • 4
0
votes
2 answers

I'm sending a generated pdf from my server to the client as a base64 pdf string. I'm trying to print it on the client side using printJS

I'm generating a report using fluentreports on my server and sending the base64 pdf string to the client on the callback. On the client once he/she receives the base64 string, I am required to print out this pdf string as a pdf which I am trying to…
Jeffrey penner
  • 155
  • 1
  • 4
  • 17
0
votes
0 answers

Printing an id card

I need help with re-designing an id-card and also printing it but my code seems to be off when I tried to print. (Using a brother id card printer in order to print the id card.)
0
votes
1 answer

vuejs component does not render if I import printjs

I am trying to print pdf file generated of a form, printjs but when I import printjs no vuejs component load at all, the title in the browser show up but component is not rendered. import printJS from 'printjs' then later I call the…
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
0
votes
1 answer

printJS - why requested URL not found error when printing PDF file?

trying to use printJS to print a PDF file, from the browser, direct to a network printer. But getting error: "The requested URL /docs/pricelist.pdf was not found on this server" but the file is there. I am able to use an anchor link to download…
RockBoro
  • 2,163
  • 2
  • 18
  • 34
0
votes
1 answer

Browser Print dialog not showing

I have print.min.js referenced in my angularjs project. I have it printing successfully (very simple!) for most of my needs. I have run into a case where the browser print dialog does not appear when a user presses my 'Print' button. The issue seems…
Cheshire
  • 13
  • 4
0
votes
1 answer

Printing object from Local Storage

I have a an expenses form which saves data to the Browser local storage. I have abutton on the page below the form so that after you fill in in the form you can then click to print out the data in a nice format. I have to use the JSON data in the…
Brian Revie
  • 548
  • 1
  • 8
  • 24
0
votes
1 answer

how to make printjs print multiple pages in same session

I have a scenario that the customer decide on number of tickets to be printed, am using printjs and it is working perfect with one time print ,but in a loop to print multi,it only print last one ??? a any one knows why ?? // loop to create and…
Ali
  • 1,080
  • 16
  • 22
0
votes
1 answer

Can make Print.js print a variable?

I have Print.js configured and it prints a file path (.pdf) just fine, but I wanted to make the onclick print a variable. Is this possible? default: button type="button" onclick="printJS('docs/printjs.pdf') Print PDF but instead something…
0
votes
1 answer

Importing print.js using webpack

I am trying to import the print.js library into the vendor bundle in my project using webpack. For some reason it cannot resolve the module. The print.js node_modules folder contains some interesting files - webpack.mix.js and the src/index.js…
John Hess
  • 233
  • 2
  • 5
  • 13
0
votes
0 answers

How do I implement printJS?

I downloaded printJS but I don't understand what I need to do to use it. Exactly what is to be loaded on my server? When I execute printJS("mypdf") I get an error about not recognizing "require".
Chevron7
  • 1
  • 1
-1
votes
1 answer

how to print a dynamically generated pdf with printJS

[Note this might be similar to https://stackoverflow.com/questions/48138874/can-make-print-js-print-a-variable, but I don't know PHP] I have an ASP.Net core action that creates a PDF on the fly. I currently have the PDF download to the client, like…
erict
  • 1,394
  • 2
  • 14
  • 28
-1
votes
1 answer

Print pdf url in Iframe

How do I print a pdf of this url in an iframe using a html print button http://assessormap.co.la.ca.us/Geocortex/Essentials/REST/sites/PAIS/VirtualDirectory/AssessorMaps/ViewMap.html?val=8734-031? I tried two solutions using the answers from these…
brandon p
  • 29
  • 5
1 2 3 4
5