convert html with css to PDF using jquery/javascript - html

I want to convert a HTML report to PDF with CSS. I have look through the google and I found jsPDF. But the problem with jsPDF is that it does not supprt CSS. To make the CSS work I have used html2canvas. But it does not work properly.
Can anyone suggest me a better solution?

If it's for your own use, install a pdf printer driver on your computer (there are loads of them if you google, but you probably already have one installed anyway) then just print the report to pdf.

Related

Directly embedding the woff font into blogger

I am absolutely a novice in the field of html / css programming. I have a font file with extension .woff etc. I know, I may upload it on a server and later on use it with the help of css files generated from tools like fontsquirrel. However, I want to explore the option of getting the font into simple html or css codes so that I may use it on forums like blogger without having to host the font file elsewhere. Is it technically possible? Thank you.

How to export HTML and CSS code from PSD file using Open Source tools / plugins?

Can anyone know convert PSD files to HTML and CSS code via any open source software's, Plugins or Frameworks are available to convert it...?
Kindly assist me on this.
You need to have at least basic knowledge on using adobe Photoshop.
a. You need to know how to deal with layers so you can extract the website carefully.
b. Use slicing tool. after you carefully slice each part. then you can now press and hold Ctrl+Shift+Alt+s (all at the same time) then choose save
At the bottom option you can see "Format:" choose html and images then save it on your pc.
Second option is
you can convert you psd to html by going to this site.
http://psdtoweb.de/index.php
I personally don't recommend you to use these methods because the codes in html is not good. I recommend you is study bootstrap instead.

Can I import text from a pdf file to display in HTML with the same styles using visual studio 2010?

I started working for a company where the client sends us visual examples of the pages they want (with lots of text in different fonts) and we incorporate that into the site we build for them. This takes up lots of time as we need to style everything to be almost exactly the same. I am looking for a quicker way to do this. can someone please help? any advice would be appreciated.
Here I found converter from PDF to HTML online, so you won't need to download anything.
I didn't used it yet, but maybe It's working
http://www.pdfonline.com/convert-pdf-to-html/
But you can also use
<iframe href="pdf_file.pdf" width="500" height="200"></iframe>
And PDF file will be shown in frame in your browser using Adobe PDF reader.

HTML to PDF using HTML::HTMLDoc

i have generated PDF file from HTML using HTML::HTML Doc but while opening the file, it shows following error what should I do please help me...
error:
Could not open foo.pdf
I dont know what tool you may be using, but you can try using DOMPDF https://code.google.com/p/dompdf/
However, I think this is a little old, I havent used it recently, and I think it may be php driven.
EDIT: Its PHP driven from what I read, but is compliant from CSS2.1 towards CSS3 :)

How do I convert PDF to HTML programmatically?

Are there any classes, COM objects, command line utilities, or anything else that I can make an API for that can convert a PDF to an HTML document? Obviously the conversion might be a little rough since PDFs can contain a lot more than HTML can describe. I found a utility called pdftohtml on Source Forge, but quite honestly it does a horrible job with the conversion. I don't care if the software is free or commercial, but is there anything out there at all that I can incorporate with my own software to do this sort of conversion at least decently? I know Google's developed their own method of doing this, since you can click "View as HTML" on a PDF attached to an email through Gmail, but I was hoping there was something out available to the public.
Remember, PDF to HTML. I'm NOT worried about HTML to PDF.
well one solution i can think of is to write little program that reads pdf text using library called iText and then generate html files.
well for java based PDF solutions...we dont have a clean way i guess-still.. all solutions are primitive and kind of workarounds... No easy solution for
1. Designing a template of a PDF
2. Then at runtime using java, populate data into this template...either using xml or other datasources...
such a simple requirement and NONE has a good "open-source and free" solution yet !
Eclipse BIRT comes close.. but does not handle Barcode elements ..OOB.
You were looking for pdf2htmlEX (C++), which converts PDF to HTML without losing text or format.
To convert further to semantic HTML, you can process pdf2htmlEX output using my project Transcript (Python). It is however not lossless anymore and works best on documents not deviating too much from conventional visual layout.