Hi Sanatt,
iText s licensed under the AGPL, so it will never find its
way into the Eclipse ecosystem.That's why I would recommend
to use Apache PDFBox. We already have a CQ in ChemClipse for
Apache PDFBox version 2.0.6. So I would recommend trying to
bring 2.0.6. and the latest version 2.0.14 to Eclipse Orbit
so that it can be easily re-used by Eclipse projects:
Apache PDFBox
https://pdfbox.apache.org
Eclipse Orbit
https://download.eclipse.org/tools/orbit/downloads/drops/R20190226160451/
PDFBox is a powerful library. But it needs some knowledge to
align elements like text, images. Especially if you'd like
to layout a report e.g. in DIN A4 with center top left and
scale mm. That's why I have already written an extension to
use this library in a more convenient way:
https://git.eclipse.org/c/chemclipse/org.eclipse.chemclipse.chemclipsecore.git?h=develop
org.eclipse.chemclipse.pdfbox.extensions
org.eclipse.chemclipse.pdfbox.extensions.fragment.test ->
see options in PageUtil_1_ITest
Writing an export converter for SWTChart is a great idea.
It's already possible to add new export converter via two
options
A) add a menu extension
B) register an extension via the extension point
Have a look at the example bundle
(org.eclipse.swtchart.extensions.examples) package
(org.eclipse.swtchart.extensions.examples.menu):
A) ZoomInHandler... -> chartSettings.addMenuEntry(new
ZoomInHandler());
B) ResetXAxisHandler... ->
MenuEntry="org.eclipse.swtchart.extensions.examples.menu.ResetXAxisHandler"
I've also played with the library VectorGraphics2d, but it
is licensed under the GPL (see problem iText), so it can't
be bundled with SWTChart:
https://github.com/eseifert/vectorgraphics2d
https://github.com/OpenChrom/swtchartvectorgraphics/tree/develop
So, I could be a mentor to help you implementing extensions
via the GSoC program. Student applications period is open
until April, 9th. Do you plan to attend and to submit a
proposal?
https://summerofcode.withgoogle.com/dashboard/timeline/
Best,
Philip
Am 26.03.19
um 18:32 schrieb Sanatt Abrol: