Add unit tests for PDF Packager converter functionality
- Implement tests for converter properties, ensuring correct input and output formats. - Add tests for chip parsing, covering various image, pdf_image, and pdfa chip formats. - Include tests for the isArchiveOutput and getOutputFileName functions. - Mock execFile for testing the convert function, verifying command execution and output file creation. - Ensure all chips are parseable and validate the completeness of chip categories.
This commit is contained in:
parent
87bd318303
commit
944fe18b75
11 changed files with 2233 additions and 8 deletions
65
LICENSE-AUTHOR
Normal file
65
LICENSE-AUTHOR
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
# ConvertX-CN Author License
|
||||
|
||||
# Custom Non-Commercial License for Original Components
|
||||
|
||||
Copyright (c) 2024-2026 ConvertX-CN Author (pi-docket)
|
||||
|
||||
## Definitions
|
||||
|
||||
- "Original Components" refers to all code, UI designs, i18n translations,
|
||||
documentation, and features created specifically for ConvertX-CN that are
|
||||
NOT derived from the upstream ConvertX project.
|
||||
- "Commercial Use" includes but is not limited to:
|
||||
- Selling or licensing the software
|
||||
- Using the software as part of a paid SaaS offering
|
||||
- Using the software in a revenue-generating business context
|
||||
- Incorporating the software into a commercial product
|
||||
|
||||
## Grant of Rights
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of the Original Components, to use, copy, modify, and distribute for:
|
||||
|
||||
1. **Personal Use** ✅ - Using for personal, non-commercial purposes
|
||||
2. **Educational Use** ✅ - Using for learning, teaching, or academic research
|
||||
3. **Non-Commercial Research** ✅ - Using for scientific or technical research
|
||||
without commercial intent
|
||||
|
||||
## Restrictions
|
||||
|
||||
The following uses are **PROHIBITED** without explicit written permission:
|
||||
|
||||
1. ❌ Commercial use of any kind
|
||||
2. ❌ SaaS deployment for paying customers
|
||||
3. ❌ Integration into commercial products or services
|
||||
4. ❌ Reselling or sublicensing
|
||||
|
||||
## Commercial Licensing
|
||||
|
||||
If you wish to use the Original Components for commercial purposes, you must
|
||||
obtain a commercial license from the author.
|
||||
|
||||
### Contact for Commercial Licensing
|
||||
|
||||
- **GitHub**: https://github.com/pi-docket
|
||||
- **Issues**: https://github.com/pi-docket/ConvertX-CN/issues
|
||||
- **Discussions**: https://github.com/pi-docket/ConvertX-CN/discussions
|
||||
|
||||
Please open an issue or discussion with the title "[Commercial License Request]"
|
||||
to initiate the licensing process.
|
||||
|
||||
## Disclaimer
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
## Relationship with AGPL-3.0
|
||||
|
||||
This license applies ONLY to the Original Components created by the
|
||||
ConvertX-CN author. All upstream components derived from C4illin/ConvertX
|
||||
remain licensed under GNU AGPL v3.0, and those obligations still apply.
|
||||
Loading…
Add table
Add a link
Reference in a new issue