discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing not working at all...


From: Gregory Casamento
Subject: Re: Printing not working at all...
Date: Sun, 17 Jul 2016 05:57:40 -0400

Hey Fred,

On Sun, Jul 17, 2016 at 5:45 AM, Fred Kiefer <fredkiefer@gmx.de> wrote:
Hi Greg,

to me it looks like you change tries to optimise the case where a view gets printed on a single page. Have you tried to print out a long text document which spans multiple pages after your change?

​No I haven't.​   I am testing it further now.  It appears my calculations cause views larger than the size of the page to be rendered incorrectly (off the page).   I'm continuing to work on this to see if I can correct the problem.

 
All the complicated calculations are in NSPrintOperation.m (specifically in the method _displayPageInRect:withInfo:knowsPageRange:) and maybe something similar to your changes is missing there?

​More than likely.   There are a lot of similar changes there.​
 

Perhaps you could first explain which issue with printing you are trying to resolve?

​The issue is that, as it was before, the view spills over the page and is not scaled and also appears halfway down the page.​

 
At the moment it looks to me like your goal is "Print one view on one page" and this is clearly wrong. But most likely I misunderstand the aim of your change.

​The goal is to correct printing in general.  As it was when the view is larger, it moves up on the page (without my changes) which was incorrect behavior.   I believe more calculations are needed.   Pagination is something we are not doing (properly if at all).
 

Fred

On the road

​GC
 

Am 17.07.2016 um 03:43 schrieb Gregory Casamento <greg.casamento@gmail.com>:

> Hey Fred/Riccardo,
>
> I have just committed my changes for printing which should alight the existing top level view being printed with the page dimensions.  I am unsure of this change, but it seems to work.
>
> I tested with Ink and it aligns to the top and I tested with Graphos.  Graphos still works properly.  Please take a look and let me know what you think.  If it belongs someplace else, then let me know.  It works better than what we had before.  Please I would very much like any input people have.
>
> Thanks, GC


_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnustep



--
Gregory Casamento
GNUstep Lead Developer / OLC, Principal Consultant
http://www.gnustep.org - http://heronsperch.blogspot.com
http://ind.ie/phoenix/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]