Hakan Usakli wrote: > Hello, please help me figure out how to modify image color (brightness, > gamma, contrast, RGB....whatever can be modified) inside a PDF. > > I have the following code which works without an error, the part I need > help with is marked {.....what to do here ....}
Do you have a library that is able to change the bytes of the image? I mean: in your code, it's as if you're only looking to change the keys in the image dictionary, that's possible with iText. But iText doesn't manipulate images. If you change keys without changing the bytes of the image, you'll only make your PDF corrupt. I think you have the wrong expectations: iText doesn't modify image color, gamma, contrast, RGB,... You need another library to do that. Then when you've modified the image, you can use iText to replace the image bytes and the keys in the image dictionary. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/