c# - iTextsharp CMYK colors result in another color -
i'm working on little project need create pdf containging table text. table supposed have background color. testing sake i've simplified code this:
using(var output = new memorystream()) using (var document = new document(pagesize.a4, 0, 0, 50, 120)) { pdfwriter.getinstance(document, output); document.open(); var table = new pdfptable(1); table.addcell(new pdfpcell(new phrase("blah blah blah")) {backgroundcolor = new cmykcolor(11, 8, 1, 0)}); document.add(table); document.close(); file.writeallbytes("e:\\test.pdf", output.getbuffer()); }
as see i've set background color. yet somehow it's resulting in different color i'm expecting.
can me figuring out doing wrong?
tia
Comments
Post a Comment