This application will convert a PDF that uses one colorspace to another. For example, all RGB colors to CMYK colors. Currently this only supports changing text and vector graphics and does not convert images.
usage: java -jar pdfbox-app-x.y.z.jar org.apache.pdfbox.ConvertColorspace [OPTIONS] <inputfile> <outputfile>
Command Line Parameter | Type | Default Value | Description |
---|---|---|---|
-password <password> | string | None | The password to the PDF document. |
-equiv <color equivalent> | string | None | Color equivalent to use for conversion. The format is : Colorspace:(values)=Colorspace:(values) RGB(255,0,0)=CMYK(0,99,100,0) RGB are integers between 0 and 255 CMYK are integers between 0 and 100 This option can be used as many times as necessary. |
<inputfile> | filename | None | The PDF file to convert. |
[outputfile] | filename | The output file. | The file to save the converted document to. |