PrinterVectorOutput different values for Win/OS-X

Just starting out? Need help? Post your questions and find answers here.
fromVB
User
User
Posts: 82
Joined: Sun Jul 29, 2012 2:27 am

PrinterVectorOutput different values for Win/OS-X

Post by fromVB »

Why does VectorOutputWidth and VectorOutputHeight give different results for the same printer having the same paper settings for #PB_Unit_Pixel at 600dpi?

Code: Select all

On Windows:
PrinterPageWidth() = 4760
PrinterPageHeight() = 6814

VectorOutputWidth() = 4771
VectorOutputHeight() = 6803

On OS-X:
PrinterPageWidth() = 2380
PrinterPageHeight() = 3368

VectorOutputWidth() = 2479
VectorOutputHeight() = 3508
I know it looks like the DPI settings but it shows 600dpi for both.

Plus when using #PB_Unit_Millimeter I get this:

Code: Select all

On Windows:
VectorOutputWidth() = 202
VectorOutputHeight() = 288

On OS-X:
VectorOutputWidth() = 209.902
VectorOutputHeight() = 297.039
Mac shows full paper size and not just the printable area.

Is this correct?
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: PrinterVectorOutput different values for Win/OS-X

Post by srod »

If the first set of results you show on OSX really is with a 600 dpi setting then that must go down as a bug. I'd report that if I were you.

The second issue (strange that more accurate results are given in mm) is obviously, at best, an inconsistency. No harm in reporting that as well as, in the interests of cross-platform compatibility, we'd like all platforms to report identical results where possible.
I may look like a mule, but I'm not a complete ass.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: PrinterVectorOutput different values for Win/OS-X

Post by IdeasVacuum »

Code: Select all

On Windows:
PrinterPageWidth() = 4760
PrinterPageHeight() = 6814

VectorOutputWidth() = 4771
VectorOutputHeight() = 6803
The Windows results are not accurate if the DPI is exactly 600 (is it 600dpi for Height also?).
.... and the VectorOutputWidth() should not be greater than PrinterPageWidth()
Smells like a bug :(
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3942
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: PrinterVectorOutput different values for Win/OS-X

Post by wilbert »

srod wrote:If the first set of results you show on OSX really is with a 600 dpi setting then that must go down as a bug. I'd report that if I were you.
It could have to do with a retina display where there's a difference between physical and logical pixels.
Windows (x64)
Raspberry Pi OS (Arm64)
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: PrinterVectorOutput different values for Win/OS-X

Post by srod »

Ah... keep forgetting about the retina displays. :)
I may look like a mule, but I'm not a complete ass.
fromVB
User
User
Posts: 82
Joined: Sun Jul 29, 2012 2:27 am

Re: PrinterVectorOutput different values for Win/OS-X

Post by fromVB »

wilbert wrote:It could have to do with a retina display where there's a difference between physical and logical pixels.
Would the retina display make a difference with the printer resolution though?
fromVB
User
User
Posts: 82
Joined: Sun Jul 29, 2012 2:27 am

Re: PrinterVectorOutput different values for Win/OS-X

Post by fromVB »

IdeasVacuum wrote:

Code: Select all

On Windows:
PrinterPageWidth() = 4760
PrinterPageHeight() = 6814

VectorOutputWidth() = 4771
VectorOutputHeight() = 6803
The Windows results are not accurate if the DPI is exactly 600 (is it 600dpi for Height also?).
.... and the VectorOutputWidth() should not be greater than PrinterPageWidth()
Smells like a bug :(
Yes they are both 600dpi.
fromVB
User
User
Posts: 82
Joined: Sun Jul 29, 2012 2:27 am

Re: PrinterVectorOutput different values for Win/OS-X

Post by fromVB »

srod wrote:If the first set of results you show on OSX really is with a 600 dpi setting then that must go down as a bug. I'd report that if I were you.
If the settings are correct. There is no default settings as with Windows, but the default print settings being used show the dpi as 600. I could only check it through TextEdit.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: PrinterVectorOutput different values for Win/OS-X

Post by IdeasVacuum »

fromVB, a new post in the Bugs section should be opened, detailing the faults found.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply