Search in sources :

Example 1 with RiskReportPdfWriter

use of com.synopsys.integration.detect.workflow.blackduck.report.pdf.RiskReportPdfWriter in project synopsys-detect by blackducksoftware.

the class ReportService method createReportPdfFile.

public File createReportPdfFile(File outputDirectory, ReportData reportData, FontLoader fontLoader, FontLoader boldFontLoader) throws BlackDuckIntegrationException {
    try {
        logger.trace("Creating Risk Report Pdf in : " + outputDirectory.getCanonicalPath());
        RiskReportPdfWriter writer = new RiskReportPdfWriter(logger, fontLoader, boldFontLoader, Color.BLACK, 10.0f);
        File pdfFile = writer.createPDFReportFile(outputDirectory, reportData);
        logger.trace("Created Risk Report Pdf : " + pdfFile.getCanonicalPath());
        return pdfFile;
    } catch (RiskReportException | IOException e) {
        throw new BlackDuckIntegrationException(e.getMessage(), e);
    }
}
Also used : RiskReportPdfWriter(com.synopsys.integration.detect.workflow.blackduck.report.pdf.RiskReportPdfWriter) BlackDuckIntegrationException(com.synopsys.integration.blackduck.exception.BlackDuckIntegrationException) IOException(java.io.IOException) File(java.io.File)

Aggregations

BlackDuckIntegrationException (com.synopsys.integration.blackduck.exception.BlackDuckIntegrationException)1 RiskReportPdfWriter (com.synopsys.integration.detect.workflow.blackduck.report.pdf.RiskReportPdfWriter)1 File (java.io.File)1 IOException (java.io.IOException)1