Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -590,3 +590,4 @@ FodyWeavers.xsd
/build
/.flatpak-builder
*.traineddata
.claude/
Empty file modified assets/backend_mac/LocalPDF_Studio_api.deps.json
100644 → 100755
Empty file.
Empty file modified assets/backend_mac/LocalPDF_Studio_api.dll
100644 → 100755
Empty file.
Empty file modified assets/backend_mac/LocalPDF_Studio_api.runtimeconfig.json
100644 → 100755
Empty file.
Empty file.
Empty file modified assets/backend_mac/PdfSharp.BarCodes.dll
100644 → 100755
Empty file.
Empty file modified assets/backend_mac/PdfSharp.Charting.dll
100644 → 100755
Empty file.
Empty file modified assets/backend_mac/PdfSharp.Cryptography.dll
100644 → 100755
Empty file.
Empty file modified assets/backend_mac/PdfSharp.Quality.dll
100644 → 100755
Empty file.
Empty file modified assets/backend_mac/PdfSharp.Shared.dll
100644 → 100755
Empty file.
Empty file modified assets/backend_mac/PdfSharp.Snippets.dll
100644 → 100755
Empty file.
Empty file modified assets/backend_mac/PdfSharp.System.dll
100644 → 100755
Empty file.
Empty file modified assets/backend_mac/PdfSharp.WPFonts.dll
100644 → 100755
Empty file.
Empty file modified assets/backend_mac/PdfSharp.dll
100644 → 100755
Empty file.
Empty file modified assets/backend_mac/appsettings.Development.json
100644 → 100755
Empty file.
Empty file modified assets/backend_mac/appsettings.json
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions scripts/localpdf_studio_python/localpdf_studio_python.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# localpdf_studio_python.py
# Single entry point for all LocalPDF Studio Python features.
# Usage: localpdf_studio_python <command> [args...]
# Commands: watermark, extract_images, convert_pdf_images, grayscale, redact
# Commands: watermark, extract_images, convert_pdf_images, grayscale, redact, pdf_to_markdown

import sys
import json


def main():
if len(sys.argv) < 2:
print(json.dumps({"success": False, "error": "No command specified. Available: watermark, extract_images, convert_pdf_images, grayscale, redact"}))
print(json.dumps({"success": False, "error": "No command specified. Available: watermark, extract_images, convert_pdf_images, grayscale, redact, pdf_to_markdown"}))
sys.exit(1)

command = sys.argv[1]
Expand All @@ -31,8 +31,11 @@ def main():
elif command == "redact":
from redact_pdf import main as _main
_main()
elif command == "pdf_to_markdown":
from pdf_to_markdown import main as _main
_main()
else:
print(json.dumps({"success": False, "error": f"Unknown command: '{command}'. Available: watermark, extract_images, convert_pdf_images, grayscale, redact"}))
print(json.dumps({"success": False, "error": f"Unknown command: '{command}'. Available: watermark, extract_images, convert_pdf_images, grayscale, redact, pdf_to_markdown"}))
sys.exit(1)


Expand Down Expand Up @@ -810,4 +813,4 @@ def _make_module(name, main_func):


if __name__ == "__main__":
main()
main()
Loading