Hi,
In my efforts to push FOSS in schools and colleges, I am distributing free and open source softwares in schools and colleges. All projects are uploaded on source forge.
However I am facing some printing problem executing JAVA code on bosslinux. I usually print output directly on A4 paper and suppress print dialog. I wrote the program before I knew BOSS and was working nicely on windows. On BOSS, the program executes properly but the default output comes on letter size instead of A4. This trims some left, right, top and bottom content.
I tried various code snippets to pro grammatically set the paper A4 but it does not work. I am using cups-pdf and the pdf print is also having the same problem. I thought first that it was a problem specific to boss but a friend of mine sent me this.
=================== [Forwarded from Sanjay Patil] Yes, see https://bugzilla.novell.com/show_bug.cgi?id=88286#c12
The crucial information is the geographical location, i.e. the second part of a locale name, for example: en_GB is English for Great Britain => A4 paper en_US is English for United States => Letter paper
I think that without an existing geographical location (in particular for "C" or "POSIX") it is just not possible to set another paper size than what is the default in the PPD.
Or the fallback should be at least "A4" (if avialable in the PPD) because I think that A4 paper is more often used in the whole world than Letter. ==============================
Has anybody come across this. Will you please run the following java code on any other linux version and let me know how it works or send me the pdf output ? I have already set the default data so just run the Java file and press the [Print Attendance] button. You will get 23 page document. Only one page will do for testing. pdf output will be best.
http://sourceforge.net/projects/hsc-formcreator/
Thanks and regards
Milind