Changing default paper size for Java apps
Liam Proven
lproven at gmail.com
Fri Feb 11 16:37:37 UTC 2011
On Fri, Feb 11, 2011 at 4:24 PM, Tony Pursell
<ajp at princeswalk.fsnet.co.uk> wrote:
> Hi Liam
>
> On Fri, 2011-02-11 at 13:15 +0000, Liam Proven wrote:
>> On Wed, Feb 9, 2011 at 2:32 PM, Liam Proven <lproven at gmail.com> wrote:
>> > The printer preferences in System | Administration | Printing lets you
>> > change the default paper size for each printer, but some apps don't
>> > respect this, including Firefox, XulRunner - and the JVM.
>> >
>> > I've found how to set the default paper size using the "about:config"
>> > URL in Firefox and XulRunner, but is there any way to change the
>> > default paper size used by the JVM? I've Googled but all I'm finding
>> > is stuff about memory page sizes, which is irrelevant.
>>
>> Nobody have any ideas at all?
>
> Not being any sort of programmer/techie, I wouldn't have a clue, but it
> might help if you gave us an example of how and where the jvm uses its
> own default paper size, and what it does, e.g what size it uses.
>
> Having said that, a quick Google (java printing), seems to suggest that
> the job of setting up printer preferences lies with the java program and
> not the jvm, and if no printer dialogue is called, then java will use
> your default printer with default settings (System > Administration >
> Printing, right click on default printer > Properties > Printer
> Options). But that's not your experience, is it?
Thanks for the response!
I'm actually having problems with a desktop interface called Eldy, but
in theory, one should be able to reproduce it using any other Java app
capable of printing, such as ThinkFree Office.
http://se.thinkfree.com:8080/standard/index.do
So, for instance, with no Eldy on my own home box, running 10.04-64,
fully current, my default paper size is A4 - but if I bring up a new
blank wordprocessor document in ThinkFree and pick File | Page Setup,
the paper size is Letter.
It picks up the default printer from CUPS fine. (I only have one, but
if there are several, it finds them and selects the default.) It just
doesn't pick up the paper size. So on one colour HP inkjet I've tried,
for some reason, the default is postcard - as it's a photo-capable
printer. :¬/
--
Liam Proven • Info & profile: http://www.google.com/profiles/lproven
Email: lproven at cix.co.uk • GMail/GoogleTalk/Orkut: lproven at gmail.com
Tel: +44 20-8685-0498 • Cell: +44 7939-087884 • Fax: + 44 870-9151419
AIM/Yahoo/Skype: liamproven • MSN: lproven at hotmail.com • ICQ: 73187508
More information about the ubuntu-users
mailing list