{"id":318730,"date":"2021-02-27T15:00:39","date_gmt":"2021-02-27T15:00:39","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=318730"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=318730","title":{"rendered":"HTML \u27f9 PDF @ Python"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u041d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0440\u0435\u0434\u043a\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0437\u0430\u0434\u0430\u0447\u0430 \u043f\u0435\u0447\u0430\u0442\u0438 HTML-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0441 \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043a\u0430\u043a \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c \u044d\u0442\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0414\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0435 \u0432 \u043d\u0430\u0434\u0435\u0436\u0434\u0435 \u043d\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u0430 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0410 \u0435\u0441\u043b\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u043d\u0435\u0447\u0442\u043e \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u0435 (Django\/Flask\/\u0442\u044b\u0441\u044f\u0447\u0438 \u0438\u0445), \u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u0431\u044b \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u0432\u043e \u0447\u0442\u043e \u044d\u0442\u043e \u043e\u0431\u043e\u0439\u0434\u0435\u0442\u0441\u044f.<\/p>\n<p>\u0414\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u0432\u044b\u0431\u0438\u0440\u0430\u043b\u0438\u0441\u044c \u0442\u0430\u043a\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0431\u044b\u043b\u0438 \u0432 \u0432\u0438\u0434\u0435 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u043f\u043e RH-based \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 \u0438\u043b\u0438 \u0436\u0435 &#8212; \u0432 \u043a\u0440\u0430\u0439\u043d\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 &#8212; \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0442\u0430\u043a\u043e\u0432\u044b\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c. \u0418 \u0447\u0442\u043e\u0431\u044b \u0431\u0435\u0437 \u0434\u043e\u043b\u0433\u0438\u0445 \u0442\u0430\u043d\u0446\u0435\u0432 \u0441 \u0431\u0443\u0431\u043d\u043e\u043c.<br \/>\u0412 macOS \u0432\u0441\u0451 \u0441\u0442\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e homebrew \u0438 pip3, \u0432 Fedora &#8212; \u0438\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e (\u0438\u0441\u043a\u043b. xhtml2pdf &#8212; \u044d\u0442\u043e\u0433\u043e \u0432 \u0440\u0435\u043f\u0430\u0445 \u043d\u0435\u0442, \u043d\u043e \u043f\u0440\u0438 \u0434\u043e\u043b\u0436\u043d\u043e\u0439 \u0443\u0441\u0438\u0434\u0447\u0438\u0432\u043e\u0441\u0442\u0438 \u0437\u0430 \u043f\u0430\u0440\u0443 \u0447\u0430\u0441\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u0435\u0431\u0435 \u0446\u0438\u0432\u0438\u043b\u044c\u043d\u044b\u0439 rpm).<\/p>\n<p><strong>\u0414\u0430\u043d\u043e:<\/strong><\/p>\n<p> \u041f\u043e\u0441\u043b\u0435 \u0442\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0442\u0431\u043e\u0440\u0430 \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432 \u043d\u0430\u043a\u043e\u043f\u0438\u043b\u043e\u0441\u044c \u0430\u0436 3:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/github.com\/JazzCore\/python-pdfkit\" rel=\"noopener noreferrer nofollow\">python-pdfkit<\/a> &#8212; \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u043a \u0432\u044b\u0437\u043e\u0432\u0443 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430 <a href=\"https:\/\/wkhtmltopdf.org\" rel=\"noopener noreferrer nofollow\">wkhtmltopdf<\/a>.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.courtbouillon.org\/weasyprint\" rel=\"noopener noreferrer nofollow\">weasyprint<\/a> &#8212; \u043f\u0440\u043e\u043a\u043b\u0430\u0434\u043a\u0430 \u043c\u0435\u0436\u0434\u0443 html5lib \u0438 reportlab.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/xhtml2pdf\/xhtml2pdf\" rel=\"noopener noreferrer nofollow\">xhtml2pdf<\/a> &#8212; \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 weasyprint, \u043d\u043e \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 <s>\u0442\u0430\u0440\u0430\u043a\u0430\u043d\u0430\u043c\u0438<\/s> \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044f\u043c\u0438. \u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u043a\u0430\u043a &#171;Pisa&#187; (\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043c\u043e\u0434\u0443\u043b\u044c).<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u0431\u0440\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0434 \u0440\u0443\u043a\u0430\u043c\u0438 \u0442\u043e\u0436\u0435 3 (\u0432\u0441\u0435 x64):<\/p>\n<ul>\n<li>\n<p><strong>M<\/strong>acBook &#8212; Apple MacBookPro9.2 (13&#8243; mid 2012, <a href=\"https:\/\/ark.intel.com\/content\/www\/ru\/ru\/ark\/products\/67355\/intel-core-i5-3210m-processor-3m-cache-up-to-3-10-ghz-rpga.html\" rel=\"noopener noreferrer nofollow\">i5-3210M<\/a> (2.5GHz)), HDD, macOS 10.15 &#171;Catalina&#187;, Python 3.9 (brew)<\/p>\n<\/li>\n<li>\n<p><strong>L<\/strong>inBook (\u0442\u0430\u043a \u044d\u0442\u043e \u043d\u0430\u0437\u043e\u0432\u0435\u043c) &#8212; \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u043c\u0430\u043a\u0431\u0443\u043a, \u043d\u043e \u0441 Fedora 33, Python 3.9<\/p>\n<\/li>\n<li>\n<p><strong>D<\/strong>eskTop &#8212; Intel <a href=\"https:\/\/ark.intel.com\/content\/www\/us\/en\/ark\/products\/80792\/intel-pentium-processor-g3450-3m-cache-3-40-ghz.html\" rel=\"noopener noreferrer nofollow\">G3450<\/a> (3.4GHz), HDD, Fedora 33, Python 3.9<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432 &#8212; 3 (\u0432\u0441\u0435 &#8212; \u043d\u0430 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0443 \u043a\u0430\u0436\u0434\u044b\u0439):<\/p>\n<ul>\n<li>\n<p><u>\u041f\u04144<\/u> &#8212; \u043a\u0432\u0438\u0442\u0430\u043d\u0446\u0438\u044f \u043d\u0430 \u043e\u043f\u043b\u0430\u0442\u0443 \u043d\u0430\u043b\u043e\u0433\u043e\u0432 \u0438 \u0441\u0431\u043e\u0440\u043e\u0432 \u0432 \u0421\u0431\u0435\u0440 (\u0444\u043e\u0440\u043c\u0430 \u041f\u0414-4\u0441\u0431). HTML \u0440\u0443\u0447\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430\u043c. \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0437\u0430\u0434\u0443\u043c\u043a\u0438 \u0430\u0432\u0442\u043e\u0440\u0430 \u0432 \u043f\u0435\u0447\u0430\u0442\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0432\u044b\u0441\u043e\u043a\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p><u>\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f<\/u> &#8212; \u0447\u0435\u0439-\u0442\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0441 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c, \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438, \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0430\u043c\u0438 \u0438 \u043c\u0435\u0441\u0442\u043e\u043c \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0438. \u041f\u043e\u043b\u0443\u0447\u0435\u043d \u0438\u0437 .doc \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u043e\u043c \u0438\u0437 Word 2007. HTML \u043d\u0435 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043e\u0447\u0435\u043d\u044c \u0442\u044f\u0436\u0435\u043b\u044b\u0439, \u043d\u043e \u043d\u0430 \u0442\u044f\u043f-\u043b\u044f\u043f. \u0422\u043e \u0435\u0441\u0442\u044c \u043a\u0430\u043a \u043e\u043d\u043e \u0438 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0436\u0438\u0437\u043d\u0438. \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 &#8212; \u043d\u0438\u043a\u0430\u043a\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p><u>\u042021001<\/u> &#8212; \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043b\u0438\u0441\u0442\u0438\u043a (\u0441\u0442\u0440.5\u0411) \u0444\u043e\u0440\u043c\u044b \u042021001 &#8212; \u0441 \u044f\u043a\u043e\u0440\u044f\u043c\u0438 \u0434\u043b\u044f \u0441\u043a\u0430\u043d\u0435\u0440\u0430, \u0431\u0443\u043a\u0432\u0430\u043c\u0438 \u0432 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0438\u043a\u0430\u0445 \u0438 \u0432\u0441\u0435\u043c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c, \u0447\u0442\u043e \u043c\u044b \u0442\u0430\u043a \u043b\u044e\u0431\u0438\u043c \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0445 \u0434\u043b\u044f \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0439. \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0438\u0437 Excel 2007, IE6-\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c 2 \u041c\u0411 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e HTML, \u043d\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0444\u0435\u0435\u0440\u0438\u0447\u043d\u043e\u0439 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u044f\u0436\u0435\u043b\u043e\u0433\u043e \u0434\u043b\u044f \u043f\u0430\u0440\u0441\u0435\u0440\u0430-\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430. \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043e\u0447\u0435\u043d\u044c \u0432\u044b\u0441\u043e\u043a\u0438\u0435.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435:<\/strong><\/p>\n<details class=\"spoiler\">\n<summary>\u041a\u043e\u0434 \u043d\u0430 \u043a\u043e\u043b\u0435\u043d\u043a\u0435<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"python\">#!\/usr\/bin\/env python3 # -*- coding: utf-8 -*- \"\"\" Benchmark of html-to-pdf converters. (c) @justhabrauser, GPLv3. \"\"\"  # 1. system import os import sys from time import time # 2. 3rd from pdfkit import from_string          # https:\/\/github.com\/JazzCore\/python-pdfkit from weasyprint import HTML             # https:\/\/github.com\/Kozea\/WeasyPrint from xhtml2pdf.pisa import CreatePDF    # https:\/\/github.com\/xhtml2pdf\/xhtml2pdf  def __pdfkit(html: str) -&gt; bytes:     return from_string(html, False, options={'quiet': ''})  def __weasy(html: str) -&gt; bytes:     return HTML(string=html).write_pdf()  def __pisa(html: str) -&gt; bytes:     pdf = CreatePDF(html)     if not pdf.err:         pdf.dest.seek(0)         return pdf.dest.read()  def main(indir: str, outdir: str, count: int) -&gt; None:     # 1. Load all htmls     modules = (__pdfkit, __weasy, __pisa)     html_list = list()      # (filename, content)[]     dir_list = os.listdir(indir)     dir_list.sort()     for i, fn in enumerate(dir_list):         fpath = os.path.join(indir, fn)         if os.path.isfile(fpath) and fpath.endswith(\".html\"):             print(\"Load '{}'\".format(fn), file=sys.stderr)             with open(fpath, \"rt\") as i_f:                 html = i_f.read()                 html_list.append(html)                 # 2. write results (and warm up)                 for j, m in enumerate(modules):                     with open(os.path.join(outdir, \"%d_%d.pdf\" % (i, j)), \"wb\") as o_f:                         o_f.write(m(html))     # 2. for C times x I pages x J engines:     print(\"Count\\tPage\\tEngine\\tTime\\n=====\\t====\\t======\\t====\")     for c in range(count):                   # count         for i, h in enumerate(html_list):    # html page             for j, m in enumerate(modules):  # engine                 t0 = time()                 m(h)                 t1 = time()                 print(\"{}\\t{}\\t{}\\t{}\".format(c, i, j, t1-t0))  if __name__ == '__main__':     if len(sys.argv) != 3:         print(\"Usage: {} &lt;dir_with_htmls&gt; &lt;output_dir_for_pdfs&gt;\".format(sys.argv[0]), file=sys.stderr)     elif not os.path.isdir(sys.argv[1]):         print(\"Input '{}' is not dir or not exists.\".format(sys.argv[1]), file=sys.stderr)     elif not os.path.isdir(sys.argv[2]):         print(\"Output '{}' is not dir or not exists.\".format(sys.argv[2]), file=sys.stderr)     else:         main(sys.argv[1], sys.argv[2], 5) <\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0421\u0440\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 (\u0432 \u0440\u0430\u0437\u0440\u0435\u0437\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c (D=DeskTop, L=LinBook, M=MacBook)), \u0441\u0435\u043a.:<\/p>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td rowspan=\"2\" data-colwidth=\"83\" width=\"83\">\n<p align=\"center\"><strong>Lib<\/strong><\/p>\n<\/td>\n<td colspan=\"3\">\n<p align=\"center\">\u041f\u04144<\/p>\n<\/td>\n<td colspan=\"3\" data-colwidth=\"0,0,77\" width=\"0\">\n<p align=\"center\">\u0421\u043c\u0435\u0442\u0430<\/p>\n<\/td>\n<td colspan=\"3\" data-colwidth=\"0,0,70\" width=\"0\">\n<p align=\"center\">\u042021001<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"center\"><strong>D<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>L<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>M<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>D<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>L<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"center\"><strong>M<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>D<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>L<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"70\" width=\"70\">\n<p align=\"center\"><strong>M<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"83\" width=\"83\">\n<p><strong>Pdfkit<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"right\">0,36<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,44<\/p>\n<\/td>\n<td>\n<p align=\"right\">1,49<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,36<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,44<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"right\">1,23<\/p>\n<\/td>\n<td>\n<p align=\"right\">1,3<\/p>\n<\/td>\n<td>\n<p align=\"right\">1,9<\/p>\n<\/td>\n<td data-colwidth=\"70\" width=\"70\">\n<p align=\"right\">6,9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"83\" width=\"83\">\n<p><strong>Weasy<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"right\">0,36<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,47<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,60<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,27<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,36<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"right\">0,65<\/p>\n<\/td>\n<td>\n<p align=\"right\">26,1<\/p>\n<\/td>\n<td>\n<p align=\"right\">34,8<\/p>\n<\/td>\n<td data-colwidth=\"70\" width=\"70\">\n<p align=\"right\">54,7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"83\" width=\"83\">\n<p><strong>Pisa<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"right\">0,12<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,17<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,28<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,29<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,41<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"right\">0,68<\/p>\n<\/td>\n<td>\n<p align=\"right\">20,4<\/p>\n<\/td>\n<td>\n<p align=\"right\">27,3<\/p>\n<\/td>\n<td data-colwidth=\"70\" width=\"70\">\n<p align=\"right\">42,2<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><strong>\u0412\u044b\u0432\u043e\u0434\u044b<\/strong>: <s>\u0442\u0430\u0440\u0430\u043a\u0430\u043d \u0431\u0435\u0437 \u043d\u043e\u0433 \u043d\u0435 \u0441\u043b\u044b\u0448\u0438\u0442 <\/s><a href=\"https:\/\/www.toptal.com\/designers\/htmlarrows\/symbols\/copyright-sign\/\" rel=\"noopener noreferrer nofollow\"><strong><s>\u00a9<\/s><\/strong><\/a><\/p>\n<p>\u041e\u0431\u0449\u0438\u0439 \u0432\u044b\u0432\u043e\u0434 &#8212; \u0441\u0447\u0430\u0441\u0442\u044c\u044f \u043d\u0435\u0442. \u0422\u043e \u0435\u0441\u0442\u044c \u044f \u043d\u0435 \u0441\u043c\u043e\u0433 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u0430 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u0432\u044b\u0433\u043d\u0430\u0442\u044c \u043d\u0430 \u043c\u043e\u0440\u043e\u0437 \u0438\u043b\u0438 \u043d\u0430\u0433\u0440\u0430\u0434\u0438\u0442\u044c \u0437\u043e\u043b\u043e\u0442\u043e\u0439 \u043c\u0435\u0434\u0430\u043b\u044c\u044e. \u0412 \u0441\u0440\u0435\u0434\u043d\u0435\u043c \u043f\u043e \u0431\u043e\u043b\u044c\u043d\u0438\u0446\u0435 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e pdfkit \u0434\u043e\u043b\u044c\u0448\u0435 \u0437\u0430\u043f\u0440\u044f\u0433\u0430\u0435\u0442, \u043d\u043e \u043f\u043e\u0442\u043e\u043c \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0435\u0434\u0435\u0442, \u043d\u043e \u044d\u0442\u043e \u0438 \u0431\u0435\u0437 \u0442\u0435\u0441\u0442\u043e\u0432 \u043b\u043e\u0433\u0438\u0447\u043d\u043e (\u0445\u043e\u0442\u044f \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432\u0441\u0435-\u0440\u0430\u0432\u043d\u043e \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u044f\u0435\u0442). \u041d\u0443 \u0430 \u0442\u0430\u043a \u043a\u0430\u0436\u0434\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u0446\u0438\u0444\u0440\u044b, \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0432\u044b\u0432\u043e\u0434\u044b. \u042f \u043c\u043e\u0433\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0441\u0432\u043e\u0438 \u043b\u0438\u0447\u043d\u044b\u0435 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p><u>pdfkit<\/u>. \u0412\u0441\u0435-\u0442\u0430\u043a\u0438 \u044d\u0442\u043e \u043d\u0435 \u0447\u0438\u0441\u0442\u043e\u043a\u0440\u043e\u0432\u043d\u044b\u0439 \u043f\u0438\u0442\u043e\u043d \u0438 \u0434\u0430\u0436\u0435 \u043d\u0435 \u043e\u0431\u0435\u0440\u0442\u043a\u0430 C-\u043b\u0438\u0431\u044b, \u0447\u0442\u043e \u043d\u0430\u0440\u0443\u0448\u0430\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0433\u0430\u0440\u043c\u043e\u043d\u0438\u044e \u0438 \u0431\u0435\u0441\u0438\u0442 \u043f\u0435\u0440\u0444\u0435\u043a\u0446\u0438\u043e\u043d\u0438\u0437\u043c. \u0420\u0430\u0434\u0443\u0435\u0442 \u0432\u044b\u0441\u043e\u043a\u043e\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e PDF, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0442\u043e\u0447\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0437\u0430\u0434\u0443\u043c\u043a\u0438 (\u0440\u0435\u0430\u043b\u044c\u043d\u043e WYSIWYG), \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043d\u0430 \u0442\u044f\u0436\u0435\u043b\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0445. \u041d\u0435 \u0440\u0430\u0434\u0443\u0435\u0442 \u043d\u0435\u0442\u043e\u0440\u043e\u043f\u043b\u0438\u0432\u043e\u0441\u0442\u044c \u043d\u0430 \u043c\u0435\u043b\u043a\u0438\u0445 \u0437\u0430\u0434\u0430\u0447\u0430\u0445 \u0438 \u043f\u043e\u0447\u0442\u0438 \u043f\u043e\u043b\u043d\u0430\u044f \u043d\u0435\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0441\u0442\u044c.<\/p>\n<\/li>\n<li>\n<p><u>weasyprint<\/u>. \u0411\u0435\u0434\u043d\u0435\u043d\u044c\u043a\u043e &#8212; \u043d\u043e \u0447\u0438\u0441\u0442\u0435\u043d\u044c\u043a\u043e. \u0412\u0441\u0435\u044f\u0434\u043d\u043e\u0435, \u043f\u0440\u0438\u0435\u043c\u043b\u0435\u043c\u0430\u044f (\u0430 \u0438\u043d\u043e\u0433\u0434\u0430 \u0438 \u043d\u0435\u043f\u043b\u043e\u0445\u0430\u044f) \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \u041d\u043e \u0431\u0435\u0437 \u043d\u0430\u0432\u043e\u0440\u043e\u0442\u043e\u0432 \u0438 \u0431\u0435\u0437 \u0440\u0435\u043a\u043e\u0440\u0434\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><u>xhtml2pdf<\/u>. \u0412\u0440\u0435\u0434\u043d\u043e\u0435. HTML \u0434\u043e\u043b\u0436\u0435\u043d \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430\u043c, \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0435\u0449\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u044d\u0442\u043e\u0439 \u043b\u0438\u0431\u0435, \u0438\u043d\u0430\u0447\u0435 &#171;\u0438\u043d\u0436\u0430\u043b\u0438\u0434 \u0434\u0435\u0436\u0438\u0446\u0435&#187;. \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0438\u0434\u0443\u0442 \u0443\u043f\u0440\u0430\u0436\u043d\u0435\u043d\u0438\u044f \u0441 \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u0435\u0439 (\u043a\u0441\u0442\u0430\u0442\u0438, \u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u0431\u0435\u0437 \u044d\u0442\u0438\u0445 \u0443\u043f\u0440\u0430\u0436\u043d\u0435\u043d\u0438\u0439 (\u043b\u0435\u043d\u0438\u0432\u043e), \u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e) \u0438 \u0444\u0435\u0435\u0440\u0438\u0447\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430. \u0417\u0430 \u044d\u0442\u043e \u0442\u0430\u043c \u043a\u0443\u0447\u0430 \u043d\u0430\u0432\u043e\u0440\u043e\u0442\u043e\u0432 \u0438 \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b (\u043a\u0430\u043a \u0434\u043b\u044f \u043f\u0438\u0442\u043e\u043d\u0430).<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u043e\u044f\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0440\u044b\u0432\u0430\u043c\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446, \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446, \u0445\u043e\u0440\u043e\u0448\u043e \u0431\u044b \u0435\u0449\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/github.com\/itext\/itext7\" rel=\"noopener noreferrer nofollow\">iText7<\/a> (\u043d\u043e \u044d\u0442\u043e \u0432\u044f\u0437\u0430\u0442\u044c python \u0441 java, \u0447\u0442\u043e \u0438\u0437 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0441\u0435\u043a\u0430\u0441\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u0432\u043e\u043f\u0440\u043e\u0441 \u0432 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044e \u043f\u0440\u043e\u043d\u0430), wkhtmltopdf-static \u0438 \u0438\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f. \u041d\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u043f\u0440\u043e\u0441\u0442\u043e <em>\u0431\u044b\u0441\u0442\u0440\u043e<\/em> \u043e\u0446\u0435\u043d\u0438\u0442\u044c <em>\u043f\u043e\u0440\u044f\u0434\u043e\u043a<\/em> \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043d\u0430 \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u043b\u0438\u0447\u043d\u043e \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 (RHEL8+).<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/540756\/\"> https:\/\/habr.com\/ru\/post\/540756\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u041d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0440\u0435\u0434\u043a\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0437\u0430\u0434\u0430\u0447\u0430 \u043f\u0435\u0447\u0430\u0442\u0438 HTML-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0441 \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043a\u0430\u043a \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c \u044d\u0442\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0414\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0435 \u0432 \u043d\u0430\u0434\u0435\u0436\u0434\u0435 \u043d\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u0430 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0410 \u0435\u0441\u043b\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u043d\u0435\u0447\u0442\u043e \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u0435 (Django\/Flask\/\u0442\u044b\u0441\u044f\u0447\u0438 \u0438\u0445), \u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u0431\u044b \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u0432\u043e \u0447\u0442\u043e \u044d\u0442\u043e \u043e\u0431\u043e\u0439\u0434\u0435\u0442\u0441\u044f.<\/p>\n<p>\u0414\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u0432\u044b\u0431\u0438\u0440\u0430\u043b\u0438\u0441\u044c \u0442\u0430\u043a\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0431\u044b\u043b\u0438 \u0432 \u0432\u0438\u0434\u0435 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u043f\u043e RH-based \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 \u0438\u043b\u0438 \u0436\u0435 &#8212; \u0432 \u043a\u0440\u0430\u0439\u043d\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 &#8212; \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0442\u0430\u043a\u043e\u0432\u044b\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c. \u0418 \u0447\u0442\u043e\u0431\u044b \u0431\u0435\u0437 \u0434\u043e\u043b\u0433\u0438\u0445 \u0442\u0430\u043d\u0446\u0435\u0432 \u0441 \u0431\u0443\u0431\u043d\u043e\u043c.<br \/>\u0412 macOS \u0432\u0441\u0451 \u0441\u0442\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e homebrew \u0438 pip3, \u0432 Fedora &#8212; \u0438\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e (\u0438\u0441\u043a\u043b. xhtml2pdf &#8212; \u044d\u0442\u043e\u0433\u043e \u0432 \u0440\u0435\u043f\u0430\u0445 \u043d\u0435\u0442, \u043d\u043e \u043f\u0440\u0438 \u0434\u043e\u043b\u0436\u043d\u043e\u0439 \u0443\u0441\u0438\u0434\u0447\u0438\u0432\u043e\u0441\u0442\u0438 \u0437\u0430 \u043f\u0430\u0440\u0443 \u0447\u0430\u0441\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u0435\u0431\u0435 \u0446\u0438\u0432\u0438\u043b\u044c\u043d\u044b\u0439 rpm).<\/p>\n<p><strong>\u0414\u0430\u043d\u043e:<\/strong><\/p>\n<p> \u041f\u043e\u0441\u043b\u0435 \u0442\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0442\u0431\u043e\u0440\u0430 \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432 \u043d\u0430\u043a\u043e\u043f\u0438\u043b\u043e\u0441\u044c \u0430\u0436 3:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/github.com\/JazzCore\/python-pdfkit\" rel=\"noopener noreferrer nofollow\">python-pdfkit<\/a> &#8212; \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u043a \u0432\u044b\u0437\u043e\u0432\u0443 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430 <a href=\"https:\/\/wkhtmltopdf.org\" rel=\"noopener noreferrer nofollow\">wkhtmltopdf<\/a>.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.courtbouillon.org\/weasyprint\" rel=\"noopener noreferrer nofollow\">weasyprint<\/a> &#8212; \u043f\u0440\u043e\u043a\u043b\u0430\u0434\u043a\u0430 \u043c\u0435\u0436\u0434\u0443 html5lib \u0438 reportlab.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/xhtml2pdf\/xhtml2pdf\" rel=\"noopener noreferrer nofollow\">xhtml2pdf<\/a> &#8212; \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 weasyprint, \u043d\u043e \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 <s>\u0442\u0430\u0440\u0430\u043a\u0430\u043d\u0430\u043c\u0438<\/s> \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044f\u043c\u0438. \u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u043a\u0430\u043a &#171;Pisa&#187; (\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043c\u043e\u0434\u0443\u043b\u044c).<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u0431\u0440\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0434 \u0440\u0443\u043a\u0430\u043c\u0438 \u0442\u043e\u0436\u0435 3 (\u0432\u0441\u0435 x64):<\/p>\n<ul>\n<li>\n<p><strong>M<\/strong>acBook &#8212; Apple MacBookPro9.2 (13&#8243; mid 2012, <a href=\"https:\/\/ark.intel.com\/content\/www\/ru\/ru\/ark\/products\/67355\/intel-core-i5-3210m-processor-3m-cache-up-to-3-10-ghz-rpga.html\" rel=\"noopener noreferrer nofollow\">i5-3210M<\/a> (2.5GHz)), HDD, macOS 10.15 &#171;Catalina&#187;, Python 3.9 (brew)<\/p>\n<\/li>\n<li>\n<p><strong>L<\/strong>inBook (\u0442\u0430\u043a \u044d\u0442\u043e \u043d\u0430\u0437\u043e\u0432\u0435\u043c) &#8212; \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u043c\u0430\u043a\u0431\u0443\u043a, \u043d\u043e \u0441 Fedora 33, Python 3.9<\/p>\n<\/li>\n<li>\n<p><strong>D<\/strong>eskTop &#8212; Intel <a href=\"https:\/\/ark.intel.com\/content\/www\/us\/en\/ark\/products\/80792\/intel-pentium-processor-g3450-3m-cache-3-40-ghz.html\" rel=\"noopener noreferrer nofollow\">G3450<\/a> (3.4GHz), HDD, Fedora 33, Python 3.9<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432 &#8212; 3 (\u0432\u0441\u0435 &#8212; \u043d\u0430 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0443 \u043a\u0430\u0436\u0434\u044b\u0439):<\/p>\n<ul>\n<li>\n<p><u>\u041f\u04144<\/u> &#8212; \u043a\u0432\u0438\u0442\u0430\u043d\u0446\u0438\u044f \u043d\u0430 \u043e\u043f\u043b\u0430\u0442\u0443 \u043d\u0430\u043b\u043e\u0433\u043e\u0432 \u0438 \u0441\u0431\u043e\u0440\u043e\u0432 \u0432 \u0421\u0431\u0435\u0440 (\u0444\u043e\u0440\u043c\u0430 \u041f\u0414-4\u0441\u0431). HTML \u0440\u0443\u0447\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430\u043c. \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0437\u0430\u0434\u0443\u043c\u043a\u0438 \u0430\u0432\u0442\u043e\u0440\u0430 \u0432 \u043f\u0435\u0447\u0430\u0442\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0432\u044b\u0441\u043e\u043a\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p><u>\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f<\/u> &#8212; \u0447\u0435\u0439-\u0442\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0441 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c, \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438, \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0430\u043c\u0438 \u0438 \u043c\u0435\u0441\u0442\u043e\u043c \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0438. \u041f\u043e\u043b\u0443\u0447\u0435\u043d \u0438\u0437 .doc \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u043e\u043c \u0438\u0437 Word 2007. HTML \u043d\u0435 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043e\u0447\u0435\u043d\u044c \u0442\u044f\u0436\u0435\u043b\u044b\u0439, \u043d\u043e \u043d\u0430 \u0442\u044f\u043f-\u043b\u044f\u043f. \u0422\u043e \u0435\u0441\u0442\u044c \u043a\u0430\u043a \u043e\u043d\u043e \u0438 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0436\u0438\u0437\u043d\u0438. \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 &#8212; \u043d\u0438\u043a\u0430\u043a\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p><u>\u042021001<\/u> &#8212; \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043b\u0438\u0441\u0442\u0438\u043a (\u0441\u0442\u0440.5\u0411) \u0444\u043e\u0440\u043c\u044b \u042021001 &#8212; \u0441 \u044f\u043a\u043e\u0440\u044f\u043c\u0438 \u0434\u043b\u044f \u0441\u043a\u0430\u043d\u0435\u0440\u0430, \u0431\u0443\u043a\u0432\u0430\u043c\u0438 \u0432 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0438\u043a\u0430\u0445 \u0438 \u0432\u0441\u0435\u043c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c, \u0447\u0442\u043e \u043c\u044b \u0442\u0430\u043a \u043b\u044e\u0431\u0438\u043c \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0445 \u0434\u043b\u044f \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0439. \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0438\u0437 Excel 2007, IE6-\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c 2 \u041c\u0411 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e HTML, \u043d\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0444\u0435\u0435\u0440\u0438\u0447\u043d\u043e\u0439 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u044f\u0436\u0435\u043b\u043e\u0433\u043e \u0434\u043b\u044f \u043f\u0430\u0440\u0441\u0435\u0440\u0430-\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430. \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043e\u0447\u0435\u043d\u044c \u0432\u044b\u0441\u043e\u043a\u0438\u0435.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435:<\/strong><\/p>\n<details class=\"spoiler\">\n<summary>\u041a\u043e\u0434 \u043d\u0430 \u043a\u043e\u043b\u0435\u043d\u043a\u0435<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"python\">#!\/usr\/bin\/env python3 # -*- coding: utf-8 -*- \"\"\" Benchmark of html-to-pdf converters. (c) @justhabrauser, GPLv3. \"\"\"  # 1. system import os import sys from time import time # 2. 3rd from pdfkit import from_string          # https:\/\/github.com\/JazzCore\/python-pdfkit from weasyprint import HTML             # https:\/\/github.com\/Kozea\/WeasyPrint from xhtml2pdf.pisa import CreatePDF    # https:\/\/github.com\/xhtml2pdf\/xhtml2pdf  def __pdfkit(html: str) -&gt; bytes:     return from_string(html, False, options={'quiet': ''})  def __weasy(html: str) -&gt; bytes:     return HTML(string=html).write_pdf()  def __pisa(html: str) -&gt; bytes:     pdf = CreatePDF(html)     if not pdf.err:         pdf.dest.seek(0)         return pdf.dest.read()  def main(indir: str, outdir: str, count: int) -&gt; None:     # 1. Load all htmls     modules = (__pdfkit, __weasy, __pisa)     html_list = list()      # (filename, content)[]     dir_list = os.listdir(indir)     dir_list.sort()     for i, fn in enumerate(dir_list):         fpath = os.path.join(indir, fn)         if os.path.isfile(fpath) and fpath.endswith(\".html\"):             print(\"Load '{}'\".format(fn), file=sys.stderr)             with open(fpath, \"rt\") as i_f:                 html = i_f.read()                 html_list.append(html)                 # 2. write results (and warm up)                 for j, m in enumerate(modules):                     with open(os.path.join(outdir, \"%d_%d.pdf\" % (i, j)), \"wb\") as o_f:                         o_f.write(m(html))     # 2. for C times x I pages x J engines:     print(\"Count\\tPage\\tEngine\\tTime\\n=====\\t====\\t======\\t====\")     for c in range(count):                   # count         for i, h in enumerate(html_list):    # html page             for j, m in enumerate(modules):  # engine                 t0 = time()                 m(h)                 t1 = time()                 print(\"{}\\t{}\\t{}\\t{}\".format(c, i, j, t1-t0))  if __name__ == '__main__':     if len(sys.argv) != 3:         print(\"Usage: {} &lt;dir_with_htmls&gt; &lt;output_dir_for_pdfs&gt;\".format(sys.argv[0]), file=sys.stderr)     elif not os.path.isdir(sys.argv[1]):         print(\"Input '{}' is not dir or not exists.\".format(sys.argv[1]), file=sys.stderr)     elif not os.path.isdir(sys.argv[2]):         print(\"Output '{}' is not dir or not exists.\".format(sys.argv[2]), file=sys.stderr)     else:         main(sys.argv[1], sys.argv[2], 5) <\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0421\u0440\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 (\u0432 \u0440\u0430\u0437\u0440\u0435\u0437\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c (D=DeskTop, L=LinBook, M=MacBook)), \u0441\u0435\u043a.:<\/p>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td rowspan=\"2\" data-colwidth=\"83\" width=\"83\">\n<p align=\"center\"><strong>Lib<\/strong><\/p>\n<\/td>\n<td colspan=\"3\">\n<p align=\"center\">\u041f\u04144<\/p>\n<\/td>\n<td colspan=\"3\" data-colwidth=\"0,0,77\" width=\"0\">\n<p align=\"center\">\u0421\u043c\u0435\u0442\u0430<\/p>\n<\/td>\n<td colspan=\"3\" data-colwidth=\"0,0,70\" width=\"0\">\n<p align=\"center\">\u042021001<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"center\"><strong>D<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>L<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>M<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>D<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>L<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"center\"><strong>M<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>D<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>L<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"70\" width=\"70\">\n<p align=\"center\"><strong>M<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"83\" width=\"83\">\n<p><strong>Pdfkit<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"right\">0,36<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,44<\/p>\n<\/td>\n<td>\n<p align=\"right\">1,49<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,36<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,44<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"right\">1,23<\/p>\n<\/td>\n<td>\n<p align=\"right\">1,3<\/p>\n<\/td>\n<td>\n<p align=\"right\">1,9<\/p>\n<\/td>\n<td data-colwidth=\"70\" width=\"70\">\n<p align=\"right\">6,9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"83\" width=\"83\">\n<p><strong>Weasy<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"right\">0,36<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,47<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,60<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,27<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,36<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"right\">0,65<\/p>\n<\/td>\n<td>\n<p align=\"right\">26,1<\/p>\n<\/td>\n<td>\n<p align=\"right\">34,8<\/p>\n<\/td>\n<td data-colwidth=\"70\" width=\"70\">\n<p align=\"right\">54,7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"83\" width=\"83\">\n<p><strong>Pisa<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"right\">0,12<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,17<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,28<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,29<\/p>\n<\/td>\n<td>\n<p align=\"right\">0,41<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"right\">0,68<\/p>\n<\/td>\n<td>\n<p align=\"right\">20,4<\/p>\n<\/td>\n<td>\n<p align=\"right\">27,3<\/p>\n<\/td>\n<td data-colwidth=\"70\" width=\"70\">\n<p align=\"right\">42,2<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><strong>\u0412\u044b\u0432\u043e\u0434\u044b<\/strong>: <s>\u0442\u0430\u0440\u0430\u043a\u0430\u043d \u0431\u0435\u0437 \u043d\u043e\u0433 \u043d\u0435 \u0441\u043b\u044b\u0448\u0438\u0442 <\/s><a href=\"https:\/\/www.toptal.com\/designers\/htmlarrows\/symbols\/copyright-sign\/\" rel=\"noopener noreferrer nofollow\"><strong><s>\u00a9<\/s><\/strong><\/a><\/p>\n<p>\u041e\u0431\u0449\u0438\u0439 \u0432\u044b\u0432\u043e\u0434 &#8212; \u0441\u0447\u0430\u0441\u0442\u044c\u044f \u043d\u0435\u0442. \u0422\u043e \u0435\u0441\u0442\u044c \u044f \u043d\u0435 \u0441\u043c\u043e\u0433 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u0430 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u0432\u044b\u0433\u043d\u0430\u0442\u044c \u043d\u0430 \u043c\u043e\u0440\u043e\u0437 \u0438\u043b\u0438 \u043d\u0430\u0433\u0440\u0430\u0434\u0438\u0442\u044c \u0437\u043e\u043b\u043e\u0442\u043e\u0439 \u043c\u0435\u0434\u0430\u043b\u044c\u044e. \u0412 \u0441\u0440\u0435\u0434\u043d\u0435\u043c \u043f\u043e \u0431\u043e\u043b\u044c\u043d\u0438\u0446\u0435 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e pdfkit \u0434\u043e\u043b\u044c\u0448\u0435 \u0437\u0430\u043f\u0440\u044f\u0433\u0430\u0435\u0442, \u043d\u043e \u043f\u043e\u0442\u043e\u043c \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0435\u0434\u0435\u0442, \u043d\u043e \u044d\u0442\u043e \u0438 \u0431\u0435\u0437 \u0442\u0435\u0441\u0442\u043e\u0432 \u043b\u043e\u0433\u0438\u0447\u043d\u043e (\u0445\u043e\u0442\u044f \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432\u0441\u0435-\u0440\u0430\u0432\u043d\u043e \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u044f\u0435\u0442). \u041d\u0443 \u0430 \u0442\u0430\u043a \u043a\u0430\u0436\u0434\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u0446\u0438\u0444\u0440\u044b, \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0432\u044b\u0432\u043e\u0434\u044b. \u042f \u043c\u043e\u0433\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0441\u0432\u043e\u0438 \u043b\u0438\u0447\u043d\u044b\u0435 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p><u>pdfkit<\/u>. \u0412\u0441\u0435-\u0442\u0430\u043a\u0438 \u044d\u0442\u043e \u043d\u0435 \u0447\u0438\u0441\u0442\u043e\u043a\u0440\u043e\u0432\u043d\u044b\u0439 \u043f\u0438\u0442\u043e\u043d \u0438 \u0434\u0430\u0436\u0435 \u043d\u0435 \u043e\u0431\u0435\u0440\u0442\u043a\u0430 C-\u043b\u0438\u0431\u044b, \u0447\u0442\u043e \u043d\u0430\u0440\u0443\u0448\u0430\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0433\u0430\u0440\u043c\u043e\u043d\u0438\u044e \u0438 \u0431\u0435\u0441\u0438\u0442 \u043f\u0435\u0440\u0444\u0435\u043a\u0446\u0438\u043e\u043d\u0438\u0437\u043c. \u0420\u0430\u0434\u0443\u0435\u0442 \u0432\u044b\u0441\u043e\u043a\u043e\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e PDF, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0442\u043e\u0447\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0437\u0430\u0434\u0443\u043c\u043a\u0438 (\u0440\u0435\u0430\u043b\u044c\u043d\u043e WYSIWYG), \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043d\u0430 \u0442\u044f\u0436\u0435\u043b\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0445. \u041d\u0435 \u0440\u0430\u0434\u0443\u0435\u0442 \u043d\u0435\u0442\u043e\u0440\u043e\u043f\u043b\u0438\u0432\u043e\u0441\u0442\u044c \u043d\u0430 \u043c\u0435\u043b\u043a\u0438\u0445 \u0437\u0430\u0434\u0430\u0447\u0430\u0445 \u0438 \u043f\u043e\u0447\u0442\u0438 \u043f\u043e\u043b\u043d\u0430\u044f \u043d\u0435\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0441\u0442\u044c.<\/p>\n<\/li>\n<li>\n<p><u>weasyprint<\/u>. \u0411\u0435\u0434\u043d\u0435\u043d\u044c\u043a\u043e &#8212; \u043d\u043e \u0447\u0438\u0441\u0442\u0435\u043d\u044c\u043a\u043e. \u0412\u0441\u0435\u044f\u0434\u043d\u043e\u0435, \u043f\u0440\u0438\u0435\u043c\u043b\u0435\u043c\u0430\u044f (\u0430 \u0438\u043d\u043e\u0433\u0434\u0430 \u0438 \u043d\u0435\u043f\u043b\u043e\u0445\u0430\u044f) \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \u041d\u043e \u0431\u0435\u0437 \u043d\u0430\u0432\u043e\u0440\u043e\u0442\u043e\u0432 \u0438 \u0431\u0435\u0437 \u0440\u0435\u043a\u043e\u0440\u0434\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><u>xhtml2pdf<\/u>. \u0412\u0440\u0435\u0434\u043d\u043e\u0435. HTML \u0434\u043e\u043b\u0436\u0435\u043d \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430\u043c, \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0435\u0449\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u044d\u0442\u043e\u0439 \u043b\u0438\u0431\u0435, \u0438\u043d\u0430\u0447\u0435 &#171;\u0438\u043d\u0436\u0430\u043b\u0438\u0434 \u0434\u0435\u0436\u0438\u0446\u0435&#187;. \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0438\u0434\u0443\u0442 \u0443\u043f\u0440\u0430\u0436\u043d\u0435\u043d\u0438\u044f \u0441 \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u0435\u0439 (\u043a\u0441\u0442\u0430\u0442\u0438, \u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u0431\u0435\u0437 \u044d\u0442\u0438\u0445 \u0443\u043f\u0440\u0430\u0436\u043d\u0435\u043d\u0438\u0439 (\u043b\u0435\u043d\u0438\u0432\u043e), \u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e) \u0438 \u0444\u0435\u0435\u0440\u0438\u0447\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430. \u0417\u0430 \u044d\u0442\u043e \u0442\u0430\u043c \u043a\u0443\u0447\u0430 \u043d\u0430\u0432\u043e\u0440\u043e\u0442\u043e\u0432 \u0438 \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b (\u043a\u0430\u043a \u0434\u043b\u044f \u043f\u0438\u0442\u043e\u043d\u0430).<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u043e\u044f\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0440\u044b\u0432\u0430\u043c\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446, \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446, \u0445\u043e\u0440\u043e\u0448\u043e \u0431\u044b \u0435\u0449\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/github.com\/itext\/itext7\" rel=\"noopener noreferrer nofollow\">iText7<\/a> (\u043d\u043e \u044d\u0442\u043e \u0432\u044f\u0437\u0430\u0442\u044c python \u0441 java, \u0447\u0442\u043e \u0438\u0437 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0441\u0435\u043a\u0430\u0441\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u0432\u043e\u043f\u0440\u043e\u0441 \u0432 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044e \u043f\u0440\u043e\u043d\u0430), wkhtmltopdf-static \u0438 \u0438\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f. \u041d\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u043f\u0440\u043e\u0441\u0442\u043e <em>\u0431\u044b\u0441\u0442\u0440\u043e<\/em> \u043e\u0446\u0435\u043d\u0438\u0442\u044c <em>\u043f\u043e\u0440\u044f\u0434\u043e\u043a<\/em> \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043d\u0430 \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u043b\u0438\u0447\u043d\u043e \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 (RHEL8+).<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/540756\/\"> https:\/\/habr.com\/ru\/post\/540756\/<\/a><br \/><\/br><\/br><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-318730","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/318730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=318730"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/318730\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=318730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=318730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=318730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}