mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-02 10:00:17 +05:30
Major new features: • Complete PDF Editor with 10 operations (merge, split, compress, rotate, delete, reorder, watermark, encrypt, decrypt, permissions) • Universal File Converter supporting LibreOffice, ImageMagick, FFmpeg, and Pandoc • Single file and batch folder conversion capabilities • Advanced options for all conversion tools PDF Editor Features: • Merge multiple PDFs into one document • Split PDFs by page ranges, intervals, or file size • Compress PDFs to reduce file size • Rotate pages at 90°, 180°, or 270° • Delete unwanted pages from PDFs • Reorder pages in any custom order • Add text watermarks with customizable position, size, color, and opacity • Password protect PDFs with 128-bit or 256-bit encryption • Remove password protection from PDFs • Set granular document permissions Universal File Converter Features: • LibreOffice: DOCX, PDF, ODT, RTF, TXT, HTML, XLSX, PPTX conversions • ImageMagick: Image format conversions with quality, DPI, resize, compression options • FFmpeg: Video/audio conversions with codec, bitrate, preset, framerate options • Pandoc: Document markup conversions with advanced options • Batch folder processing with recursive subfolder support • 100% offline, open-source, no API keys required Technical Implementation: • Uses pdf-lib v1.17.1 for all PDF operations • Full async/await implementation for optimal performance • Comprehensive error handling and user feedback • Progress indicators for long-running operations • Page range parsing and validation • RGB color conversion for watermarks Files modified: • src/main.js: Added 500+ lines of PDF operation functions and IPC handlers • src/renderer.js: Added 480+ lines of UI event handlers and dialog management • src/index.html: Added 600+ lines of comprehensive UI dialogs • CLAUDE.md: Updated documentation with v1.7.0 features • package.json: Version bump to 1.7.0 🤖 Generated with [Claude Code](https://claude.com/claude-code)
133 lines
3.3 KiB
JSON
133 lines
3.3 KiB
JSON
{
|
|
"name": "pan-converter",
|
|
"version": "1.7.0",
|
|
"description": "Cross-platform Markdown editor and converter using Pandoc",
|
|
"main": "src/main.js",
|
|
"scripts": {
|
|
"start": "electron .",
|
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
"build": "electron-builder",
|
|
"build:win": "cross-env CSC_LINK=code-signing-cert.pfx CSC_KEY_PASSWORD=PanConverter2024! electron-builder --win",
|
|
"build:win-unsigned": "cross-env CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --win",
|
|
"build:mac": "electron-builder --mac",
|
|
"build:linux": "electron-builder --linux",
|
|
"dist": "electron-builder --publish=never",
|
|
"dist:all": "electron-builder -mwl",
|
|
"generate-icons": "node scripts/generate-icons.js"
|
|
},
|
|
"keywords": [
|
|
"markdown",
|
|
"pandoc",
|
|
"converter",
|
|
"editor"
|
|
],
|
|
"author": "Amit Haridas <amit.wh@gmail.com>",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"cross-env": "^10.0.0",
|
|
"electron": "^37.4.0",
|
|
"electron-builder": "^26.0.12",
|
|
"sharp": "^0.34.3"
|
|
},
|
|
"dependencies": {
|
|
"codemirror": "^6.0.2",
|
|
"dompurify": "^3.2.6",
|
|
"electron-store": "^10.1.0",
|
|
"highlight.js": "^11.11.1",
|
|
"marked": "^16.2.1",
|
|
"pdf-lib": "^1.17.1",
|
|
"tslib": "^2.8.1",
|
|
"xlsx": "^0.18.5"
|
|
},
|
|
"build": {
|
|
"appId": "com.panconverter.app",
|
|
"productName": "PanConverter",
|
|
"directories": {
|
|
"output": "dist"
|
|
},
|
|
"icon": "assets/icon",
|
|
"files": [
|
|
"src/**/*",
|
|
"assets/**/*",
|
|
"scripts/**/*",
|
|
"node_modules/**/*",
|
|
"package.json"
|
|
],
|
|
"fileAssociations": [
|
|
{
|
|
"ext": "md",
|
|
"name": "Markdown Document",
|
|
"description": "Markdown Document",
|
|
"mimeType": "text/markdown",
|
|
"role": "Editor"
|
|
},
|
|
{
|
|
"ext": "markdown",
|
|
"name": "Markdown Document",
|
|
"description": "Markdown Document",
|
|
"mimeType": "text/markdown",
|
|
"role": "Editor"
|
|
}
|
|
],
|
|
"mac": {
|
|
"category": "public.app-category.productivity"
|
|
},
|
|
"win": {
|
|
"target": [
|
|
{
|
|
"target": "nsis",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
},
|
|
{
|
|
"target": "portable",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
},
|
|
{
|
|
"target": "zip",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
}
|
|
],
|
|
"artifactName": "${productName}-${version}-${arch}.${ext}",
|
|
"requestedExecutionLevel": "asInvoker",
|
|
"signAndEditExecutable": false
|
|
},
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"perMachine": false,
|
|
"allowToChangeInstallationDirectory": true,
|
|
"displayLanguageSelector": true,
|
|
"createDesktopShortcut": true,
|
|
"createStartMenuShortcut": true,
|
|
"shortcutName": "PanConverter",
|
|
"runAfterFinish": true,
|
|
"menuCategory": "Productivity",
|
|
"license": "LICENSE",
|
|
"warningsAsErrors": false,
|
|
"artifactName": "${productName}-Setup-${version}.${ext}",
|
|
"deleteAppDataOnUninstall": false,
|
|
"differentialPackage": true
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
"deb",
|
|
"AppImage",
|
|
"snap"
|
|
],
|
|
"category": "Utility"
|
|
},
|
|
"deb": {
|
|
"depends": [
|
|
"pandoc"
|
|
],
|
|
"description": "Markdown editor and converter using Pandoc",
|
|
"maintainer": "Amit Haridas <amit.wh@gmail.com>"
|
|
}
|
|
}
|
|
}
|