On 2021/10/26 12:07:55, Nicola Cisternino <[email protected]> wrote:
> Hi all
> I've an html resource (e.g. "pagecontent.html" stored in "apps" JCR structure
> and mapped as sling:resourceType in a "content" node (e.g.
> /content/test/page1).
> So, using a browser, a request of: http://localhost:8080/test/page1 returns a
> text stream containing html tags ... while a request of
> http://localhost:8080/test/page1.html is normally parsed and correctly
> displayed.
> Can Sling return a PDF rendering of my HTML resource? (something like
> http://localhost:8080/test/page1.pdf... or
> http://localhost:8080/test/page1.html.pdf)
> Thanks a lot.
>
>
Thank you Konrad and Robert !
I need a generic html2pdf converter usable with any existing (or generated)
html resource ... so I was looking to use "Output Rewriting Pipelines"
(https://sling.apache.org/documentation/bundles/output-rewriting-pipelines-org-apache-sling-rewriter.html)
in conjunction with "Flying Saucer and OpenPDF"