Nginx食谱:从HTML和URL转换为PDF和PS

要准备从HTML和URL到PDF和PS的转换,我们需要nginx本身, htmldoc生成器和ngx_http_htmldoc_module插件。 (我提供了到fork的链接,因为我做了一些尚未塞入原始存储库的更改。您也可以使用现成的图像 。)

从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/zh-CN458982/


All Articles