How can I specify a custom css file to be used in a pdf conversion?
vsch / flexmark-java
CommonMark/Markdown Java parser with source level AST. CommonMark 0.28, emulation of: pegdown, kramdown, markdown.pl, MultiMarkdown. With HTML to MD, MD to PDF, MD to DOCX conversion modules.
@mkanada, since the PDF converter takes HTML you can add the CSS to the HTML before passing it to the exportToPdf method by wrapping the rendered HTML in <html><head>....</head><body>
and </body>
with CSS given by:
<link rel="stylesheet" href="file://....">
or
<link rel="stylesheet" href="http://....">
or by using <style>....</style>
to embed the CSS into the HTML.