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

Otto Hahn

Members
  • Posts

    10
  • Joined

  • Last visited

Community Answers

  1. Otto Hahn's post in PDF/A PdfXConformanceException All the fonts must be embedded. This one isn't: Helvetica was marked as the answer   
    I am amazed that no one is answering this specific question.
    So I try it myself:
    create a jasperreports.properties file in the root path of the project:
    # loads/override properties from default.jasperreports.propertiesnet.sf.jasperreports.default.pdf.font.name=net/sf/jasperreports/fonts/dejavu/DejaVuSans.ttfnet.sf.jasperreports.default.pdf.embedded=true[/code] or change the default font by adding this Method and call it before export to PDF/A:
    public void setDefaultPdfFontEmbedded() { JasperReportsContext jasperReportsContext = DefaultJasperReportsContext.getInstance(); jasperReportsContext.setProperty("net.sf.jasperreports.default.pdf.font.name", "net/sf/jasperreports/fonts/dejavu/DejaVuSans.ttf"); jasperReportsContext.setProperty("net.sf.jasperreports.default.pdf.embedded", "true");}[/code]Please correct me if this is not true!
  2. Otto Hahn's post in database and table mapping was marked as the answer   
    Thank you hozawa,
    change from
    SELECT DISTINCT "DB_DEVELOPER"."T_123456789"."VAL_FFIELD"FROM "DB_DEVELOPER"."T_123456789"[/code]to
    SELECT DISTINCT VAL_FFIELDFROM "$P!{DB}"."$P!{TABLE}"[/code]The SQL statement now is dynamic. http://community.jaspersoft.com/sites/all/libraries/ckeditor/plugins/smiley/images/thumbs_up.gif
×
×
  • Create New...