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

mchulia

Members
  • Posts

    1
  • Joined

  • Last visited

mchulia's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hello sorry for my English I'm trying to generatea PDF/A1A in a java app. i have a reports generated in ireports 5.5.X. i use thsi code: byte[] byte_array=null; try { String directorio = BuscarCarpetaArchivosReport(context); File f = new File(directorio, report + ".jrxml"); if (f.exists() && f.isFile()) { FileInputStream fis = new FileInputStream(f); //Compilo el JRXML JasperReport jasperReport = JasperCompileManager.compileReport(fis); Map parametrosAux=(Map)parametros.get("parametros"); JasperPrint jasperPrint; jasperPrint = JasperFillManager.fillReport(jasperReport, parametrosAux, new JREmptyDataSource()); JRPdfExporter Exporter= new JRPdfExporter(); SimplePdfExporterConfiguration configuracio=new SimplePdfExporterConfiguration(); configuracio.setPdfaConformance(PdfaConformanceEnum.PDFA_1A); configuracio.setIccProfilePath(directorio+"sRGB_v4_ICC_preference.icc"); configuracio.setPdfVersion(PdfVersionEnum.VERSION_1_6); List<JasperPrint> jasperPrintList = new ArrayList<JasperPrint>(); jasperPrintList.add(jasperPrint); Exporter.setExporterInput(SimpleExporterInput.getInstance(jasperPrintList)); java.io.ByteArrayOutputStream outputStream=new java.io.ByteArrayOutputStream(); Exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(outputStream) ); Exporter.setConfiguration(configuracio); Exporter.exportReport(); byte_array=outputStream.toByteArray(); } else { } } catch (Exception excep) { Logger.getLogger(BusquedaDatos.class.getName()).log(Level.SEVERE, null, excep); } return byte_array;but i recive always this error in de red line: "All the fonts must be embedded. This one isn't: Helvetica" but a not use this font in the reports. thank you in advance.
×
×
  • Create New...