<div dir="ltr">I think option 2 is the best here but don't just warn the user let them pick it from the message box.<div><br></div><div style>So something like:</div><div style><br></div><div style>You have blend modes enabled but we can't print them as vectors.  What do you want to do?</div>

<div style><br></div><div style>Enable Print as Raster | Print as Vector | Cancel</div><div style><br></div><div style>When someone pressing Enable Print as Raster it should tick the box and print from there.</div><div style>

<br></div><div style>- Nathan</div><div style> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 3, 2013 at 9:57 AM, 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>
<br>
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>