Page 1 of 1
PrinterVectorOutput different values for Win/OS-X
Posted: Tue Mar 08, 2016 3:38 am
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?
Re: PrinterVectorOutput different values for Win/OS-X
Posted: Tue Mar 08, 2016 1:13 pm
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.
Re: PrinterVectorOutput different values for Win/OS-X
Posted: Tue Mar 08, 2016 1:25 pm
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

Re: PrinterVectorOutput different values for Win/OS-X
Posted: Tue Mar 08, 2016 1:35 pm
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.
Re: PrinterVectorOutput different values for Win/OS-X
Posted: Tue Mar 08, 2016 1:40 pm
by srod
Ah... keep forgetting about the retina displays.

Re: PrinterVectorOutput different values for Win/OS-X
Posted: Tue Mar 08, 2016 3:16 pm
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?
Re: PrinterVectorOutput different values for Win/OS-X
Posted: Tue Mar 08, 2016 3:18 pm
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.
Re: PrinterVectorOutput different values for Win/OS-X
Posted: Tue Mar 08, 2016 3:20 pm
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.
Re: PrinterVectorOutput different values for Win/OS-X
Posted: Fri Mar 11, 2016 12:12 pm
by IdeasVacuum
fromVB, a new post in the Bugs section should be opened, detailing the faults found.