ADD external jar into simplicite instance

Hello Team,

I need to add external jar file or maven dependency into simplicite instance, so could you please guide me how to add external jar into instance?

Hello,

If this JAR is avaiblable thru Maven you can use this procedure: Docker | Simplicité Documentation

Note that this procedure will preserve all indirect dependencies already present in Simplicité which may result on on unexpected behaviors when using the JAR

Note also that if this JAR is a “fat bundle” it might cause unexpected behaviors on Simplicité (as it can hide an existing dependencies of the platform)

Can you tell us what is this JAR you want to add so as we make a analysis of the potential conflicts ?

PS: if your JAR is 100% standalone you can also add it at configuration level:


Never add it like this if your lib is a “fat bundle” to avoid potential unexpected behaviors

Thanks for the replaying. i need to add the
com.vladsch.flexmark
flexmark-all
0.64.8
or this dependency related jar files

I think you don’t need this as all the CommonMark libs are already included in the platform

See : https://platform.simplicite.io/6.3/java-dependencies.html for the complete list of the platform dependencies

We have a requirement to convert a Markdown response into a PDF document.
To achieve this, we need to use the classes mentioned below.

import com.vladsch.flexmark.ext.autolink.AutolinkExtension;
import com.vladsch.flexmark.ext.tables.TablesExtension;
import com.vladsch.flexmark.html.HtmlRenderer;
import com.vladsch.flexmark.parser.Parser;
import com.vladsch.flexmark.util.ast.Node;
import com.vladsch.flexmark.util.data.MutableDataSet;

You can do this without needing to integrate any additional JAR:

bytes[] pdf = HTMLToPDFTool.markdownToPDF("My title", "Hello _Markdown_ **world**!");

See the HTMLToPDFTool helper class Javadoc

When you request our support please always start by explaining us what is your functional/business requirement. On a rich LowCode platform such as Simplicite adding custom JARs and/or writing “heavy” custom code is often not the right approach.