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

Webtools HTML 2 Media integration #191

Open
steeff opened this issue Apr 13, 2022 · 1 comment
Open

Webtools HTML 2 Media integration #191

steeff opened this issue Apr 13, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@steeff
Copy link

steeff commented Apr 13, 2022

Hi,
An interesting alternative to generate a print or PDF version of pages is to use the Webtools HTML 2 Media service https://webgate.ec.europa.eu/fpfis/wikis/display/webtools/HTML+2+Media .
It does not require to install any 3rd party libraries on the server and externalize the workload. the downside is that it can only convert public pages that can be read by the webservice.
At DG Grow for several projects we are using this feature and developed a generic module that provides:

  • a block with a link to the pdf version of the page (and can be used out of the box by a site builder)
  • a route that implement webservice parameters to retrieve the binary file url
  • a service to get the file url programmatically
    all kind of errors should be handled

PR #192

@brummbar brummbar added the enhancement New feature or request label Apr 29, 2022
@brummbar
Copy link
Contributor

Thanks @steeff , this looks interesting! I'll create a ticket to have a review of the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants