| Known problems in JTextPrinter 1.0
JTextPrinter won't print embedded graphics images bigger than a page JTextPrinter 1.0 will hang when printing pages containing embedded graphics
images that are bigger than a printed page. JTextPrinter works by
getting Java to print as much as it can on a page, so when it gets to an
image that won't fit on a page it will keep putting it off to the next
page, resulting in an infinite loop. JTextPrinter does not have a
provision for breaking a single graphical element over multiple pages.
Java uses 72 pixels/inch for printing resolution so, for example, a 7"
by 10" printing area has an effective maximum individual printable image
size of 504 x 720. A fix so at least JTextPrinter won't hang is under
investigation.
JTextPrinter doesn't work under the Microsoft JVM JTextPrinter 1.0 fails to work in applets under Internet Explorer or in applets or applications under Microsoft's "jview" that ships with Windows. There are two problems. The first is that the JTextPrinter constructor throws a java.lang.StringIndexOutOfBoundsException under Microsoft JVM's 4.72.3110.8 and 4.79.0.2424 due to an error in JTextPrinter's parsing of Microsoft's syntax for system properties. Microsoft's JVM 5.0.0.3167 fixes this problem. But then, under all 3 JVM's, the JTextPrinter print method hangs and nothing prints. This second problem appears to be a bug in Microsoft's handling of off-screen graphics contexts which JTextPrinter needs to calculate how much will fit on a page. Until this problem is fixed or an alternative approach is discovered, JTextPrinter will not work under Microsoft JVM's. Workaround: use Sun's appletviewer or Netscape Communicator for applets and Sun (Symantec) JVM's for applications. |