You're right - from reading the spec I assumed it would, but apparently the
default page settings override the XObject dictionary. I tried using the /I
and /K dict settings as well, and it didn't make a difference.

It would be interesting if we could get feedback from Adobe on this one -
this has to be a bug in Acrobat as it implies that it is impossible to
import a page into an XObject Form and retain the intended page color
information within that object.

The whole Group dictionary thing seems to be nothing but a device to tell
the viewer not to perform RGB-CYMK-RGB conversions when it should be obvious
that no conversions are needed in the first place. The Foxit Reader doesn't
screw up the color when the Group dict is missing.

This really stinks. I guess the Group dict could be copied from Page object
to Page object, but as Paulo pointed out, you can only have one, so
presumably this would have to be implemented such that the last import
overrides a previous setting. Given that adding the Group to the XObject
doesn't work, I think that this would be an acceptable solution - it
certainly works better than doing nothing at all, but I can't help but think
that this is just one big brain fart on behalf of Adobe and that it should
be fixed on that end.

Thanks - Gylfi

-----Original Message-----
From: Paulo Soares [mailto:psoa...@glintt.com] 
Sent: Monday, October 05, 2009 6:24 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Color shift and missing Transparency Group


The group must be added to the page. I tried adding it to the XObject and it
didn't work.

Paulo

----- Original Message -----
From: "Gylfi Ingvason" <gylfi.ingva...@solimarsystems.com>
To: "'Post all your questions about iText here'" 
<itext-questions@lists.sourceforge.net>
Sent: Monday, October 05, 2009 10:23 PM
Subject: Re: [iText-questions] Color shift and missing Transparency Group


If the group gets added to the XObject Form as opposed to the Page object, I
think that should work fine. Then there is always one-to-one correlation
between the imported page and the XObject Form containing it. I doubt that
transparency between overlapping XObject Forms will ever be an issue.

-----Original Message-----
From: Paulo Soares [mailto:psoa...@glintt.com]
Sent: Monday, October 05, 2009 4:42 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Color shift and missing Transparency Group


I'm afraid that this doesn't have an easy solution. If there's an RGB page
group and an CMYK page group and both pages are included in a single page,
what should be the resulting page group?

Paulo

----- Original Message -----
From: "Gylfi Ingvason" <gylfi.ingva...@solimarsystems.com>
To: "'Post all your questions about iText here'"
<itext-questions@lists.sourceforge.net>
Sent: Monday, October 05, 2009 8:19 PM
Subject: Re: [iText-questions] Color shift and missing Transparency Group


Paulo,

Enclosed are two small files that demonstrate the Transparency Group
problem. The BeforeImport.pdf shows an image in a light blue color, and the
AfterImport.pdf is the same file after being imported using PdfWriter. The
color shift should be clearly noticeable in Acrobat.

Thanks - Gylfi

-----Original Message-----
From: Paulo Soares [mailto:psoa...@glintt.com]
Sent: Monday, September 21, 2009 3:13 PM
To: gylfi.ingva...@solimarsystems.com; Post all your questions about iText
here
Subject: Re: [iText-questions] Color shift and missing Transparency Group


I need a PDF to work on.

Paulo

----- Original Message -----
From: "Gylfi Ingvason" <gylfi.ingva...@solimarsystems.com>
To: "'Post all your questions about iText here'"
<itext-questions@lists.sourceforge.net>
Sent: Monday, September 21, 2009 7:53 PM
Subject: Re: [iText-questions] Color shift and missing Transparency Group


Sorry, I can't - this is customer data that I'm not authorized to share. I
might be able to re-create a generic sample if need be, but for the moment I
don't have a file to post. The Page object in question looks like this:

63 0 obj<</CropBox[0 0 612 792]/Annots 64 0 R/Parent 57 0
R/Tabs/S/StructParents 0/Contents 73 0 R/Rotate
0/Group<</CS/DeviceRGB/S/Transparency/Type/Group>>/MediaBox[0 0 612
792]/Resources<</Font<</F1 70 0 R/F2 74 0
R>>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Type/Page>>
endobj

Gylfi

-----Original Message-----
From: Paulo Soares [mailto:psoa...@glintt.com]
Sent: Monday, September 21, 2009 2:28 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Color shift and missing Transparency Group

Can you post a link to one of those PDF?

Paulo

> -----Original Message-----
> From: Gylfi Ingvason [mailto:gylfi.ingva...@solimarsystems.com]
> Sent: Monday, September 21, 2009 6:02 PM
> To: 'Post all your questions about iText here'
> Subject: Re: [iText-questions] Color shift and missing Transparency
> Group
>
> Thanks Paulo.
>
> We're seeing the Group dictionaries in documents that originate from
> Microsoft Office Word 2007 containing a GIF or PNG used to represent
> hand written signatures.
>
> -----Original Message-----
> From: Paulo Soares [mailto:psoa...@glintt.com]
> Sent: Monday, September 21, 2009 12:26 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Color shift and missing Transparency
> Group
>
> The absence of transparency group support was lack of time (and also
> lack of demand). I'll have to see if the page dictionaries are also
> accepted in a XObject in all cases.
>
> Paulo
>
> > -----Original Message-----
> > From: Gylfi Ingvason [mailto:gylfi.ingva...@solimarsystems.com]
> > Sent: Monday, September 21, 2009 5:16 PM
> > To: itext-questions@lists.sourceforge.net
> > Subject: [iText-questions] Color shift and missing
> Transparency Group
> >
> > All,
> >
> > I'm using iTextsharp and noticed a color shift in an image after a
> > page import using PdfWriter. The reason for the change in color is
> > that the Transparency Group dictionary in the imported page
> object is
> > not being preserved when the page is being imported into an XObject
> > Form. I'm assuming the Java version works the same way.
> >
> > So my question is, shouldn't the Transparency Group be preserved in
> > the resulting XObject Form when a page is imported?
> >
> > Without it, the imported page will display differently in
> Acrobat and
> > the visual differences can be very noticeable. There are some
> > excellent discussions on the mailing lists on the subject of
> > Transparency Groups, but I did not see this problem being
> specifically
> > discussed.
> >
> > It seems to me that one should not have to manually insert a Group
> > dictionary following a page import as the GetImportedPage() method
> > should be responsible for making sure the imported page is kept
> > intact.
> > The PdfCopy
> > works fine (and PdfStamper presumably as well), but in that
> case the
> > imported page object is preserved as-is as opposed to being
> converted
> > into an XObject Form.
> >
> > Thanks - Gylfi


----------------------------------------------------------------------------
--
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to