Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [swtchart-dev] GSoC 2019 : Extending the export options project

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:
Hi everyone, I hope you are doing well. We need to add new export options like .pdf,  .svg etc.
I was doing some research over this and found iText and Apache PDFBox as libraries we can use to export our 'imageData'.
iText has both free and commercial license which I doubt we can use in our case. Apache PDFBox however is open-source.
Is it possible to use Apache PDFBox for our project? 
If not, then I suppose we are required to write our own 'pdf exporter' which is something I think the whole Eclipse community can benefit from (if something like this is not already written by the community).

Please let me know what you think :)
Regards, 
Sanatt

_______________________________________________
swtchart-dev mailing list
swtchart-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/swtchart-dev

-- 
~~~~~~~~~~~~~~~~~~~~~~~~
OpenChrom - the open source alternative for chromatography / mass spectrometry
Dr. Philip Wenig » Founder » philip.wenig@xxxxxxxxxxxxx » http://www.openchrom.net
~~~~~~~~~~~~~~~~~~~~~~~~

Back to the top