|
Hi, I’m trying to use the PrintTranscoder to print a SVG
document created with Batik. It goes to the printer just fine, but all of my transcoding
hints are ignored! Does anybody have a working code sample of printing a simple
svg document to be scaled to fit the printed page? That would help me a lot! The hints I’m trying to set at the moment are: trans.addTranscodingHint(PrintTranscoder.KEY_MARGIN_BOTTOM,
new Float(bottomMargin)); trans.addTranscodingHint(PrintTranscoder.KEY_MARGIN_TOP, new
Float(topMargin)); trans.addTranscodingHint(PrintTranscoder.KEY_MARGIN_LEFT,
new Float(leftMargin)); trans.addTranscodingHint(PrintTranscoder.KEY_MARGIN_RIGHT,
new Float(rightMargin)); trans.addTranscodingHint(PrintTranscoder.KEY_SCALE_TO_PAGE,
new Boolean(true)); but they are just ignored, and the printout starts outside
the margin of my print settings (meaning only part of it is printed) Thank you /Johan |
