Wow.  That image is put together all goofy-like.

The image itself is a 2x2-pixel box, all the detail is created with an "SMask", 
a 1123x391 deviceGray 1 bit per component image.

I suspect that interaction between the transparency group dictionary on the 
original page and this mask is to blame for the color change.

I added the "group" dictionary to the copied page and the colors match again.


--Mark Storer 
  Senior Software Engineer 
  Cardiff.com

#include <disclaimer> 
typedef std::Disclaimer<Cardiff> DisCard; 



> -----Original Message-----
> From: Gylfi Ingvason [mailto:gylfi.ingva...@solimarsystems.com]
> Sent: Monday, October 05, 2009 12:19 PM
> To: 'Post all your questions about iText here'
> 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
> >
> >
> > Aviso Legal:
> >
> > Esta mensagem i destinada exclusivamente ao destinatario. 
> Pode conter
> > informagco confidencial ou legalmente protegida. A incorrecta
> > transmissco desta mensagem nco significa a perca de 
> confidencialidade.
> > Se esta mensagem for recebida por engano, por favor envie-a de volta
> > para o remetente e apague-a do seu sistema de imediato. I proibido a
> > qualquer pessoa que nco o destinatario de usar, revelar ou 
> distribuir
> > qualquer parte desta mensagem.
> >
> >
> >
> > Disclaimer:
> >
> > This message is destined exclusively to the intended 
> receiver. It may
> > contain confidential or legally protected information. The incorrect
> > transmission of this message does not mean the loss of its
> > confidentiality.
> > If this message is received by mistake, please send it back to the
> > sender and delete it from your system immediately. It is 
> forbidden to
> > any person who is not the intended receiver to use, 
> distribute or copy
> > any part of this message.
> >
> >
> >
> >
> >
> >
> > --------------------------------------------------------------
> > ----------------
> > 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/
> >
> 
> Aviso Legal:
> 
> Esta mensagem i destinada exclusivamente ao destinatario. Pode conter
> informagco confidencial ou legalmente protegida. A incorrecta 
> transmissco
> desta mensagem nco significa a perca de confidencialidade. Se 
> esta mensagem
> for recebida por engano, por favor envie-a de volta para o remetente e
> apague-a do seu sistema de imediato. I proibido a qualquer 
> pessoa que nco o
> destinatario de usar, revelar ou distribuir qualquer parte 
> desta mensagem.
> 
> 
> 
> Disclaimer:
> 
> This message is destined exclusively to the intended receiver. It may
> contain confidential or legally protected information. The incorrect
> transmission of this message does not mean the loss of its 
> confidentiality.
> If this message is received by mistake, please send it back 
> to the sender
> and delete it from your system immediately. It is forbidden 
> to any person
> who is not the intended receiver to use, distribute or copy 
> any part of this
> message.
> 
> 
> 
> 
> 
> 
> --------------------------------------------------------------
> --------------
> --
> 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/
> 

------------------------------------------------------------------------------
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