This commit adds significant new functionality to the Aspose_CAD_Java project: - CadToPdfPrinter.java: Enables direct printing of CAD files to PDF documents. - ParameterizedCadPrinter.java & PrintByCoordinates.java: Provide advanced printing options, allowing for parameterized and coordinate-based exports. - FindBlockCoordinates.java: A utility to locate block coordinates within CAD drawings, essential for automation. The build system has been updated (pom.xml) to include these new classes, and new run scripts have been added for easier execution. Also includes a large set of examples from the official repository. Relevant .specstory documentation has been added.
108 lines
3.6 KiB
XML
108 lines
3.6 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>
|
|
|
|
<groupId>com.example</groupId>
|
|
<artifactId>dwg-color-extractor</artifactId>
|
|
<version>1.0.0</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>DWG Color Extractor</name>
|
|
<description>Extract specific color elements from DWG files using Aspose.CAD for Java</description>
|
|
|
|
<properties>
|
|
<maven.compiler.source>11</maven.compiler.source>
|
|
<maven.compiler.target>11</maven.compiler.target>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!-- Aspose.CAD for Java -->
|
|
<dependency>
|
|
<groupId>com.aspose</groupId>
|
|
<artifactId>aspose-cad</artifactId>
|
|
<version>24.5</version>
|
|
</dependency>
|
|
|
|
<!-- JSON处理 -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
<version>2.15.2</version>
|
|
</dependency>
|
|
|
|
<!-- CSV处理 -->
|
|
<dependency>
|
|
<groupId>com.opencsv</groupId>
|
|
<artifactId>opencsv</artifactId>
|
|
<version>5.8</version>
|
|
</dependency>
|
|
|
|
<!-- 日志 -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-simple</artifactId>
|
|
<version>2.0.7</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<!-- Maven编译插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.11.0</version>
|
|
<configuration>
|
|
<source>11</source>
|
|
<target>11</target>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- Maven执行插件 -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<version>3.1.0</version>
|
|
<configuration>
|
|
<mainClass>ParameterizedCadPrinter</mainClass>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- Maven打包插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.4.1</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<transformers>
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
<mainClass>LineExtractor</mainClass>
|
|
</transformer>
|
|
</transformers>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<repositories>
|
|
<!-- Aspose Maven仓库 -->
|
|
<repository>
|
|
<id>AsposeJavaAPI</id>
|
|
<name>Aspose Java API</name>
|
|
<url>https://releases.aspose.com/java/repo/</url>
|
|
</repository>
|
|
</repositories>
|
|
</project>
|