76c251ddd9
- wordpdf-core: WordPdfConverter, встроенные TTF-шрифты (Carlito/Caladea/ Arimo/Tinos/Cousine/DejaVu), BundledFontMapper с фолбэком в DejaVu - нормализация w:val on/off (regular-раны не рендерятся жирным курсивом) - символы U+2000–U+2EFF (em-dash) встраиваются через DejaVu, а не системным неembedded-шрифтом - wordpdf-cli: fat-jar CLI (один/несколько docx, явный выходной файл) - тесты (docx4j/FOP/PDFBox/POI), README
78 lines
3.2 KiB
XML
78 lines
3.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>ru.pjandro</groupId>
|
|
<artifactId>java-word-pdf</artifactId>
|
|
<version>1.0.0</version>
|
|
</parent>
|
|
|
|
<artifactId>wordpdf-cli</artifactId>
|
|
<name>wordpdf-cli</name>
|
|
<description>CLI: конвертация docx в PDF (fat-jar)</description>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>ru.pjandro</groupId>
|
|
<artifactId>wordpdf-core</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
|
|
<!-- ============ Тесты ============ -->
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<!-- Готовые .docx для smoke-теста берутся из test-jar wordpdf-core -->
|
|
<dependency>
|
|
<groupId>ru.pjandro</groupId>
|
|
<artifactId>wordpdf-core</artifactId>
|
|
<version>${project.version}</version>
|
|
<classifier>tests</classifier>
|
|
<type>test-jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<!-- Fat-jar: все зависимости внутри, Main-Class в манифесте.
|
|
Запуск: java -jar wordpdf-cli-1.0.0.jar file.docx [out.pdf] -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<transformers>
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
<mainClass>ru.pjandro.wordpdf.cli.WordPdfCli</mainClass>
|
|
</transformer>
|
|
</transformers>
|
|
<!-- Подписанные jar-файлы ломает shade -->
|
|
<filters>
|
|
<filter>
|
|
<artifact>*:*</artifact>
|
|
<excludes>
|
|
<exclude>META-INF/*.SF</exclude>
|
|
<exclude>META-INF/*.DSA</exclude>
|
|
<exclude>META-INF/*.RSA</exclude>
|
|
</excludes>
|
|
</filter>
|
|
</filters>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|