taviso / wpunix

WordPerfect for UNIX Character Terminals
603 stars 17 forks source link

Ghostscript and alternate page sizes #30

Closed abenson closed 1 year ago

abenson commented 1 year ago

I've noticed that the margins, particularly the top and bottom especially when modified, do not behave correctly if the page size is modified to something other than Letter (namely A4).

I'll need to properly sort it all out, but the same file when printed with, for example, the Apple LaserWriter, generates proper margin placement in the resulting postscript.

emendelson commented 1 year ago

I believe the only difference in the way the Ghostscript driver and the LaserWriter IINTX driver format pages is that the Ghostscript driver sets the minimum page margins to zero, while the driver for the LaserWriter sets the minimum margins to 0.3 inches (which is the actual minimum for the physical printer). Is it possible that you're seeing a 0.3" difference between the two outputs?

EDIT 1: I experimented by creating an A4 page size in the Ghostscript driver and printing the same text, first with a Letter page size, then with the A4 page size. The top margin was identical in both.

EDIT 2: I got the same result when modifying the top margin from the default. When I viewed the two outputs in Adobe Acrobat, they LOOKED as if the top margins were different, but that was the effect of the different magnification levels that Acrobat was using for the two files. When I set magnification to 100% for both files, the margins were the same.

abenson commented 1 year ago

I need to do some more testing, I'm having trouble recreating the issue right now, and I think it may have actually been an issue when I physically printed something (i.e. paper type mismatch, document/PDF are A4, printer is loaded with A4, but PDF viewer was set to print to letter).