Issue while drawing a molecule in a small pdf cell

User 041aab2e15

15-12-2015 11:36:17

 


We were using Jchem version 6.1 for one of our product.  We ran into an issue with pdf generation logic while trying to upgrade to Jchem version 15.3.30. We use itext version 2.1.7 for pdf generation. When attempting to render molecules in a small pdf cell, we see following exception: "com.lowagie.text.DocumentException: java.lang.IllegalArgumentException: Font size too small: 0.0". Though the exception is from pdf generation library, we believe the underlying issue is to do with jchem upgrade to the version 15.3.30 as  pdf generation library (itext) has not been changed. 


Attaching a sample code (MoleculeOnSmallCanvas.java) that shows the problem.  The following are instructions to execute the sample code.


Using JChem version 6.1 


javac -cp guava-15.0.jar:itext-rtf-2.1.7.jar:itext-2.1.7.jar:jchem-6.1.3.jar:rt.jar:.  MoleculeOnSmallCanvas.java


 java -cp
guava-15.0.jar:itext-rtf-2.1.7.jar:itext-2.1.7.jar:jchem-6.1.3.jar:rt.jar:.
  MoleculeOnSmallCanvas


Ouptut: test.pdf has the structure rendered properly (Will have to zoom too see it properly). 


 


Using JChem version 15.3.30


javac -cp
guava-15.0.jar:itext-rtf-2.1.7.jar:itext-2.1.7.jar:jchem-15.3.30.0.jar:rt.jar:. 
MoleculeOnSmallCanvas.java


 


java -cp
guava-15.0.jar:itext-rtf-2.1.7.jar:itext-2.1.7.jar:jchem-15.3.30.0.jar:rt.jar:.  MoleculeOnSmallCanvas


Output:  Exception: "com.lowagie.text.DocumentException: java.lang.IllegalArgumentException: Font size too small: 0.0". 



ChemAxon f052bdfe3c

17-12-2015 08:40:55

Hi Somavara,


This bug was fixed in version 15.10.25, please upgrade.


Best regards,


Efi

User 041aab2e15

21-12-2015 07:46:06

Hi Efi,


Thanks for your response.  


There seems to be no listing for release version 15.10.25 in you release archive. The closest I could find is 15.10.26.  Can you please clarify the release version.  Also, could you provide reference to release notes where the issues is fixed? 


Thanks,


Suman


 


 



ChemAxon 5693b0ec15

21-12-2015 13:26:23

Hi,


it is indeed 15.10.26., but I think it is a better option to update to our latest version.


Please find the related History of changes of the MarvinView here.


Best regards,


Nikolett Mihala

User 041aab2e15

21-12-2015 16:48:57

Hi,


The link provided in the last update for release notes where for the release where the issue got fixed throws Page not found error. Could you please provide the correct link?


Thanks,


Suman

ChemAxon 5693b0ec15

21-12-2015 18:25:41

The link has been down for maintenance.


Sorry for the inconveniece.


Best regards,


Nikolett Mihala