Clipping drawing printed to PDF?

  • I have an NSView that intentionally draws some graphics out of the
    view's frame, so that part of the graphics get clipped. When the view
    is drawn to screen or the printer, the graphics are clipped correctly,
    so only part of the graphic is drawn in the view and the other part
    doesn't appear. When the view is drawn to PDF, however, using -
    dataWithPDFInsideRect:, then the graphics that are supposed to be
    clipped end up being drawn over the top of another subview of the
    superview. How do I stop this from occurring?

    Nick Zitzmann
    <http://www.chronosnet.com/>
  • > I have an NSView that intentionally draws some graphics out of the
    > view's frame, so that part of the graphics get clipped. When the
    > view is drawn to screen or the printer, the graphics are clipped
    > correctly, so only part of the graphic is drawn in the view and the
    > other part doesn't appear. When the view is drawn to PDF, however,
    > using -dataWithPDFInsideRect:, then the graphics that are supposed
    > to be clipped end up being drawn over the top of another subview of
    > the superview. How do I stop this from occurring?

    http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaDrawingGuide
    /GraphicsContexts/chapter_3_section_3.html


      See "Setting the Clipping Region".

    --
    I.S.
previous month january 2008 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today