dxfedit/02_Aspose_CAD_Java/java/run_parameterized_print.bat
puzzlesion ec09c612b8 feat(java): implement PDF printing and block coordinate finding
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.
2025-09-12 17:20:50 +08:00

25 lines
759 B
Batchfile

@echo off
rem --- Parameterized CAD Printer Runner ---
rem --- USAGE ---
rem run_parameterized_print.bat <inputFile> <layoutName> <topLeftX> <topLeftY> <width> <height> <outputFile>
rem --- EXAMPLE ---
rem run_parameterized_print.bat "C:\Path\To\File.dwg" "Layout1" 0 0 841 594 "C:\Path\To\Output.pdf"
if "%~7"=="" (
echo Error: Missing arguments.
echo Usage: %0 ^<inputFile^> ^<layoutName^> ^<topLeftX^> ^<topLeftY^> ^<width^> ^<height^> ^<outputFile^>
exit /b 1
)
set ARGS="%~1" "%~2" "%3" "%4" "%5" "%6" "%~7"
echo Running print command with arguments:
echo %ARGS%
rem Navigate to the directory of this script to ensure Maven runs in the correct project
cd /d "%~dp0"
mvn exec:java -Dexec.cleanupDaemonThreads=false "-Dexec.args=%ARGS%"