Answer the question
In order to leave comments, you need to log in
How to convert html to pdf, epub or fb2?
Hello. I wrote a small parser for myself that collects the text of an online book. But he saves it in html so that styles and stuff do not fly off. How can I convert html to pdf, epub or fb2 so that at least images are displayed in already generated documents? It will work as a library option for C #, or just a PC program / browser extension. Through online services and caliber, only text can be retrieved.
Through "print - save as pdf..." in the browser it is possible to save with images. But the size of the output pdf file is huge just because of the images themselves. Therefore, maybe there is a tool that can compress pictures as well? Doing it manually will not be very convenient.
The html document has the simplest possible structure
<div>
<p>....</p>
<p>....</p>
<p>....</p>
<img data-src="ссылка на изображение на сервере сайта">
<p>....</p>
<p>....</p>
</div>
Answer the question
In order to leave comments, you need to log in
You can try to limit the size of the image through the width height (for example, to scale (400/600), you can see the answers for such a request (c# pdf scale image), there are small features if you decide to resize the image already in the finished document and not html.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question