Thank you! Rhino
----- Original Message ----- From: "Paulo Soares" <[EMAIL PROTECTED]> To: "Rhino" <[EMAIL PROTECTED]>; "itext" <[email protected]> Sent: Thursday, January 13, 2005 5:42 PM Subject: Re: [iText-questions] Suppressing coloured background when printing PDF? > PdfLayer layer1 = new PdfLayer("no printer", writer); > layer1.setOnPanel(false); > layer1.setPrint("print", false); > layer1.setView(true); > PdfLayer layer2 = new PdfLayer("Print Layer", writer); > layer2.setOn(false); > PdfLayerMembership combi = new PdfLayerMembership(writer); > combi.addMember(layer1); > combi.addMember(layer2); > combi.setVisibilityPolicy(PdfLayerMembership.ANYON); > Rectangle back = new Rectangle(PageSize.A4); > back.setBorderColor(null); > back.setBackgroundColor(Color.cyan); > cb.beginLayer(combi); > cb.rectangle(back); > cb.endLayer(); > ColumnText.showTextAligned(cb, Element.ALIGN_LEFT, new Phrase("hello"), 50, > 500, 0); > > > ----- Original Message ----- > From: "Rhino" <[EMAIL PROTECTED]> > To: "Paulo Soares" <[EMAIL PROTECTED]>; "itext" > <[email protected]> > Sent: Thursday, January 13, 2005 6:16 PM > Subject: Re: [iText-questions] Suppressing coloured background when printing > PDF? > > > > Yes, please send that example! > > > > Rhino > > > > ----- Original Message ----- > > From: "Paulo Soares" <[EMAIL PROTECTED]> > > To: "Rhino" <[EMAIL PROTECTED]>; "itext" > > <[email protected]> > > Sent: Thursday, January 13, 2005 12:55 PM > > Subject: RE: [iText-questions] Suppressing coloured background when > printing > > PDF? > > > > > > That's easy to do with layers in Acrobat 6 and later; it's impossible > > for earlier versions. I can send you an example if you want. > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On > > > Behalf Of Rhino > > > Sent: Thursday, January 13, 2005 5:10 PM > > > To: itext > > > Subject: [iText-questions] Suppressing coloured background > > > when printing PDF? > > > > > > Is it possible to generate a PDF that has a coloured > > > background when you > > > view it but to turn off the colour programmatically within > > > the PDF when the > > > user goes to print the document? > > > > > > My document is a resume and it has a colour background. It > > > looks great when > > > I display it in Acrobat. When I print it in Acrobat, the same > > > background > > > colour is also printed. Normally, I'd say that was a good > > > thing that it > > > automatically prints with the same background colour that I > > > see when I view > > > the document. However, knowing that ink cartridges go through > > > a lot of ink > > > when they print coloured backgrounds, I'm wondering if there > > > is something I > > > can do in the document definition to tell Acrobat not to > > > print the coloured > > > background when it sends the document to the printer? > > > > > > I'd like this to be a DEFAULT behaviour, i.e. I don't want > > > the user to have > > > to fiddle within Adobe or his printer driver to accomplish this. > > > > > > Is that possible? Or should I just generate two editions of > > > the PDF, one > > > with a coloured background and one with a white background, > > > and provide > > > separate links for each, referring to one as the 'Display' > > > version and one > > > as the 'Printable' version? I wouldn't be wild about that > > > solution because, > > > in fact, both versions would be printable; it's just that one > > > would consume > > > less ink. > > > > > > Or would it be best to make the background colour white and > > > not even attempt > > > to have a coloured background in the resume? I'm trying to > > > find the most > > > professional approach.... > > > > > > Rhino > > > --- > > > rhino1 AT sympatico DOT ca > > > "There are two ways of constructing a software design. One > > > way is to make it > > > so simple that there are obviously no deficiencies. And the > > > other way is to > > > make it so complicated that there are no obvious > > > deficiencies." - C.A.R. > > > Hoare > > > > > > > > > > > > ------------------------------------------------------- > > > The SF.Net email is sponsored by: Beat the post-holiday blues > > > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > > > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > > > _______________________________________________ > > > iText-questions mailing list > > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > > > > > > > > ------------------------------------------------------- > > The SF.Net email is sponsored by: Beat the post-holiday blues > > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > > _______________________________________________ > > iText-questions mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
