Skip navigation.
 
mlRe: drawPageBorderWithSize question
FROM : matt neuburg
DATE : Sun Nov 24 17:58:34 2002

On 11/24/02 at roughly 7:34 AM, thus spake matt neuburg <<email_removed>>:

>I can thus get drawPageBorderWithSize to work perfectly
>every time, provided I'm willing to print an extra blank
>page sometimes. But that's sort of ugly. I could work
>around the bug completely if I could find a way, in these
>circumstances, to suppress the unwanted extra blank page.


And that's exactly what I've done. As explained in my previous note, I make the NSView too long if the material to be printed is shorter than the paperSize; this causes drawPageBorderWithSize to print correctly every time. I then, just in that one case where the material to be printed is shorter than the paperSize, take over page-rect calculation using knowsPageRange: and rectForPage:, causing there to be only one page.

The bug is thus completely worked around, at least for what I'm printing; drawPageBorderWithSize works fine. However, there's still a bug in it, as explained in my previous note, and Apple should fix it. m.

matt neuburg, phd = <email_removed>, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mldrawPageBorderWithSize question matt neuburg Nov 24, 04:43
mlRe: drawPageBorderWithSize question Scott Anguish Nov 24, 05:14
mlRe: drawPageBorderWithSize question matt neuburg Nov 24, 16:34
mlRe: drawPageBorderWithSize question matt neuburg Nov 24, 17:58