Jump to content
  • Trim empty bookmark levels in pdf.


    ge0ffrey
    Assigned User lucianc
    CategoryFeature request
    PriorityHigh
    ReproducibilityAlways
    ResolutionFixed
    SeverityMajor
    StatusClosed

    Take a look at the attached screenshot.

     

    Here's the code that made that:

     

    $F{a.id}

    ...

    $F{a.name}

    ...

    $F{b.id}

    $P{showB}

    ...

    $F{b.name}

    ...

    $F{c.id}

    ...

    $F{c.name}

    ...

     

     

    The parameter showB was false. It would be great if jasperreports would allow to trim that second bookmark level. For example:

    exporter.setParameter(JRPdfExporterParameter.TRIM_EMPTY_BOOKMARKS, Boolean.TRUE);

     

    Related to artf2056.


    Attachments:

    User Feedback

    Recommended Comments

    Missing bookmark levels can now be collapsed by setting a JR property named net.sf.jasperreports.export.pdf.collapse.missing.bookmark.levels to true globally (in jasperreports.properties) or as report hint. The property is not set by default in order to preserver the existing functionality.

     

    SVN log:

    Sending /home/lucian/lucru/jasperreports/docs/config.reference.xml

    Sending /home/lucian/lucru/jasperreports/src/default.jasperreports.properties

    Sending /home/lucian/lucru/jasperreports/src/net/sf/jasperreports/engine/export/JRPdfExporter.java

    Sending /home/lucian/lucru/jasperreports/src/net/sf/jasperreports/engine/export/JRPdfExporterParameter.java

    Transmitting file data ...

    Committed revision 3795.

     

    Regards,

    Lucian

    Link to comment
    Share on other sites


×
×
  • Create New...