Questions tagged [css-to-pdf]

css-to-pdf is a JQuery-based solution that will render any HTML page and it's CSS (including print media rules) to PDF

css-to-pdf is a JQuery-based solution that will render any HTML page and it's CSS (including print media rules) to PDF. It uses either REST or SOAP web services to receive and format, returning PDF to the HTML application in various ways ranging from initiating a download to base 64 encoded PDF injected in browser.

24 questions
26
votes
3 answers

How to generate a pdf from html web page?

I'm looking for a library to transform my web page into a PDF file after click event from a button. I'm trying jspdf, but it prints without the CSS, how can I make this using JavaScript/jQuery and keep my CSS? Or another CSS that I can choose?
Alejandro Hinestrosa
  • 491
  • 4
  • 11
  • 23
4
votes
1 answer

How do I show a section when download div as PDF but hide it on screen

I use xepOnline Formatter library to save a specific div as PDF file when the user press on a submit button. I ask here how to make a section not visible on screen while visible on the saved file. For more details here below I have a div which…
Mido
  • 133
  • 1
  • 10
4
votes
1 answer

IE (or possibly Javascript library) Adding SVG namespace twice

I modified this and am moving this comment to the top. In keeping with Stackoverflow, this could be a bug in some underlying things that no one can fix. But I will consider the best method you propose keeping within the framework of our application…
Kevin Brown
  • 8,805
  • 2
  • 20
  • 38
3
votes
1 answer

how to insert xmlns and xlink attributes into svg element/tag generated by c3 charts?

I am planning to export c3 charts using https://github.com/Xportability/css-to-pdf. But CSS2PDF requires the SVG tags to contain attributes xmlns="http://www.w3.org/2000/svg" and xmlns:xlink="http://www.w3.org/1999/xlink" to be a valid for…
yogi
  • 91
  • 2
  • 11
3
votes
2 answers

Morris Graphs Export as PDF?

I am using Morris.js to create graphs. I have requirement to export graphs as pdf. I can see that graphs are svg elements. What should i do to achieve this.
sushil bharwani
  • 29,685
  • 30
  • 94
  • 128
2
votes
1 answer

Email xepOnline generated file

I am currently using xepOnline to generate a pdf of my page. This is working perfectly , but i now want a button next the download button which opens the mail program on your pc and attaches the generated pdf file. My code so far: (not…
2
votes
1 answer

VisualBrush Resources not included in Visual in XPS to bitmap conversion

UPDATE: We replaced the Image generation with an alternative that solves the issue (PDF to image) but I am going to leave this question open as I would like to understand if this is possible. On our website at http://www.cloudformatter.com, we were…
Kevin Brown
  • 8,805
  • 2
  • 20
  • 38
2
votes
2 answers

xep.cloudformatter.com : HTML to PDF. How to change filename of repsonse of Content-Desposition header?

using xepOnline.jqPlugin.008.js I have HTML to PDF generated file which name is 'doucment.pdf' How can I force to rename this file for example to abc.pdf ? Or maybe is there any way to change 'on live' response header?
LINKeRxUA
  • 559
  • 6
  • 26
1
vote
1 answer

How to transform XHTML+CSS with embedded images to XSL-FO?

I'm trying to transform a simple HTML page to XSL-FO, to feed into Apache FOP for PDF rendering. The steps are: HTML+CSS -> XHTML -> XSL-FO -> PDF. I've used the java library CSSToXSLFO to transform XHTML to XSL-FO. This works, however it's…
TCookz
  • 11
  • 2
1
vote
1 answer

Converting SVG with styles to PDF

Having difficulty preserving style when converting an SVG to PDF. I am using cssToPdf from cloudFormatter.com. But I need to use the style mix-blend-mode: multiply; but it is not preserved when I create the pdf. I have tried using the style inline…
Shane G
  • 3,129
  • 10
  • 43
  • 85
1
vote
1 answer

css2pdf xepOnline Cloudformatter - Hide elements in html but display in PDF

http://www.cloudformatter.com/CSS2Pdf.Demos.PrintMedia There is an option in this cloudformatter called 'noprint' which can be applied to elements which display on the html page but aren't added to the PDF. What I want is the opposite. I want…
bboybeatle
  • 549
  • 1
  • 8
  • 28
1
vote
1 answer

Blank page when certain size of content is reached

The issue I am having is that whenever I try to create a PDF via CSS2PDF it works just fine, as soon as the div that I want to add has a certain length and CSS2PDF will just return a blank PDF. Since it works until I reach that point it's not a…
Veake
  • 13
  • 3
1
vote
1 answer

Export Google Chart to PDF using Cloudformatter, generates blank PDF

I'm trying to export google chart to the PDF file. I'm using xepOnline.jqPlugin.js plugin for it from cloudformatter.com. I followed all the steps from http://www.cloudformatter.com/CSS2Pdf.APIDoc.Usage But when i try to export, PDF get generates…
Ganesh Gadge
  • 366
  • 2
  • 17
1
vote
1 answer

css to PDF using css2pdf@cloudformatter

i am a newbie in programming. recently tried to use the service provided by css2pdf@cloudformatter. I keep getting these errors while i try to generate a pdf The server encountered an error processing the request. The exception message is…
scott
  • 25
  • 5
1
vote
1 answer

How do I save the PDF to server? css2pdf@cloudformatter xeponline

I was wondering if anyone knew of a way to save the resulting PDF document to the server, instead of prompting the user to download it locally? Using this: http://www.cloudformatter.com/CSS2Pdf Many thanks Edit: I am using the following JS to…
Thomas Hughes
  • 99
  • 1
  • 11
1
2