Linked Questions

33 votes
1 answer
176k views

When user click on GeneratePDF button, I need to export the html page into a PDF file. I am successfully exporting HTML page into PDF file but for the first click only I am able to download data into ...
Navyah's user avatar
  • 1,680
27 votes
2 answers
81k views

I want to save web page directly to PDF. What I have done is- <form> <input type=button name=print value="Print" onClick="window.print()"> </form> But it gives me ...
S M Abrar Jahin's user avatar
1 vote
2 answers
36k views

am referencing this post Download a div in a HTML page as pdf using javascript which basically uses jspdf to make a div into a pdf. I got it to work, but the only problem is I can't get it to add an ...
Deedub's user avatar
  • 349
5 votes
1 answer
3k views

I made a syntax highlighter and I want an option to save as a PDF. I've looked at this SO question, but downloading it doesn’t preserve the CSS styling, which ruins the point of downloading the ...
Cyoce's user avatar
  • 263
1 vote
3 answers
7k views

I'm using OS X and I see on chrome that I can Save as PDF in the print window if I set the destination to "Save as PDF". Does this functionality exist in Windows? Is there any way I can take ...
Paul An's user avatar
  • 19
1 vote
0 answers
5k views

i have designed a page in html. i need to find a way to save the html body section as pdf. can some one suggest me a jquery plugin where i can get this work done? am using C# as my back end coding.
Hudhaifa Yoosuf's user avatar
2 votes
1 answer
4k views

I am working with javaScript, and I need to print a div from my html page with its style ! is that possible? any recommandation?
Ben Mustapha Sabrine's user avatar
1 vote
2 answers
2k views

Hi I want to Export html to pdf, I have use jsPDF all are working pdf also exporting but i want to get same html in pdf, html styles are not working what can I do for that can anyone help me please? ...
user avatar
5 votes
1 answer
3k views

I'm using Google App Script and I want to convert the contents of a div in a pdf file. I'm trying: function genPdf(html) { var blob = Utilities.newBlob(html, "text/html", "text.html"); var pdf = ...
Pavarine's user avatar
  • 716
0 votes
1 answer
3k views

html <p-dataTable [hidden]="loading" [rowStyleClass]="customRowClass" [value]="timePeriods" scrollable="true" scrollHeight="400px"> <p-column field="StartDate" header="Begindatum" ...
Vignesh's user avatar
  • 2,384
0 votes
2 answers
2k views

I have a button that performs a save and print. I can already do a save in store() function but not a print. When I meant print, it means opening a print dialog of the passed data. Here are my button: ...
Jumar Juaton's user avatar
0 votes
1 answer
2k views

Hi Is there a way to save a styled DIV as a PDF using Javascript or HTML? I've got a styled DIV and I would like to be able to save it as a PDF with a click of a button I would also like it to keep ...
David's user avatar
  • 25
1 vote
1 answer
435 views

I have a javascript that saves the contents of a <div> as html on click, which works just fine on chrome, but doesn't on firefox. Please help me write a cross browser solution. Here's my code: ...
Cody Coderson's user avatar
1 vote
3 answers
1k views

I need to convert url to pdf I tried to use tcpdf but i get errors like: Notice: Undefined offset: 4 in /opt/lampp/htdocs/IBI/tcpdf/tcpdf.php on line 17218 TCPDF ERROR: Some data has already been ...
Mahmoud Mahmid's user avatar

15 30 50 per page