PrintPaperRectangle

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

PrintPaperRectangle

Mark Waddingham via use-livecode
LC 8.1.4, MacOS 10.12.5

Print Paper Rectangle returns 8,8,834,587 for A4 Landscape.

This does not seem to match the description in the dictionary?

"The printPaperRectangle property contains four comma-separated integers and is in points.
The default value reflects the default values of the printPaperSize and printPaperOrientation.
The four numbers represent the left, top, right and bottom of the rectangle being printed to.
The rectangle is relative to the top-left of the page, and the left and top will currently always be 0.”

Can anyone shed some light on this please.

Thanks


Terry
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: PrintPaperRectangle

Mark Waddingham via use-livecode
On 6/30/2017 2:17 PM, Terence Heaford via use-livecode wrote:

> LC 8.1.4, MacOS 10.12.5
>
> Print Paper Rectangle returns 8,8,834,587 for A4 Landscape.
>
> This does not seem to match the description in the dictionary?
>
> "The printPaperRectangle property contains four comma-separated integers and is in points.
> The default value reflects the default values of the printPaperSize and printPaperOrientation.
> The four numbers represent the left, top, right and bottom of the rectangle being printed to.
> The rectangle is relative to the top-left of the page, and the left and top will currently always be 0.”
>
> Can anyone shed some light on this please.
>

Some printer can not print right to the edge of the paper. I believe
that the numbers you are seeing reflect the physical limitation on the
edges of this particular printer.

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: PrintPaperRectangle

Mark Waddingham via use-livecode
Almost no toner based printer can do this. It's called Full Bleed, and think about what happens to the excess toner that has to go off the edge of the paper to do that. Ink based printers are designed to do this because they can just catch the ink that gets oversprayed, and you can clean/empty the waste ink container periodically. Toner is different because the paper with the toner has to travel through the fuser, and then what doesn't get fused gets picked up in the waste toner bin AFTER the fusing process. The toner that gets left behind on a toner based printer has to have some means of being collected.

There are a few production based copiers that can do this, but they are made to do it. Most other printers are not.

Bob S

 
> On Jun 30, 2017, at 12:48 , Paul Dupuis via use-livecode <[hidden email]> wrote:
>
> Some printer can not print right to the edge of the paper. I believe
> that the numbers you are seeing reflect the physical limitation on the
> edges of this particular printer.


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: PrintPaperRectangle

Mark Waddingham via use-livecode

Thanks for your explanation. It does seem logical.

But where does 587 come from in 8,8,834,587 ?

A4 is 553.

Thanks

Terry



> On 30 Jun 2017, at 20:56, Bob Sneidar via use-livecode <[hidden email]> wrote:
>
> Almost no toner based printer can do this. It's called Full Bleed, and think about what happens to the excess toner that has to go off the edge of the paper to do that. Ink based printers are designed to do this because they can just catch the ink that gets oversprayed, and you can clean/empty the waste ink container periodically. Toner is different because the paper with the toner has to travel through the fuser, and then what doesn't get fused gets picked up in the waste toner bin AFTER the fusing process. The toner that gets left behind on a toner based printer has to have some means of being collected.
>
> There are a few production based copiers that can do this, but they are made to do it. Most other printers are not.
>
> Bob S
>
>
>> On Jun 30, 2017, at 12:48 , Paul Dupuis via use-livecode <[hidden email]> wrote:
>>
>> Some printer can not print right to the edge of the paper. I believe
>> that the numbers you are seeing reflect the physical limitation on the
>> edges of this particular printer.
>
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: PrintPaperRectangle

Mark Waddingham via use-livecode
This is correctly reporting A4 with an 8px non-printable area around the
edge:

8.27 × 11.69 inches 8.27 72 595.44
210 × 297 mm 11.69 72 841.68

       
       
       
       
8,8,834,587 834 8 842
l,t,r,b
        587 8 595


A4 is 210 x 297mm which is 8.27 x 11.69 inches at 72px per inch is ~842
x 595 (rounding off)
Take the Right coordinate of 834 ad add 8 and you get 842 and the Bottom
of 587 and add 8 and you get 595


On 7/1/2017 2:58 AM, Terence Heaford via use-livecode wrote:

> Thanks for your explanation. It does seem logical.
>
> But where does 587 come from in 8,8,834,587 ?
>
> A4 is 553.
>
> Thanks
>
> Terry
>
>
>
>> On 30 Jun 2017, at 20:56, Bob Sneidar via use-livecode <[hidden email]> wrote:
>>
>> Almost no toner based printer can do this. It's called Full Bleed, and think about what happens to the excess toner that has to go off the edge of the paper to do that. Ink based printers are designed to do this because they can just catch the ink that gets oversprayed, and you can clean/empty the waste ink container periodically. Toner is different because the paper with the toner has to travel through the fuser, and then what doesn't get fused gets picked up in the waste toner bin AFTER the fusing process. The toner that gets left behind on a toner based printer has to have some means of being collected.
>>
>> There are a few production based copiers that can do this, but they are made to do it. Most other printers are not.
>>
>> Bob S
>>
>>
>>> On Jun 30, 2017, at 12:48 , Paul Dupuis via use-livecode <[hidden email]> wrote:
>>>
>>> Some printer can not print right to the edge of the paper. I believe
>>> that the numbers you are seeing reflect the physical limitation on the
>>> edges of this particular printer.
>>
>> _______________________________________________
>> use-livecode mailing list
>> [hidden email]
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: PrintPaperRectangle

Mark Waddingham via use-livecode
Sorry about that, I should have realised (must be slow on the uptake today) but….


I still get the grey area when I print the card.
Do you have any insight into why this should happen?
(see thread “Capturing screen into image”)?


Thanks

Terry


> On 1 Jul 2017, at 14:02, Paul Dupuis via use-livecode <[hidden email]> wrote:
>
> This is correctly reporting A4 with an 8px non-printable area around the
> edge:
>
> 8.27 × 11.69 inches 8.27 72 595.44
> 210 × 297 mm 11.69 72 841.68
>
>
>
>
>
> 8,8,834,587 834 8 842
> l,t,r,b
> 587 8 595
>
>
> A4 is 210 x 297mm which is 8.27 x 11.69 inches at 72px per inch is ~842
> x 595 (rounding off)
> Take the Right coordinate of 834 ad add 8 and you get 842 and the Bottom
> of 587 and add 8 and you get 595
>
>
> On 7/1/2017 2:58 AM, Terence Heaford via use-livecode wrote:
>> Thanks for your explanation. It does seem logical.
>>
>> But where does 587 come from in 8,8,834,587 ?
>>
>> A4 is 553.
>>
>> Thanks
>>
>> Terry
>>
>>
>>
>>> On 30 Jun 2017, at 20:56, Bob Sneidar via use-livecode <[hidden email]> wrote:
>>>
>>> Almost no toner based printer can do this. It's called Full Bleed, and think about what happens to the excess toner that has to go off the edge of the paper to do that. Ink based printers are designed to do this because they can just catch the ink that gets oversprayed, and you can clean/empty the waste ink container periodically. Toner is different because the paper with the toner has to travel through the fuser, and then what doesn't get fused gets picked up in the waste toner bin AFTER the fusing process. The toner that gets left behind on a toner based printer has to have some means of being collected.
>>>
>>> There are a few production based copiers that can do this, but they are made to do it. Most other printers are not.
>>>
>>> Bob S
>>>
>>>
>>>> On Jun 30, 2017, at 12:48 , Paul Dupuis via use-livecode <[hidden email]> wrote:
>>>>
>>>> Some printer can not print right to the edge of the paper. I believe
>>>> that the numbers you are seeing reflect the physical limitation on the
>>>> edges of this particular printer.
>>>
>>> _______________________________________________
>>> use-livecode mailing list
>>> [hidden email]
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>> _______________________________________________
>> use-livecode mailing list
>> [hidden email]
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: PrintPaperRectangle

Mark Waddingham via use-livecode
On 7/1/2017 10:05 AM, Terence Heaford via use-livecode wrote:
> Sorry about that, I should have realised (must be slow on the uptake today) but….
>
>
> I still get the grey area when I print the card.
> Do you have any insight into why this should happen?
> (see thread “Capturing screen into image”)?
>

Sorry Terry, I have not been following the screen image thread.

