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);
}
}
Aggregations