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
Add outputFormat as a none-custom param of MapfishPrintProvider #349
Conversation
Has been fixed on the server side, the servlet used in the examples now supports image output, tested for jpg and png |
The changes seem to be fine then. Thank you. Off to configuring my service correctly next. |
715a156
to
58ef017
Compare
Is this waiting for review? @weskamm, any chance you may want to do it? |
I'm having a look at this just right now.. |
Thanks @weskamm. I think it's ready for review. |
@@ -458,6 +494,16 @@ Ext.define('GeoExt.data.MapfishPrintProvider', { | |||
* | |||
* @param {Ext.data.Record} layout The record of the layout. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs adjustments from c&p
I just added a minor comment. Otherwise, this looks good to me, thanks for the contribution! |
Is this interesting for upstream? Otherwise I will close the PR. |
Yes i still think it is a nice addition. And as it keeps the PDF format as the default, i dont't see any problems here merging this into upstream and will do so now! |
Add outputFormat as a none-custom param of MapfishPrintProvider
I have the requirement to "print" other formats than pdf via Geoserver printing and thought this may be interesting for upstream as well.
Right now I have problems to configure Geoserver printing to work with other formats than PDF so this has not been tested "live" but only via programmatic tests. I also changed the print-form example to include the outputFormat option but the hosted printing service also fails on delivering the supported formats (as of info.json it should deal with PNG for example).
If I understand this correctly the printing plugin is trying to convert the generated PDF via ImageMagick command into the desired outputFormat as requested via POST to create.json (described here).