Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to a new HTML Renderer #558

Closed
tresf opened this issue Jan 23, 2020 · 3 comments
Closed

Switch to a new HTML Renderer #558

tresf opened this issue Jan 23, 2020 · 3 comments

Comments

@tresf
Copy link
Contributor

tresf commented Jan 23, 2020

We're investigating dropping JavaFX from our source code due to the poor support it has for printing (e.g. #532, #268) as well as many reliability issues in regards to printing (#96, #280, #231, #506, #497, #547).

Using an open source renderer:

  • Very few exist that use modern standards.
  • Ones that do often require us to build them ourselves.

Using a commercial renderer:

  • May make the build environment hard to support as open-source

Ideas are welcome. So far I've found the following projects:

@tresf tresf added this to the 2.2 milestone Jan 23, 2020
@tresf
Copy link
Contributor Author

tresf commented Jan 23, 2020

Another idea... what if we leveraged jsPDF under the covers to render HTML? Then we'd use the reliable PDFBOX for printing and let the browser do the rest? Note, this idea is slightly stolen from @lukas-w from another code repository. :)

@tresf
Copy link
Contributor Author

tresf commented Feb 4, 2020

what if we leveraged jsPDF under the covers to render HTML

@bberenz researched jsPDF and although it's often the first result in an online search, they're discontinuing the fromHTML function.

I'm looking into other services and most are commercial. So far the best I've found quality-wise is https://pdfcrowd.com/. Without a subscription it'll watermark the content, but the render quality is the best I've found so far. There's also obvious privacy concerns if we were to farm out any HTML rendering to a 3rd-party provider.

@tresf
Copy link
Contributor Author

tresf commented May 26, 2020

Closing for now. We can reopen as needed. For now, we have official support through Gluon and they've been very responsive.

@tresf tresf closed this as completed May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants