io.github.mengwang0211:pdf-converter

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

License

License

Categories

Categories

PDF Data
GroupId

GroupId

io.github.mengwang0211
ArtifactId

ArtifactId

pdf-converter
Last Version

Last Version

3.0.0.RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Source Code Management

Source Code Management

https://github.com/mengwang0211/pdf-converter.git

Download pdf-converter

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.mengwang0211/pdf-converter/ -->
<dependency>
    <groupId>io.github.mengwang0211</groupId>
    <artifactId>pdf-converter</artifactId>
    <version>3.0.0.RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.mengwang0211/pdf-converter/
implementation 'io.github.mengwang0211:pdf-converter:3.0.0.RELEASE'
// https://jarcasting.com/artifacts/io.github.mengwang0211/pdf-converter/
implementation ("io.github.mengwang0211:pdf-converter:3.0.0.RELEASE")
'io.github.mengwang0211:pdf-converter:jar:3.0.0.RELEASE'
<dependency org="io.github.mengwang0211" name="pdf-converter" rev="3.0.0.RELEASE">
  <artifact name="pdf-converter" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.mengwang0211', module='pdf-converter', version='3.0.0.RELEASE')
)
libraryDependencies += "io.github.mengwang0211" % "pdf-converter" % "3.0.0.RELEASE"
[io.github.mengwang0211/pdf-converter "3.0.0.RELEASE"]

Dependencies

compile (9)

Group / Artifact Type Version
commons-io : commons-io jar 2.4
commons-lang : commons-lang jar 2.6
org.projectlombok : lombok jar 1.16.14
org.slf4j : slf4j-api jar 1.7.21
org.freemarker : freemarker jar 2.3.28
com.itextpdf : itextpdf jar 5.5.9
com.itextpdf.tool : xmlworker jar 5.5.9
com.itextpdf : itext-asian jar 5.2.0
net.sf.jtidy : jtidy jar r938

Project Modules

There are no modules declared in this project.

Maven Central License

pdf-converter

使用方法

    <groupId>io.github.mengwang0211</groupId>
    <artifactId>pdf-converter</artifactId>
    <version>1.0.1</version>
freemarker 转 pdf
       // 填入freemarker模板的文件路径
        URL url = Thread.currentThread().getContextClassLoader().getResource("");

        // 数据填充
        Map initData = initData();

        // 返回生成的pdf路径
        String pdfPath = FreeMarkToPdf.convert(url.getPath(),"template.ftl",initData);

Versions

Version
3.0.0.RELEASE
2.0.0.RELEASE
1.0.2
1.0.1
1.0.0