I
I
Ilya Sidorenko2014-04-01 17:12:19
css
Ilya Sidorenko, 2014-04-01 17:12:19

How to save a web page to PDF?

How to implement an opportunity similar to hh.ru? There you can save your resume in .docx, .pdf formats.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey, 2014-04-01
@iskros

use wkhtmltopdf or take phantom.js as a basis.

A
Alexey Cheremisin, 2014-04-01
@leahch

In Safari, the menu is "File", "Print..", at the bottom of the dialog box is the "PDF" button.

A
Alexey Cheremisin, 2014-04-01
@leahch

If you make a java portal (or make a utility in java):
1) there is a wonderful free library itextpdf.com
It has the ability to make pdf from prepared XML. From the web side, you can write a utility, submit xml for iText as input, and receive PDF as an output.
2) There is also Apache Forrest - forrest.apache.org - also converts prepared XML to PDF. There are fewer possibilities, but in some form it is much simpler.
3) There is Apache POI, it can do doc and xsl - poi.apache.org

V
Valentin, 2014-04-01
@vvpoloskin

The easiest option is to print to a file. Available in any browser

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question