Description: Patch for exporting image as PDF.
 This resolves the following bug: "Clicking File → Export → Export image and selecting option PDF, saves only the partial image."
Author: Prathibha B <prathibhab@cdac.in>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

Index: jmol-12.2.32+dfsg2/src/org/openscience/jmol/app/jmolpanel/PdfCreator.java
===================================================================
--- jmol-12.2.32+dfsg2.orig/src/org/openscience/jmol/app/jmolpanel/PdfCreator.java	2013-04-10 16:33:57.000000000 +0530
+++ jmol-12.2.32+dfsg2/src/org/openscience/jmol/app/jmolpanel/PdfCreator.java	2013-04-10 16:33:57.000000000 +0530
@@ -63,7 +63,7 @@
       tp.setHeight(h);
       g2.drawImage(image, 0, 0, w, h, 0, 0, w, h, null);
       g2.dispose();
-      cb.addTemplate(tp, 72, 720 - h);
+      cb.addTemplate(tp, 0.5f, 0, 0, 0.5f, 36, 720 - (h/2));
     } catch (DocumentException de) {
       return de.getMessage();
     } catch (IOException ioe) {
