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

phnxck

Members
  • Posts

    12
  • Joined

  • Last visited

phnxck's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. It was odd also to me (this thing with style). In fact you do not need to create default style, but this way you would have to remember to assign explicitly some style to all elements. Anyway I am glad I could help, cause I can remember how horror it was for me :) Peter.
  2. After some time I managed to solve this problem. The solution is to declare default style which will be assigned implicitly to all text elements. If you would like to make some of the components look different (i.e. bold, italic, other color, etc.) then you have to declare another styles and assign them explicitly. If you would like an example, check this page: http://jasperforge.org/plugins/mantis/view.php?id=2819 There you can find 'xlsdatasource.zip' attachment, which contains different report output files examples (pdf, dox, xls, etc). There are two pdfs, and the one (at xlsdatasource/build/reports/) with name "XlsDataSourceReport2.pdf" was generated by pdf2() method from "XlsDataSourceApp.java" (xlsdatasource/src/) which creates A1A compliant pdfs. So there you can find implementation for the java code. And since it works correctly than you can look at being used template (.jrxml) so that you can see how it has to be build using styles. I hope it is clear, if you have any other questions, just ask. Post Edited by phnxck at 07/13/2012 09:07
  3. Hi All, I have to prepare some reports that are compliant with PDF/A1a level. I need to create custom tags. In general the difference between PDF/A1b and PDF/A1a is that the second one is 'tagged'. There are some standard tags like Paragraphs or Lists but there should also be a possibility to write own, custom tags. And here is the question, how can I achieve this using JasperReports or iReport? The farest I made is to set some extra parameters for the exporter: exporter.setParameter(JRPdfExporterParameter.PDFA_CONFORMANCE, JRPdfExporterParameter.PDFA_CONFORMANCE_1A); exporter.setParameter(JRPdfExporterParameter.IS_TAGGED, Boolean.TRUE); exporter.setParameter(JRPdfExporterParameter.PDFA_ICC_PROFILE_PATH, ICC_PROFILE); I have completely no idea how to mark some fileds in the report with my custom tags. Please help.
  4. Hi All, I have to prepare some reports that are compliant with PDF/A1a level. I need to create custom tags. In general the difference between PDF/A1b and PDF/A1a is that the second one is 'tagged'. There are some standard tags like Paragraphs or Lists but there should also be a possibility to write own, custom tags. And here is the question, how can I achieve this using JasperReports or iReport? The farest I made is to set some extra parameters for the exporter: exporter.setParameter(JRPdfExporterParameter.PDFA_CONFORMANCE, JRPdfExporterParameter.PDFA_CONFORMANCE_1A); exporter.setParameter(JRPdfExporterParameter.IS_TAGGED, Boolean.TRUE); exporter.setParameter(JRPdfExporterParameter.PDFA_ICC_PROFILE_PATH, ICC_PROFILE); I have completely no idea how to mark some fileds in the report with my custom tags. Please help. Post Edited by phnxck at 05/08/2012 13:00
  5. Hi All, I am trying to produce PDF file that satisfies PDF/A1a conformance. My main goal is to somehow embed extractable document structure inside it (also known as being 'tagged'/'Tagged PDF'), but I run in to a problem much earlier. When I try do generate the report, I get the following exception: Exception in thread "main" com.lowagie.text.pdf.PdfXConformanceException: All the fonts must be embedded. This one isn't: Helvetica at com.lowagie.text.pdf.internal.PdfXConformanceImp.checkPDFXConformance(Unknown Source) at com.lowagie.text.pdf.PdfWriter.addSimple(Unknown Source) at com.lowagie.text.pdf.PdfContentByte.setFontAndSize(Unknown Source) at com.lowagie.text.pdf.PdfDocument.writeLineToContent(Unknown Source) at com.lowagie.text.pdf.ColumnText.go(Unknown Source) at com.lowagie.text.pdf.ColumnText.go(Unknown Source) at net.sf.jasperreports.engine.export.JRPdfExporter.writePageAnchor(JRPdfExporter.java:708) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:632) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:362) at com.bms.goro.test.jasper.ReportGeneratorApp.generateReport(ReportGeneratorApp.java:53) at com.bms.goro.test.jasper.ReportGeneratorApp.main(ReportGeneratorApp.java:32) I do not use Helvetica font, so I am not trying to embed it anyhow. Moreover I have read that this font must not be embedded as it is one of Base14 fonts which are built in as default in pdf viewers. The only reasonable topic about PDF/A I found is: http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=92542 but still after reading it I am not able to resolve my problem. I am not sure if it is a matter of some configuration in code with exporter or maybe some configuration in iReport. Below there is code that generates the report and simple jrxml temaplate code that I use (after compiling through iReport). If it matters, I use iReport and JasperReports library both in 4.5.1 version. I also attach compressed full sources of my test (maven) project. Code: Post Edited by phnxck at 05/07/2012 14:44
  6. Hi All, I am trying to produce PDF file that satisfies PDF/A1a conformance. My main goal is to somehow embed extractable document structure inside it (also known as being 'tagged'/'Tagged PDF'), but I run in to a problem much earlier. When I try do generate the report, I get the following exception: Exception in thread "main" com.lowagie.text.pdf.PdfXConformanceException: All the fonts must be embedded. This one isn't: Helvetica at com.lowagie.text.pdf.internal.PdfXConformanceImp.checkPDFXConformance(Unknown Source) at com.lowagie.text.pdf.PdfWriter.addSimple(Unknown Source) at com.lowagie.text.pdf.PdfContentByte.setFontAndSize(Unknown Source) at com.lowagie.text.pdf.PdfDocument.writeLineToContent(Unknown Source) at com.lowagie.text.pdf.ColumnText.go(Unknown Source) at com.lowagie.text.pdf.ColumnText.go(Unknown Source) at net.sf.jasperreports.engine.export.JRPdfExporter.writePageAnchor(JRPdfExporter.java:708) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:632) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:362) at com.bms.goro.test.jasper.ReportGeneratorApp.generateReport(ReportGeneratorApp.java:53) at com.bms.goro.test.jasper.ReportGeneratorApp.main(ReportGeneratorApp.java:32) I do not use Helvetica font, so I am not trying to embed it anyhow. Moreover I have read that this font must not be embedded as it is one of Base14 fonts which are built in as default in pdf viewers. The only reasonable topic about PDF/A I found is: http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=92542 but still after reading it I am not able to resolve my problem. I am not sure if it is a matter of some configuration in code with exporter or maybe some configuration in iReport. Below there is code that generates the report and simple jrxml temaplate code that I use (after compiling through iReport). If it matters, I use iReport and JasperReports library both in 4.5.1 version. I also attach compressed full sources of my test (maven) project. Code: Post Edited by phnxck at 05/07/2012 14:44
  7. Hi, I noticed that with recent iReport and JasperReports (ver 4.1.2) support for PDF/A was introduced. Does anyone know how exactly I can create PDF report, in particular this PDF/A1b in iReport? I cannot find any information about this in the internet, probably because this version of Jasper was realased so recently.. I need it ASAP. Thanks.
  8. Hi, I noticed that with recent iReport and JasperReports (ver 4.1.2) support for PDF/A was introduced. Does anyone know how exactly I can create PDF report, in particular this PDF/A1b in iReport? I cannot find any information about this in the internet, probably because this version of Jasper was realased so recently.. I need it ASAP. Thanks.
  9. Thank you very much for the response. That was helpful.
  10. Hi, I would like to create main report, that will have subreport in his detail band. I want this subreport to be repeated as many times as I have elements in data source of the main report. Moreover I would like this subreport to display different values. It consists of some parameters and dynamic list components. The question is, how to create this whole data flow. I mean I would have in main report data source as a collection of Java Beans. Each bean should reporesent data source per each sub report (single parameters as well as lists). How should I inject in each subreport data that comes from one of the main report data source Java Bean collection? Thanks.
  11. Hmm.. no response. Should I assume that such thing is impossible? And the only way to obtain tables per group is to use Line components?
  12. Hi everyone, I would like to create report divided on Groups, and I want data collection in each group to be put into a Table component. The problem is, that as far as I know Table component has its own DataSet. As a DataSource I use collection of Java Beans. To pass data to the Table I am adding a Parameter to the Report, which is of Java List type and then Table DataSet uses it as its DataSource. Now when I want to add Group it wants from me an expression by which it will perform grouping. Now the question is, how to pass to this grouping expresion a field from Table DataSource? Or maybe it all should be done in other way? Any suggestions? Thanks. Post Edited by phnxck at 08/30/2011 10:12
×
×
  • Create New...