A
A
Atlllantis2017-11-02 00:04:20
JavaScript
Atlllantis, 2017-11-02 00:04:20

Is there a normal HTML to PDF converter?

I've tried everything, but I haven't found anything that works.
The main problem is Cyrillic (and unicode in general).
Tried OpenPDF, iText (4th version), jsPDF... It doesn't work.
Or maybe I don't understand something? But has anyone ever converted HTML to PDF with Russian text?
What is surprising - for PHP there are normal libs and fully support Unicode, but neither for JAVA nor for JavaScript - there is nothing like that. :(
If someone converted HTML to PDF with Russian text (+ styles!) and everything worked out - share the secret of how you did it and with what help.
Thank you all!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Taratin, 2017-11-02
@Atlllantis

call https://wkhtmltopdf.org/
or there are wrappers
https://github.com/jhonnymertz/java-wkhtmltopdf-wrapper
https://github.com/ztomic/wkhtmltopdf-java

A
A person from Kazakhstan, 2017-11-02
@LenovoId

Here I saved the entire HTML source of this question in PDF , in any browser there is this option - print -> save as pdf
59fa574de8f59324832334.png

K
krypt3r, 2017-11-02
@krypt3r

wkhtmltopdf is still in the lead

V
Vladimir Varlamov, 2018-09-25
@bes_internal

2018: chrome --headless

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question