Skip to content

Commit 496388f

Browse files
committed
increase logging for jaspersoft render debugging
1 parent 3ef477f commit 496388f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

api/src/main/java/ca/bc/gov/educ/grad/report/dto/reports/jasper/impl/JasperReportImpl.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public class JasperReportImpl {
9191
Character.UnicodeBlock.SPACING_MODIFIER_LETTERS,
9292
Character.UnicodeBlock.PHONETIC_EXTENSIONS
9393
));
94-
private static final JasperReportsContext JASPER_REPORTS_CONTEXT = createJasperReportsContext();
94+
private static final SimpleJasperReportsContext JASPER_REPORTS_CONTEXT = createJasperReportsContext();
9595

9696
/**
9797
* Controls scaling images written to the browser.
@@ -239,9 +239,11 @@ private void configurePdfGlyphRendering(final JasperPrint print) {
239239
logPdfGlyphRendererCandidates(print);
240240
}
241241

242-
private static JasperReportsContext createJasperReportsContext() {
242+
private static SimpleJasperReportsContext createJasperReportsContext() {
243243
final SimpleJasperReportsContext context =
244244
new SimpleJasperReportsContext(DefaultJasperReportsContext.getInstance());
245+
context.setProperty(PDF_GLYPH_RENDERER_BLOCKS_PROPERTY, PDF_GLYPH_RENDERER_BLOCKS);
246+
context.setProperty(PdfReportConfiguration.PROPERTY_GLYPH_RENDERER_ADD_ACTUAL_TEXT, Boolean.TRUE.toString());
245247

246248
try (final InputStream inputStream = JasperReportImpl.class.getClassLoader()
247249
.getResourceAsStream(FONT_FAMILIES_RESOURCE)) {

0 commit comments

Comments
 (0)