简体   繁体   English

检查符号(✓)不使用jasper报告以PDF格式显示

[英]Check Symbol(✓) doesn't display in PDF using jasper report

I developed a report in jasper wherein it displays a check symbol(✓) for existing records (ie list of requirements). 我在jasper中开发了一个报告,其中显示了现有记录的检查符号(✓)(即需求列表)。 It seems like I would never had a problem displaying it since the check symbol is visible during preview in the iReport. 似乎我从来没有遇到过显示它的问题,因为在iReport预览期间检查符号是可见的。 But once I viewed the report in PDF format, the check symbol is no longer visible. 但是,一旦我以PDF格式查看报告,检查符号就不再可见。 I even tried unicode characters instead of the check image, even unicode for square root. 我甚至尝试过unicode字符而不是check图像,甚至是unicode for square root。

What configuration am I missing here? 我在这里缺少什么配置?

Embedding the font in the report might solve your issue. 在报告中嵌入字体可能会解决您的问题。 This article discusses how to embed fonts using iReport and not using it: Embedding fonts into PDF generated by JasperReports 本文讨论如何使用iReport嵌入字体而不使用它:将字体嵌入到JasperReports生成的PDF中

This is the way to add image of (check-mark) and build 这是添加(复选标记)和构建图像的方法

To create parameter paramImage and set the image expression property as $P{paramImage}. 要创建参数paramImage并将图像表达式属性设置为$ P {paramImage}。

To passing value to this variable as 将值传递给此变量

String imagePath = FacesContext.getCurrentInstance().getExternalContext().getRealPath("/images/IMAGE.jpg");

Then put parameters as given below 然后输入如下给出的参数

paramaters.put("paramImage",imagePath);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM