Jump to content
Changes to the Jaspersoft community edition download ×

CMYK colours in PDF output


Spike

Recommended Posts

Hi,

 

Very new to this so spologies if I've missed something, but is it possible to set up a report that generates CMYK colours in the output PDF rather than RGB?

 

This is because I need to use the generated PDF in a document for professional digital print, not for on-screen or desktop-laser printing.

 

I'd also be interested to know if you can specify a spot colour+tint but that's not as important right now.

 

Many thanks,

 

Paul.

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

JasperReports currently only supports the default Java sRGB color space. The Java imaging libraries have support for CMYK, but I don't know how widely supported it is. For instance, the PDF library we use (iText) ended up writing its own implementation of the CMYK colors, which makes me guess that the built in support is minimal. I also don't know if the charting package supports CMYK.

 

I guess its doable, but nobody has done it to date. Want to volunteer? :)

 

Java has very poor support for spot colors, so that would be a significantly harder effort. The standard constructors for custom colors take a color space and a bunch of floating point numbers, so that won't handle spot colors, where I imagine the color space would be something like "PANTONE" and the color definition would be a string.

 

-Barry

Link to comment
Share on other sites

  • 1 month later...

Hi,

 

I would like to know if anyone started on implementing the CMYK image model yet. I need to use CMYK colors for my PDF exports too. If nobody has, than I will probably implement it myself and provide it back to the Jasper community, but if somebody already started it, then maybe I can help or beta test it.

 

Regars,

 

Sander

Link to comment
Share on other sites

  • 1 year later...

Hi,

 

A little bit late reply, but I have got some great news. I finally found some time to add CMYK support to JasperReports. I just have 2 quick questions to really get me started with this project:

 

Which version of Jasper should I use to add the support? Is it best to use the head from the repository or should I use the latest release version?

I would like to pass by some ideas with the community before implementing them, what is the best place to do this, should I just add updates to this forum thread, or should I use a different location?

[/ol]

 

My goal is to implement it in such a way that everybody is happy about it and so it can be added to the base of jasper. That's is why I'd like to pass by and discuss some of the ideas I have on the addition of CMYK support.

 

regards,

Sander

Link to comment
Share on other sites

Hi,

and sorry for the late reply.

 

You can safely use the SVN head, the code is generally stable. But there's no issue in using the code of a release it you prefer it, it shouldn't be very difficult to merge a patch into the SVN head.

The discussions on the implementation should take place on this forum. You can create a new topic on this subject.[/ol]

 

Thank you for your efforts on improving JasperReports!

 

Best regards,

Lucian

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...