Jump to content
We've recently updated our Privacy Statement, available here ×

rzandonai

Members
  • Posts

    20
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by rzandonai

  1. you whant do that?

     

     

    private void Tags(JasperPrint jasperPrint) {
            for (JRPrintPage currentPage :  jasperPrint.getPages()) {
                List listElements = currentPage.getElements();
                for (Object element : listElements) {
                    if (element instanceof JRTemplatePrintText) {
                        JRTemplatePrintText templatePrintText = (JRTemplatePrintText) element;
                        if (templatePrintText.getKey() != null) {
                            if (templatePrintText.getFullText().contains(":genId")) {
                                templatePrintText.setText("");
                            }
                 }

    }

    }

    Philips Healthcare - Tasy

  2. I make that, im my server source ( that side generate my pdf and jasper files) i make a new folder fonts and inside that  i put .ttf´s

    and a fonts.xml

     

    and in ../

     

    i make  a

    jasperreports_extension.properties

    net.sf.jasperreports.extension.registry.factory.simple.font.families=net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactory
    net.sf.jasperreports.extension.simple.font.families.gentium=fontes/fonts.xml

    and this is a part of my fontes/fonts.xml

    <?xml version="1.0" encoding="UTF-8"?>

    <fontFamily name="Arial">
        <normal>fontes\arial.ttf</normal>
        <bold>fontes\arialbd.ttf</bold>
        <italic>fontes\ariali.ttf</italic>
        <boldItalic>fontes\arialbi.ttf</boldItalic>
        <pdfEncoding>Identity-H</pdfEncoding>
        <pdfEmbedded>true</pdfEmbedded>
        <exportFonts>
          <export key="net.sf.jasperreports.html">'Arial', Helvetica, sans-serif</export>
          <export key="net.sf.jasperreports.xhtml">'Arial', Helvetica, sans-serif</export>
        </exportFonts>
      </fontFamily>

     

     

     

    i make a full fonts. xml project inside gettin all ttf´s and put inside my ./fonts/
     

     

    if you need anything  =D

  3. Itext 2.1.7 have another type of license L GNU same then jasperreports

     

    the new itext 2.2+ have Affero gnu license.

    because that jasper dont use that library

  4. Hey, sry for my bad english but...

    There is my code  to make fonts.xml if anyone know how to make  to insert correct export in my fonts (get generic familis of a ttf file)?

     where is my code

    if anyone can help me ill be glad

     

     

     

    Code:



    Post Edited by rzandonai at 06/21/2012 18:45



    Post Edited by rzandonai at 06/21/2012 18:47
  5. Hi for all,

    sorry for my bad english but...

    have a problen when tryin pdf creation

    I use a lucida console font have a linespace problem to my pdf creation .

    alread import font im my fonts.xml

        <fontFamily name="Lucida Console">
            <normal>fontes/lucon.ttf</normal>
            <pdfEmbedded>true</pdfEmbedded>
            <exportfontes>
                <export key="net.sf.jasperreports.html">Tahoma, 'Courier', Times, serif, lucon</export>
                <export key="net.sf.jasperreports.xhtml">Tahoma, 'Courier', Times, serif, lucon</export>
            </exportfontes>
        </fontFamily>

    and add  lucon.ttf to  my aplication /fonts/

    and the font print fine (likes a lucida font) but have lineaspace problem

    if anyone have a solution i will be glad.

  6. Hi for all,

    sorry for my bad english but...

    have a problen when tryin pdf creation

    I use a lucida console font have a linespace problem to my pdf creation .

    alread import font im my fonts.xml

        <fontFamily name="Lucida Console">
            <normal>fontes/lucon.ttf</normal>
            <pdfEmbedded>true</pdfEmbedded>
            <exportfontes>
                <export key="net.sf.jasperreports.html">Tahoma, 'Courier', Times, serif, lucon</export>
                <export key="net.sf.jasperreports.xhtml">Tahoma, 'Courier', Times, serif, lucon</export>
            </exportfontes>
        </fontFamily>

    and add  lucon.ttf to  my aplication /fonts/

    and the font print fine (likes a lucida font) but have lineaspace problem

    if anyone have a solution i will be glad.

     

×
×
  • Create New...