وصفات Nginx: التحويل من HTML وعناوين URL إلى PDF و PS

لإعداد التحويل من HTML و URL إلى PDF و PS ، نحتاج إلى nginx نفسه ، ومولد htmldoc والمكون الإضافي ngx_http_htmldoc_module . (لقد قدمت روابط إلى شوكة بلدي ، لأنني أجريت بعض التغييرات التي لم يتم حشرها بعد في المستودع الأصلي. يمكنك أيضًا استخدام الصورة الجاهزة .)

للتحويل من HTML و URL إلى PDF و PS
location =/file2pdf { file2pdf "file.html"; } #  FILE  PDF location =/file2ps { file2ps "file.html"; } #  FILE  PS location =/file2pdf { file2pdf "file1.html" "file2.html"; } #   FILE  PDF location =/file2ps { file2ps "file1.html" "file2.html"; } #   FILE  PS location =/html2pdf { html2pdf ", !"; } #  HTML  PDF location =/html2ps { html2ps ", !"; } #  HTML  PS location =/html2pdf { html2pdf ", !" " , !"; } #   HTML  PDF location =/html2ps { html2ps ", !" " , !"; } #   HTML  PS location =/url2pdf { url2pdf "https://google.com"; } #  URL  PDF location =/url2ps { url2ps "https://google.com"; } #  URL  PS location =/url2pdf { url2pdf "https://google.com" "https://google.ru"; } #   URL  PDF location =/url2ps { url2ps "https://google.com" "https://google.ru"; } #   URL  PS 

Source: https://habr.com/ru/post/ar458982/


All Articles