<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div>Hey Andy,</div><div><br></div><div>The PDF file is not empty, it shows both raster and vector layers. The -mdd LAYERS does not show layers info. I am using MS4W 3.1.3 which, according to the MS4W site has GDAL 2.0.2<br></div></div>
            <div><br></div><div><br></div>
            
            <div id="ydp712c3f0yahoo_quoted_4547945494" class="ydp712c3f0yahoo_quoted">
                <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                    
                    <div>
                        On Monday, September 4, 2017, 9:33:07 AM CDT, Andy Colson <andy@squeakycode.net> wrote:
                    </div>
                    <div><br></div>
                    <div><br></div>
                    <div><div dir="ltr">On 09/04/2017 09:20 AM, Carlos Ruiz wrote:<div class="ydp712c3f0yqt7096784001" id="ydp712c3f0yqtfd90170"><br clear="none">> I'm currently exploring PDF generation from Mapserver and I have noticed that no layers appear to be toggled. First I thought this was because the layer CLASS section has no name (as it happens when legend is generated), but it is not.<br clear="none">> <br clear="none">> gdalinfo test.pdf does not show layers information.<br clear="none">> <br clear="none">> Does anybody know how to configure a MAP file to include layers in the PDF output ?<br clear="none">> <br clear="none">> Here is test.map contents:<br clear="none">> <br clear="none">> MAP<br clear="none">> <br clear="none">>      NAME "test"<br clear="none">>      EXTENT 657024 2277645 687240 2294128<br clear="none">>      SIZE 800 600<br clear="none">> <br clear="none">>      OUTPUTFORMAT<br clear="none">>          NAME "pdf"<br clear="none">>          DRIVER CAIRO/PDF<br clear="none">>          MIMETYPE "application/x-pdf"<br clear="none">>          IMAGEMODE RGB<br clear="none">>          EXTENSION "pdf"<br clear="none">>          FORMATOPTION "GEO_ENCODING=ISO32000"<br clear="none">>      END<br clear="none">> <br clear="none">>      PROJECTION<br clear="none">>          "init=EPSG:32613"<br clear="none">>      END<br clear="none">> <br clear="none">>      STATUS ON<br clear="none">> <br clear="none">>      LAYER<br clear="none">>          NAME "Landsat 8"<br clear="none">>          CONNECTION "<a shape="rect" href="http://localhost/cgi-bin/landsat8.exe" rel="nofollow" target="_blank">http://localhost/cgi-bin/landsat8.exe</a>"<br clear="none">>          CONNECTIONTYPE WMS<br clear="none">>          TYPE RASTER<br clear="none">>          STATUS ON<br clear="none">>          METADATA<br clear="none">>              "wms_name" "Landsat 8"<br clear="none">>              "wms_srs" "EPSG:32613"<br clear="none">>              "wms_server_version" "1.0.0"<br clear="none">>              "wms_format" "image/jpeg"<br clear="none">>          END<br clear="none">>      END<br clear="none">> <br clear="none">>      LAYER<br clear="none">>          NAME "Colonias"<br clear="none">>          CONNECTION "..."<br clear="none">>          CONNECTIONTYPE POSTGIS<br clear="none">>          DATA "geom FROM colonias_amg"<br clear="none">>          TYPE POLYGON<br clear="none">>          CLASS<br clear="none">>              NAME "Colonias"<br clear="none">>              STYLE<br clear="none">>                  COLOR 255 200 150<br clear="none">>                  OUTLINECOLOR 0 0 0<br clear="none">>              END<br clear="none">>          END<br clear="none">>          COMPOSITE<br clear="none">>              OPACITY 35<br clear="none">>          END<br clear="none">>          STATUS ON<br clear="none">>      END<br clear="none">> <br clear="none">> END<br clear="none">> <br clear="none">> Thanks in advance</div><br clear="none">> <br clear="none"><br clear="none"><br clear="none">How does the pdf look?  Is it empty?<br clear="none"><br clear="none">This page:<br clear="none"><a shape="rect" href="http://www.gdal.org/frmt_pdf.html" rel="nofollow" target="_blank">http://www.gdal.org/frmt_pdf.html</a><br clear="none"><br clear="none">shows the example:<br clear="none"><br clear="none">> gdalinfo adobe_style_geospatial.pdf -mdd LAYERS<br clear="none"><br clear="none"><br clear="none">Does the extra "-mdd LAYERS" help?<br clear="none"><br clear="none">Looks like you need GDAL 1.9 or above, what are you on?<br clear="none"><br clear="none">-Andy<div class="ydp712c3f0yqt7096784001" id="ydp712c3f0yqtfd81024"><br clear="none"></div></div></div>
                </div>
            </div></div></body></html>