This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

PdfWriter - PdfFrame and ICC Profile

Hi!!

how include an icc profile embeded into a Pdf Document? is there any way to do it?

really thanks!

Diego
Hello,

ICC profile included automatically into PDF document. In case of JPEG compression it embedded into JPEG byte stream, otherwise - as separate tag in the PDF structure.
Just to be sure,
so i have to create images with icc embeded and put them into the pdf writer....

for example if i use:


PdfFrame pdfFrame = new PdfFrame(pageBitmap, p.Quality);
pdfWriter.AddFrame(pdfFrame);


and pageBitmap has the icc included :

   pageBitmap.ColorManagement.ColorManagementEnabled = true;
   pageBitmap.ColorProfile = Aurigma.GraphicsMill.ColorProfile...


...does the pdf generated take care about the ICC profile?
Yes, it will be enough. Moreover, you also may skip this line:

pageBitmap.ColorManagement.ColorManagementEnabled = true;

But there is some problem. It seems that Acrobat Reader ignores color profile embedded into the JPEG stream inside the document. So if your software too doesn't take into account JPEG-embedded profiles you can:

  • use ZIP or no compression instead of JPEG or
  • convert your images into sRGB colorspace.