Add this at the beginning of your software:
PDDeviceCMYK.INSTANCE = new PDDeviceCMYK()
{
@Override
protected ICC_Profile getICCProfile() throws IOException
{
return ICC_Profile.getInstance("USWebCoatedSWOP.icc");
}
Tilman,
I haved used exactly the same code in the "PrintTextColors.java" to print the
colors in my PDF sample. I have just added a couple of lines to the
processTextPosition(...) method to print the RGB colors, like this:
@Override
protected void processTextPosition( TextPosition text ) {
My congratulations to Tilman and the wider PDFBox team. I shall be tweeting
expansively about this as I have started a series about our thanks to Open
Source projects.
I think I first came across PDFBox about 8 years ago and have been on the
mailing list since then. (I'm a user, advocate, and
3 matches
Mail list logo