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.

the color seems different somehow

can me figuring out doing wrong?

tia


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -