<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Hilpers,</p>
<p>I'll explain why this isn't so easy to solve - even with GDAL.</p>
<p>QGIS has a very rich set of symbology and labeling options. For PDF generation it relies on the qt libraries - which did not support attributes and layered PDFs so far - at least in version 4 that QGIS used so far. I don't know if qt5 improved in that respect. GDAL/OGR has a quite limited set of feature styling options. There is no easy translation between the two - and in 95% of the cases your map would look different when translating to OGR/GDAL - unless you rasterize all layers - which is probably not what you want.</p>
<p>So unless either qt supports output in layered PDF and supports attributes, it won't happen any time soon. Alternatively, QGIS could use an alternative PDF library, which probably isn't trivial either.</p>
<p>Unless someone would heavily invest in development time or money, or better both - this probably won't happen.</p>
<p>Your best option would be to try to improve qt5, so that it supports layered PDFs and attributes or try to switch to a different PDF renderer - not sure how feasible that would be.</p>
<p>Andreas</p>
<p>On 2017-05-12 08:18, hilpers wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Hello everyone, <br /><br /> i am wondering whether it is going to be possible to generate multi-layered<br /> pdfs using print composer anytime soon. While GDAL supports that QGIS does<br /> not seem to do so yet. For making maps available to the public it would be<br /> practival to implement layer attributes within pdf (similarly to ArcGIS). Is<br /> this technically possible using GDAL?<br /><br /> Thanks, <br /> hilpers<br /><br /><br /><br /> --<br /> View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/multi-layered-pdf-attribute-support-in-pdf-outputs-tp5320273.html">http://osgeo-org.1560.x6.nabble.com/multi-layered-pdf-attribute-support-in-pdf-outputs-tp5320273.html</a><br /> Sent from the QGIS - Developer mailing list archive at Nabble.com.<br /> _______________________________________________<br /> QGIS-Developer mailing list<br /><a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br /> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br /> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></div>
</blockquote>
<p> </p>
<div> </div>
</body></html>