if (getValue("destfile") == null) throw new InstantiationException("You need to choose a destination file");
File pdf_file = (File)getValue("destfile");
RandomAccessFileOrArray odd = new RandomAccessFileOrArray(odd_file.getAbsolutePath());
RandomAccessFileOrArray even = new RandomAccessFileOrArray(even_file.getAbsolutePath());
Image img = TiffImage.getTiffImage(odd, 1);
Document document = new Document(new Rectangle(img.scaledWidth(),
img.scaledHeight()));
PdfWriter writer = PdfWriter.getInstance(document,
new FileOutputStream(pdf_file));
document.open();
PdfContentByte cb = writer.getDirectContent();