Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vitalegi/doc-magic
cmd utility for document conversion
https://github.com/vitalegi/doc-magic
Last synced: 1 day ago
JSON representation
cmd utility for document conversion
- Host: GitHub
- URL: https://github.com/vitalegi/doc-magic
- Owner: vitalegi
- License: mit
- Created: 2024-03-07T19:25:07.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-03-25T07:10:16.000Z (8 months ago)
- Last Synced: 2024-03-25T08:29:15.715Z (8 months ago)
- Language: Java
- Size: 12.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# README
Utilities to convert to/from pdf files.
## Prerequirements
- Java 17
- Maven## Build
```
mvn clean package
```## Run
There are several way to run the application.
Compile and run with maven
```
mvn clean compile exec:java "-Dexec.args=$arg1 $arg2 ..." "-Dexec.mainClass=$mainClass"
```Run from the target folder
```
java -cp target/doc-magic-jar-with-dependencies.jar $mainClass $arg1 $arg2 ...
```Run the distribution version
```
java -cp doc-magic.jar $mainClass $arg1 $arg2 ...
```### Pdf2Pngs
```
java -cp doc-magic.jar it.vitalegi.docsmagic.App pdf2png "src/test/resources/Lorem ipsum.pdf"
```### Pngs2Pdf
```
java -cp doc-magic.jar it.vitalegi.docsmagic.App png2pdf src/test/resources "Lorem ipsum Sample.pdf"
```## Contributions
Thanks, but no.
## Bugs
Keep them.
## Support
You are on your own.