I responded to the paper size post because I was just doing some work on
my own printing stack and so the material was "fresh" on my mind and was
trying to be helpful on something I knew off the top of my head.

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: PrintPaperRectangle

Mark Waddingham via use-livecode
In reply to this post by Mark Waddingham via use-livecode
By synchronicity, I start writing a very similar message a few days ago.

I stopped writing the email when I'd typed the words "is there another print
property I should be using?" and as is often the case when I draft a
despairing message to the use- list, this prompted me to look a bit harder and
find the answer.

My problem, at least, was solved by finding the printPaperSize, which
correctly returns (for A4 at 100%) "595,842" - a reasonable approximation for
A4 paper converted to inches at 72dpi.

 > Can anyone shed some light on this please.

Simple answer: it's a bug. At some point the printPaperRectangle has been
nobbled to be exactly the same as the printRectangle. I've reported this as
http://quality.livecode.com/show_bug.cgi?id=19997

In the meantime, the printPaperSize is your friend, provided the page setup is
at default scale and orientation: in this case, the printPaperRectangle should
be the same as printPaperSize with two zeros.

However if you're not at default scale/orientation, you're a bit out of luck.
You can reasonably infer orientation from the printRectangle, but there's not
a reliable way to figure out the true scaled paper size from the combination
of printRectangle and printPaperSize (which is why we need printPaperRectangle).

Ben


On 30/06/2017 19:17, Terence Heaford via use-livecode wrote:

> LC 8.1.4, MacOS 10.12.5
>
> Print Paper Rectangle returns 8,8,834,587 for A4 Landscape.
>
> This does not seem to match the description in the dictionary?
>
> "The printPaperRectangle property contains four comma-separated integers and is in points.
> The default value reflects the default values of the printPaperSize and printPaperOrientation.
> The four numbers represent the left, top, right and bottom of the rectangle being printed to.
> The rectangle is relative to the top-left of the page, and the left and top will currently always be 0.”
>
> Can anyone shed some light on this please.
>
> Thanks
>
>
> Terry
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: PrintPaperRectangle

Mark Waddingham via use-livecode
i came to the same conclusion, thank you for reporting it.

Paul

> On Jul 4, 2017, at 9:08 AM, Ben Rubinstein via use-livecode <[hidden email]> wrote:
>
> By synchronicity, I start writing a very similar message a few days ago.
>
> I stopped writing the email when I'd typed the words "is there another print property I should be using?" and as is often the case when I draft a despairing message to the use- list, this prompted me to look a bit harder and find the answer.
>
> My problem, at least, was solved by finding the printPaperSize, which correctly returns (for A4 at 100%) "595,842" - a reasonable approximation for A4 paper converted to inches at 72dpi.
>
>> Can anyone shed some light on this please.
>
> Simple answer: it's a bug. At some point the printPaperRectangle has been nobbled to be exactly the same as the printRectangle. I've reported this as
> http://quality.livecode.com/show_bug.cgi?id=19997
>
> In the meantime, the printPaperSize is your friend, provided the page setup is at default scale and orientation: in this case, the printPaperRectangle should be the same as printPaperSize with two zeros.
>
> However if you're not at default scale/orientation, you're a bit out of luck. You can reasonably infer orientation from the printRectangle, but there's not a reliable way to figure out the true scaled paper size from the combination of printRectangle and printPaperSize (which is why we need printPaperRectangle).
>
> Ben
>
>
> On 30/06/2017 19:17, Terence Heaford via use-livecode wrote:
>> LC 8.1.4, MacOS 10.12.5
>> Print Paper Rectangle returns 8,8,834,587 for A4 Landscape.
>> This does not seem to match the description in the dictionary?
>> "The printPaperRectangle property contains four comma-separated integers and is in points.
>> The default value reflects the default values of the printPaperSize and printPaperOrientation.
>> The four numbers represent the left, top, right and bottom of the rectangle being printed to.
>> The rectangle is relative to the top-left of the page, and the left and top will currently always be 0.”
>> Can anyone shed some light on this please.
>> Thanks
>> Terry
>> _______________________________________________
>> use-livecode mailing list
>> [hidden email]
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



Paul
[hidden email]

Mac OS Sierra 10.12.1



_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Loading...