How to Render Beautiful PDFs from HTML with Spring MVC

Поделиться
HTML-код
  • Опубликовано: 18 окт 2024

Комментарии • 9

  • @arnaudpoutieu1331
    @arnaudpoutieu1331 11 месяцев назад

    I like what you do for the community. Gratitudes!!!

    • @arnaudpoutieu1331
      @arnaudpoutieu1331 11 месяцев назад

      Quick question: let's assume we want to add dynamically a logo to the invoice, would we use the Thymeleaf context to pass the bytes?

    • @alexgutjahr
      @alexgutjahr  11 месяцев назад

      Thanks for the kind words! I haven't tried loading a dynamic image, but I'd probably encode it in Base64 and pass it as a string to begin with and see if that works.

    • @arnaudpoutieu1331
      @arnaudpoutieu1331 11 месяцев назад

      ​@@alexgutjahr Many thanks for your time. I will investigate that way. Have a good day

    • @alexgutjahr
      @alexgutjahr  11 месяцев назад

      @@arnaudpoutieu1331 my pleasure, let me know if it works!

  • @Shuvooa
    @Shuvooa 10 месяцев назад

    Great content! need more like these.

  • @hkkabir2024
    @hkkabir2024 Месяц назад

    different language font not working. i have tried with bengali font like kalpurush , SolaimanLipi etc. there is no solution except paid version of itext / ironpdf . if you know any solution plz let us know . i been trying over months for getting this solution . i have used jasper reporting which worked for bengali and ohter languages but jasper limitation is that it can't take css

  • @user-sk4xf2lh3l
    @user-sk4xf2lh3l 18 дней назад

    Great video! It might be worth mentioning that Flying Saucer only seems to support CSS 2.1.
    11:06 I have found a way to access assets without using a public URL. The baseUrl property of the ITextRenderer instance can be set like this: (new File(Objects.requireNonNull(getClass().getResource("/templates")).getFile())).toURI().toURL().toString()