Skip navigation.
 
mlRe: pdf transparency, again
FROM : Brock Brandenberg
DATE : Fri Nov 01 09:28:01 2002

> I have found out what the problem is - if I include any text in PDF,
> transparency in Quartz goes away, somehow. If there is no text in pdf
> file (e.g. only rectangle fills), transparency works. Could this be
> true?


I am currently using transparency with mixed text and graphics in PDF files
without any problems. My question would be, what method are you using to
draw the text?

I am drawing individual lines of text (titles, not big bodies of text) using
the CG routines like CGContextShowGlyphsAtPoint(). The color is being set in
the context with CGContextSetRGBFillColor() to workaround the AppKit
deficiencies. Note that the text being written into the PDF is indeed a line
of text with embedded font characters, not as outlines. I have outlining
routines also and they too are working fine. TO generate the PDF, I'm using
the Cocoa dataWithPDFInsideRect: method.

Some text methods draw using context attributes while others use the text
attributes. Might there be a conflict between the context and text
attributes that is causing your problem?

Brock Brandenberg

----- industrial design @ www.bergdesign.com ------



Related mailsAuthorDate
mlpdf transparency, again Izidor Jerebic Oct 31, 09:25
mlRe: pdf transparency, again Derek Clegg Oct 31, 09:53
mlRe: pdf transparency, again Izidor Jerebic Oct 31, 10:44
mlRe: pdf transparency, again Nicholas Riley Oct 31, 10:59
mlRe: pdf transparency, again Derek Clegg Oct 31, 11:17
mlRe: pdf transparency, again Izidor Jerebic Oct 31, 11:33
mlRe: pdf transparency, again Brock Brandenberg Nov 1, 09:28
mlRe: pdf transparency, again Izidor Jerebic Nov 2, 00:44
mlRe: pdf transparency, again Brock Brandenberg Nov 2, 08:14