<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Hi Nyall,<br></div><div class="gmail_quote"><br>On Thu, May 2, 2013 at 5:57 PM, Nyall Dawson <span dir="ltr"><<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I'm after some advice on the best way to handle pdf or printer output<br>
of compositions when the composition or map contains blending.<br>
<br>
Since QPrinter doesn't support the QPainter composition modes, any<br>
blending options are currently ignored when exporting a composition to<br>
pdf/printer. There's two options I can see to handle this, and I'm<br>
wondering what everyone thinks is the best approach.<br>
<br>
Option 1 - Automatically export compositions with blending using rasters.<br>
This approach would check whether the composition contains any<br>
blending, and if so would use the "print as raster" option to<br>
effectively flatten the output before exporting. This is probably the<br>
most user-friendly approach, since the user doesn't need to do<br>
anything extra to get the printout looking correct.<br>
<br>
Option 2 - Warn the user that blending requires 'print as raster' checked<br>
This approach would display a warning dialog when attempting to<br>
print/pdf a composition containing blending (similar to how svg<br>
outputs currently show a warning). The warning would tell the user to<br>
check "print as raster" if they want the blending modes used in the<br>
export.<br></blockquote><div><br></div><div>How about option 3: do option 2, but right below the warning offer a "Print as raster" checkbox (on by default, IMO).<br><br>This way a user is warned and can just choose the option to skip rasterization, without closing the dialog. Then, only a single "Continue" button (along with Cancel) would be needed and the dialog would work for preceding both PDF exporting and printing.<br>
</div><div><br></div><div>Oh, just saw Nathan's similar reply. Therefore, just adding my 2 cents worth.<br></div><div><br></div><div>Regards,<br><br>Larry<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

The advantage with option 2 is that it leaves the possibility for<br>
vector-based exports even when blending has been used. This way, a<br>
user who wants to further edit a composition in a vector illustration<br>
program (inkscape/illustrator/etc) can still export to an editable pdf<br>
to tweak the map and re-apply the blending in the external program.<br>
Option 1 would make this impossible, since any blending would force<br>
the output into raster format and prevent any manual editing of the<br>
composition.<br>
<br>
For this reason my gut feeling is that option 2 is a better way to go,<br>
but I thought I'd raise it with the list for other opinions.<br>
<br>
Nyall<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br></div></div>