Jump to content

Recommended Posts

Posted

Como faço para adicionar esta biblioteca no meu projeto ?

Pois quando  vou gerar meu PDF/A  , ele diz que : Adobe XMP library not found

Este e o meu codigo 

 List<Aluno> alunos = alunoRepository.findAll();        File file = ResourceUtils.getFile("src/main/resources/aluno.jrxml");        JasperReport jasperReport = JasperCompileManager.compileReport(file.getAbsolutePath());        JRBeanCollectionDataSource dataSource = new JRBeanCollectionDataSource(alunos);        JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, new HashMap<>(), dataSource);        JRPdfExporter pdfExporter = new JRPdfExporter();        pdfExporter.setExporterInput(new SimpleExporterInput(jasperPrint));        pdfExporter.setExporterOutput(new SimpleOutputStreamExporterOutput(new FileBufferedOutputStream()));        SimplePdfExporterConfiguration configuration = new SimplePdfExporterConfiguration();        configuration.setPdfaConformance(PdfaConformanceEnum.PDFA_1A);        configuration.setIccProfilePath("src/main/resources/icc/sRGB_IEC61966-2-1_black_scaled.icc");        setDefaultPdfFontEmbedded();        pdfExporter.setConfiguration(configuration);        pdfExporter.exportReport();        {        }        return ("PDF/A criado com sucesso !");    }}

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...