This program permit you to change the color inside a pdf.
This is particularly helpful when you have to change colors to iOS icons.
The program will scan the input directory searching for all the pdf file and create a new pdf in the output directory with the new colors
Note: The program support also pdf with the CMYK color space, but the output will always use the RGB color space.
-
Create a mapping file. This text file is congaing the pair old color/new color. the color must be expressed as RGB in hex format, and separated by a space. for example to convert red to blue and black to yellow your file will contains:
FF0000 0000FF 000000 00FFFF
-
run the program with:
java -jar PdfColorChanger_v1.1.0.jar inputDir mappingFile outDir
Note: the output dir must be already present
The program will change the colors only to the content of the first pdf page
Copyright 2020 Giovanni Visentini
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
This program was developed during a Open Source Saturday