Search code examples
javabirtfilesizedoc

birt, doc report and a very big file


We are using Birt to generate some reports in doc and pdf. Reports are simple, without any graphs and graphics. Only text.

My main problem is difference in the sizes of those files, for example:

  • PDF - 251 KB, DOC - 5 584 KB
  • PDF - 3 217 KB, DOC - 82 572 KB

We are not using any specific configuration for output file (only format: doc/pdf).

Is there any way to reduce the doc file size ?

thx Lukasz


Solution

  • The simple answer would be to use a different output format instead of Word .doc - for example, html or xls. Alternatively, for really compact output, you could use the Export Data option from the report viewer to produce output in character-separated format (comma-separated, by default).

    Alternatively, you could consider using custom BIRT emitters. There's a post on the subject on the BIRT World blog here (specifically relating to xls emitters, although the Tribix emitters mentioned should also enable output to RTF, a Microsoft format readable by Word that is much more concise than doc).