net.refractions.udig.project.ui.wizard.export.image
Class Image2Pdf

java.lang.Object
  extended by net.refractions.udig.project.ui.wizard.export.image.Image2Pdf

public class Image2Pdf
extends java.lang.Object

Author:
Andrea Antonello - www.hydrologis.com

Constructor Summary
Image2Pdf()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static void write(java.awt.image.BufferedImage image, java.lang.String pdfPath, Paper paper, int widthBorder, int heightBorder, boolean landscape)
          writes a buffered image to pdf at a resolution of 72dpi
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Image2Pdf

public Image2Pdf()
Method Detail

write

public static void write(java.awt.image.BufferedImage image,
                         java.lang.String pdfPath,
                         Paper paper,
                         int widthBorder,
                         int heightBorder,
                         boolean landscape)
writes a buffered image to pdf at a resolution of 72dpi

Parameters:
image - the image to write
pdfPath - the path to the pdf document to create
paper - the paper type
widthBorder - border in pixels to use on the x-axis
heightBorder - border in pixels to use on the y-axis
lanscape - true if the document should be in landscape mode

main

public static void main(java.lang.String[] args)