Welcome Guest Search | Active Topics | Members

PdfWriter - PdfFrame and ICC Profile Options
sviluppophotosi
Posted: Monday, May 19, 2008 3:52:35 AM
Rank: Member
Groups: Member

Joined: 2/6/2008
Posts: 12
Points: 36
Hi!!

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

really thanks!

Diego
Alex Kon
Posted: Tuesday, May 20, 2008 9:10:27 PM
Rank: Advanced Member
Groups: Administration , Member

Joined: 1/31/2005
Posts: 388
Points: 409
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.


Best wishes, Alex.
sviluppophotosi
Posted: Wednesday, June 04, 2008 2:42:24 AM
Rank: Member
Groups: Member

Joined: 2/6/2008
Posts: 12
Points: 36
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:

Code:

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


and pageBitmap has the icc included :
Code:

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


...does the pdf generated take care about the ICC profile?
Alex Kon
Posted: Thursday, June 05, 2008 3:18:56 AM
Rank: Advanced Member
Groups: Administration , Member

Joined: 1/31/2005
Posts: 388
Points: 409
Yes, it will be enough. Moreover, you also may skip this line:

Code:
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.


    Best wishes, Alex.
  • Users browsing this topic
    Guest


    Forum Jump
    You cannot post new topics in this forum.
    You cannot reply to topics in this forum.
    You cannot delete your posts in this forum.
    You cannot edit your posts in this forum.
    You cannot create polls in this forum.
    You cannot vote in polls in this forum.

    Main Forum RSS : RSS

    YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
    Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
    Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.