Recetas Nginx: conversi贸n de HTML y URL a PDF y PS

Para preparar la conversi贸n de HTML y URL a PDF y PS, necesitamos nginx , el generador htmldoc y el complemento ngx_http_htmldoc_module . (Di enlaces a mis tenedores, porque hice algunos cambios que a煤n no se han incluido en el repositorio original. Tambi茅n puede usar la imagen ya preparada ).

Para convertir de HTML y URL a PDF y 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/458982/


All Articles