Calculate CMYK coverage in PDF

I don’t think there are free open source libraries that can calculate CMYK coverage in a pdf file. I tried to look back, I didn’t seem to find it. If not, if anyone can point me in the right direction, what do I need to do to calculate the CYMK coverage in pdf format. Oh, also the development environment I will be working on is the .net framework 4.0

Greetings

+5
source share
2 answers

OK, now there is a new option (since a few days ago) with Ghostscript for all those who want to compile it from the source. It is still the "edge of bleeding" and is not recommended for productive use. The rest will have to wait for the next official release.

A new option comes in the form of a new “device” called inkcov. This works similarly to the “bbox” device, which splashes out the BoundingBox values ​​for each page: the “ink tank” splashes out the ink coverage values ​​C, M, Y, and K used for each page (a value of 1 corresponds to 100%). Keep in mind that the total amount of ink may be higher than 100% (for example: mixing 100% yellow with 100% magenta gives an optical image 100% "red").

Ghostcript, Git :

gs -o - -sDEVICE=inkcov /path/to/your.pdf

, :

Page 1
 0.20898  0.20905  0.41320  0.55001 CMYK OK
Page 2
 0.33561  0.02026  0.21677  0.16750 CMYK OK
Page 3
 0.00000  0.00000  0.00000  1.00000 CMYK OK
[....]

Ghostscript. (, , .)

+3

Ghostscript. tiffsep tiffsep1 72dpi. TIFF CMYK, :

gswin32c.exe ^
    -sDEVICE=tiffsep ^
    -r72x72 ^
    -o "c:/path/to/output/dir/page_%03d.tif" ^
    c:/path/to/input.pdf

. :

  • 32- CMYK ( tiff32nc, 32- CMYK [8/])
  • tiffgray - tiffgray ( 8- , LZW) .

tiffgray LZW. -sOutputFile=... - CMYK . "tiffgray" CMYK ".Cyan.tif", ".Magenta.tif".Yellow.tif ".Black.tif". tiffsep tiffgray; . ( , -sSeparationColorNames , Ghostscript, Devices.htm).

tiffsep1, - , ( 32- CMYK), TIFF G4 ( G4).

, -sCompression=lzw ( none | crle | g3 | g4 | pack). , =none .

+2

All Articles