Hi Irene,
What version of Java are you using. The problem may be related to this bug, which affects 1.5 and 1.6.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6296538
Patrick

Irene Heinz wrote:

Hi everyone,



I realised that printing the whole SVG doesn't work properly, either - it also cuts off something at the left side. It seems that the border settings in the page setting dialog are ignored, if I set the borders to 0, much more of the image is printed. Settings the border with the keys doesn't seem to help. This is my code to print the whole SVG:

      PrintTranscoder prm = new PrintTranscoder();
      TranscoderInput ti = new TranscoderInput(graphic);
      prm.transcode(ti, null);
      
      PrinterJob printerJob = PrinterJob.getPrinterJob();
     ! ;       PageFormat pageFormat = printerJob.defaultPage();

            if(printerJob.pageDialog(pageFormat) != pageFormat){
                if(printerJob.printDialog()){
                    printerJob.setPrintable(prm);
                    try{
                     printerJob.print();
                    }
               &n! bsp;    catch(Exception e){
                      System.out.println(e.getMessage());
                    }
                }
            }
            else{
                System.err.println("Print was cancelled");
            }

What can I do to get the whole image printed? Am I missing a setting?

 

Regards, Irene


Important - This e-mail and the information that it contains may be
confidential, legally privileged and protected by law. Access by the
intended recipient only is authorised. Any liability (in negligence or
otherwise) arising from any third party acting, or refraining from acting,
on any information contained in this e-mail is hereby excluded. If you are
not the intended recipient, please notify the sender immediately and do not
disclose the contents to any other person, use it for any purpose, or store
or copy the information in any medium. Copyright in this e-mail and
attachments created by us belongs to the author and
also asserts the right to be identified as such and object to any misuse.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to