Exportar página jsf a PDF
Tengo una página con líneas y gráficos circulares y me gustaría generar un informe PDF con esos gráficos. ¿Cómo puedo conseguir esto? Lo intenté con<p:dataExporter>
, pero solo funciona en tablas. Aqui esta mi codigo
<p:layoutUnit position="west" size="70%" >
<p:chart type="line" model="#{reportMscBean.model}" id="chart" style="width:700px;height:280px"/>
<p:separator></p:separator>
<p:chart type="line" model="#{reportMscBean.model2}" style="width:700px;height:280px" id="graphe2"/>
</p:layoutUnit>
<p:layoutUnit position="center" size="30%" style="border:0px;">
<p:chart type="pie" model="#{reportMscBean.pieModel2}" style="width:250px;height:280px" id="pie2" >
</p:chart>
<p:separator></p:separator>
<p:chart type="pie" model="#{reportMscBean.pieModel1}" style="width:250px;height:280px" id="pie1" >
</p:chart>
</p:layoutUnit>