search

Home  >  Q&A  >  body text

Java background export page to pdf

is a JSP page, and I want to export elements that can be seen by page users (tables, pictures, paragraphs, etc.) to pdf. There are ordinary tables on the page, as well as js controls such as hicharts.

I plan to use IText for the backend, but I don’t know how to handle it when it comes to complex things like hicharts, and it’s troublesome to add elements to IText one by one because there is a lot of content and CSS styles.

Also, is it possible to directly change the content-type of the response to output the pdf content format without using Itext for manual conversion?

Springmvc is used in the background for control

Does anyone have any good solutions?

过去多啦不再A梦过去多啦不再A梦2722 days ago692

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-06-12 09:25:42

    Dear, why do you need to use the background to export pdf? You can also export pdf directly using front-end js http://www.cnblogs.com/xueziz...

    reply
    0
  • Cancelreply