Jump to content
We've recently updated our Privacy Statement, available here ×

rsawankumar

Members
  • Posts

    9
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Everything posted by rsawankumar

  1. @elizam, @hozawa I have created the font extension by following the steps mentioned in the documentation and then exported the jar and finally added the jar to the class path. Now the "noto sans" font is appearing in font list of jaspersoft studio(for any object ex- static text, text etc). but while exporting the pdf the some language characters which are not being printed in jasper(and I am preety sure that noto-sans supports those languages, I have checked the documention). Now I tried breaking the problem into jasper and itext components to check if I directly write the itext based java code to create a pdf for the same string would it print or not. so now conclusion is string is not even rendered in itext(I have provided the code snippet for the same). So I am out of options and do not where to look for and since I am new to jasper I do not even any alternatives to proceed for my job to be done.
  2. I have created a font extension in Jasper for noto-sans font (https://www.google.com/get/noto/#sans-lgc) and have added it to my classpath. And my application need to support fr, de, ja, ko, zh_CN, zh_TW, es ,en. But the generated pdf is not rendering (ja, ko, zh_CN, zh_TW). then I tried spliting the problem between jasper and itext so I tried with below program to check if iText is working correctly. import java.io.FileOutputStream; import java.io.IOException; import com.lowagie.text.Document; import com.lowagie.text.DocumentException; import com.lowagie.text.Font; import com.lowagie.text.Paragraph; import com.lowagie.text.pdf.BaseFont; import com.lowagie.text.pdf.ColumnText; import com.lowagie.text.pdf.PdfWriter; public class Itext_test { /** The resulting PDF file. */ public static final String RESULT = "fontTest.pdf"; /** the text to render. */ public static final String TEST = "사과-korean, 苹果(Chienses-simplified), 蘋果(Chinese-traditional), 林檎(Japanese), Sebastián(Spanish), ADÉLAÏDE-fr(French), James Bond(English)"; public void createPdf(String filename) throws IOException, DocumentException { Document document = new Document(); PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(filename)); document.open(); BaseFont bf = BaseFont.createFont( "NotoSans-Regular.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED); Font font = new Font(bf, 20); ColumnText column = new ColumnText(writer.getDirectContent()); column.setSimpleColumn(36, 730, 569, 36); column.addElement(new Paragraph(TEST, font)); column.go(); document.close(); } public static void main(String[] args) throws IOException, DocumentException { new Itext_test().createPdf(RESULT); } }Below is the out pdf screenshot [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/IuHWS.pngSo as we can see ja, ko, zh_CN, zh_TW chars are `not being rendered`.I am using jaspersoft Studio to create the .jrxml file and populating it by java code. for more detail please checkout this question http://stackoverflow.com/questions/40760733/unicode-characters-in-jasper-report?noredirect=1#comment68756527_40760733I don't know where and what to look for.<br> I would be very greatful if somebody could point out the error or put me in right direction...http://cdn.bizible.com/m/ipv?_biz_r=http%3A%2F%2Fcommunity.jaspersoft.com%2Fnode%2Fadd%2Fquestion&_biz_h=805002629&_biz_u=d2432028cb324aa4de16e18faa21708c&_biz_s=7e03bf&_biz_l=http%3A%2F%2Fcommunity.jaspersoft.com%2Fnode%2Fadd%2Fquestion&_biz_t=1480075514242&_biz_i=Rich%20text%20editor%2C%20edit-body-und-0-value&_biz_n=420&rnd=551611&cdn_o=a&_biz_z=1480075514243
  3. I have a jasper report template(.jrxml) which is being populated by java code. And java code is fetching data from some DB, preparing the List and passing it as parameter to Jasper. Now the problem is that DB content could be in different languages Ex- there is one column in DB which looks like this [Person Name] "Jeff Atwood" "Jon Skeet" "Дарин Димитров" "BalusC" "VonC" "अनुभावा" "段故障" So when the template is being populated the out pdf file is not showing anything for non english words Properties being used - Font name = default PdfFontname = default PdfEncoding = default I tried searching for the solution but most of the answers are for Report Internationalization which involves resource bundle and font family. I am just using Jaspersoft Studio 6.3.1 as eclipse plugin. It would be great help if somebody could provide the solution or even indiacte where to look for.
  4. currency symbol is coming for dollar, euro & pound but not for others
  5. I have created a jasper report template using jaspersoft studio and I am populating the template using java code. I have some data in the report which needs to be localize and for that I am seeting the "locale" by below code in java. Locale locale = new Locale("zh", "CN"); templateParameters.put("REPORT_LOCALE", locale); //A map to pass to report I have also tried - Locale locale = java.util.Locale.CHINA; In populated report "Number formatting" is there but currecny symbol is missing(only dollar, pound, euro symbols are coming) Below is the code I have used in jasper report to populate the text field - NumberFormat.getCurrencyInstance($P{REPORT_LOCALE}).format($P{Param_Name}) I would be very thankful if someone could pointout the mistake or provide some suggestion.
  6. I am fine with default intervals values coming on y-axis of a barchart in jasper report, but I want to append a string to those default label values. how I can I do that??and also one more think I would like to ask is how to set the text(all text of pdf) color[,font-type,size] for entire pdf in jasper.thanks for your help and time.
  7. I am generating a pdf with the help of jasper. My reports contain lets say 6 frames and each frames cover some static text and a table(no of rows in table could vary). Now I want to make sure each frame always starts from a new page. I tried setting different position type but I not able to achieve it. Could somebody please help me out. Thanks in advance. Env setup and release info - Jasper 6.3.0I am using jasper studio plugin in eclipse and data in table is coming from "JRBeanCollectionDataSource"
  8. I am using jaspersoft studion plugin in eclipse and designing a report. I have so many object(graphs,text,tables) to fill into report.jrxml. I have also set the page size(A4) and because of that band size is limited and I am not able to increase the band size anymore. I have attached the screenshot of the report.It would be great help if somebody could tell how to put more object into band. http://i.stack.imgur.com/9eyvZ.png
  9. I am using Jasper 6.3.0 but due to bouncy castle dependency I have to use itext-4.2.2 or higher and since itext-4.4.2 is being redirected to itextpdf-5.5.6(In maven) So I need some way to make jasper 6.3.0 work with itext-5.5.6 or higher. It is also fine if I could export the pdf using any other tool instead of itext in Jasper.Thanks in advance for help.
×
×
  • Create New...