• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Issue with dataWithPDFInsideRect:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue with dataWithPDFInsideRect:


  • Subject: Issue with dataWithPDFInsideRect:
  • From: Brock Brandenberg <email@hidden>
  • Date: Fri, 29 Mar 2002 11:45:20 -0600

Ayyone have a clue what goes on with the rect passed to dataWithPDFInsideRect:(NSRect)aRect?

I have an NSView subclass that I want to save to a PDF, but size differences between the frame rect and bounds rect are giving me hell. All was fine when my frame rect and bounds rect were at a 1:1 size ratio, but since I implemented zooming by changing the frame to bounds rect ratio, dataWithPDFInsideRect: no longer does the right thing. I would expect the method to write a PDF with a physical size of "aRect" taken from the canvas. However, it appears to be writing a PDF with a physical size of "aRect" taken from the frame, not the canvas. So when zoom out and save, I get a very tiny image in the bottom corner of the PDF, and when I zoom in and save, I get a large clipped image in the PDF.

And zooming to 100% first is not the correct solution. All drawing operations work in the canvas coordinate system... all convertPoint: operations work in the canvas coordinate system... dataWithPDFInsideRect: should too. If it's going to do scaling it should take two rects like NSImage drawInRect:fromRect:operation:fraction.

I could work around any inherent transformations if this crap had documentation. Anyone know the emails or cell numbers of the developers who are working on Cocoa drawing? Am I the only one this pissed about things?

Brock Brandenberg

----- industrial design @ bergdesign.com ------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Issue with dataWithPDFInsideRect:
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: NSView subclass never gets dealloced?
  • Next by Date: RE: NSView subclass never gets dealloced?
  • Previous by thread: Re: Yet another CVS question.
  • Next by thread: Re: Issue with dataWithPDFInsideRect:
  • Index(es):
    • Date
    • Thread