diff --git a/management/__init__.py b/management/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/management/commands/__init__.py b/management/commands/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/management/commands/pdfformfiller_make_images.py b/management/commands/pdfformfiller_make_images.py new file mode 100644 index 0000000..c41060f --- /dev/null +++ b/management/commands/pdfformfiller_make_images.py @@ -0,0 +1,10 @@ +from django.core.management.base import BaseCommand +from pdfformfiller import models + +class Command(BaseCommand): + help = "Regenerate all document page images" + + def handle(self, *args, **options): + for doc in models.Document.objects.all(): + doc.process_pages() +