Jelajahi Sumber

[#1] Force global dark text colors and optimize PDF structures to resolve Acrobat save prompts

Lange François 3 minggu lalu
induk
melakukan
48f2fff53e
31 mengubah file dengan 25 tambahan dan 15 penghapusan
  1. TEMPAT SAMPAH
      Project.pdf
  2. TEMPAT SAMPAH
      Retro Planning.pdf
  3. TEMPAT SAMPAH
      delivery.zip
  4. TEMPAT SAMPAH
      docs/Backup_Procedure.pdf
  5. TEMPAT SAMPAH
      docs/Data_Ingestion.pdf
  6. TEMPAT SAMPAH
      docs/Final_Report.pdf
  7. TEMPAT SAMPAH
      docs/Installation_Guide.pdf
  8. TEMPAT SAMPAH
      docs/Operator_Installation_Guide.pdf
  9. TEMPAT SAMPAH
      docs/Scrum_Artifacts.pdf
  10. TEMPAT SAMPAH
      docs/Scrum_Daily.pdf
  11. TEMPAT SAMPAH
      docs/Scrum_Plan.pdf
  12. TEMPAT SAMPAH
      docs/Scrum_Retro.pdf
  13. TEMPAT SAMPAH
      docs/Scrum_Review.pdf
  14. TEMPAT SAMPAH
      docs/Scrum_Wiki.pdf
  15. TEMPAT SAMPAH
      docs/Start_Stop_Procedures.pdf
  16. TEMPAT SAMPAH
      docs/Technical_Document.pdf
  17. TEMPAT SAMPAH
      docs/Test_Cases_Sprint8.pdf
  18. TEMPAT SAMPAH
      docs/URL_Formats.pdf
  19. TEMPAT SAMPAH
      docs/User_Description.pdf
  20. TEMPAT SAMPAH
      docs/User_Guide.pdf
  21. TEMPAT SAMPAH
      docs/WSL_Deployment.pdf
  22. TEMPAT SAMPAH
      docs/Wiki_Home.pdf
  23. TEMPAT SAMPAH
      docs/architecture.pdf
  24. TEMPAT SAMPAH
      docs/disaster_recovery_plan.pdf
  25. TEMPAT SAMPAH
      docs/distributed_deployment.pdf
  26. TEMPAT SAMPAH
      docs/docker_connection.pdf
  27. TEMPAT SAMPAH
      docs/project_report.pdf
  28. TEMPAT SAMPAH
      docs/retro_planning.pdf
  29. TEMPAT SAMPAH
      docs/taiga_audit_report.pdf
  30. TEMPAT SAMPAH
      docs/zabbix_monitoring.pdf
  31. 25 15
      scripts/generate_pdfs.py

TEMPAT SAMPAH
Project.pdf


TEMPAT SAMPAH
Retro Planning.pdf


TEMPAT SAMPAH
delivery.zip


TEMPAT SAMPAH
docs/Backup_Procedure.pdf


TEMPAT SAMPAH
docs/Data_Ingestion.pdf


TEMPAT SAMPAH
docs/Final_Report.pdf


TEMPAT SAMPAH
docs/Installation_Guide.pdf


TEMPAT SAMPAH
docs/Operator_Installation_Guide.pdf


TEMPAT SAMPAH
docs/Scrum_Artifacts.pdf


TEMPAT SAMPAH
docs/Scrum_Daily.pdf


TEMPAT SAMPAH
docs/Scrum_Plan.pdf


TEMPAT SAMPAH
docs/Scrum_Retro.pdf


TEMPAT SAMPAH
docs/Scrum_Review.pdf


TEMPAT SAMPAH
docs/Scrum_Wiki.pdf


TEMPAT SAMPAH
docs/Start_Stop_Procedures.pdf


TEMPAT SAMPAH
docs/Technical_Document.pdf


TEMPAT SAMPAH
docs/Test_Cases_Sprint8.pdf


TEMPAT SAMPAH
docs/URL_Formats.pdf


TEMPAT SAMPAH
docs/User_Description.pdf


TEMPAT SAMPAH
docs/User_Guide.pdf


TEMPAT SAMPAH
docs/WSL_Deployment.pdf


TEMPAT SAMPAH
docs/Wiki_Home.pdf


TEMPAT SAMPAH
docs/architecture.pdf


TEMPAT SAMPAH
docs/disaster_recovery_plan.pdf


TEMPAT SAMPAH
docs/distributed_deployment.pdf


TEMPAT SAMPAH
docs/docker_connection.pdf


TEMPAT SAMPAH
docs/project_report.pdf


TEMPAT SAMPAH
docs/retro_planning.pdf


TEMPAT SAMPAH
docs/taiga_audit_report.pdf


TEMPAT SAMPAH
docs/zabbix_monitoring.pdf


+ 25 - 15
scripts/generate_pdfs.py

@@ -32,26 +32,36 @@ def main():
         font-family: 'RobotoMono';
         src: url('{mono_font}');
     }}
+    * {{
+        color: #1a1a1a !important;
+    }}
     body {{
         font-family: 'Roboto', sans-serif;
-        color: #1a1a1a;
-        background-color: #ffffff;
+        color: #1a1a1a !important;
+        background-color: #ffffff !important;
+    }}
+    h1, h2, h3, h4, h5, h6, h1 *, h2 *, h3 *, h4 *, h5 *, h6 * {{
+        color: #000000 !important;
+    }}
+    code, pre, code *, pre * {{
+        font-family: 'RobotoMono', monospace !important;
+        color: #b02a37 !important;
+        background-color: #f8f9fa !important;
     }}
-    h1, h2, h3, h4, h5, h6 {{
-        color: #000000;
+    a, a * {{
+        color: #0d6efd !important;
     }}
-    code, pre {{
-        font-family: 'RobotoMono', monospace;
-        color: #b02a37;
-        background-color: #f8f9fa;
+    blockquote, blockquote * {{
+        color: #555555 !important;
+        border-left: 4px solid #ccc !important;
+        padding-left: 10px !important;
     }}
-    a {{
-        color: #0d6efd;
+    table, tr, td, th, table * {{
+        color: #1a1a1a !important;
+        border-color: #cccccc !important;
     }}
-    blockquote {{
-        color: #555555;
-        border-left: 4px solid #ccc;
-        padding-left: 10px;
+    th {{
+        background-color: #f2f2f2 !important;
     }}
     """
 
@@ -80,7 +90,7 @@ def main():
         md_content = md_content.replace('$Id$', git_id)
         
         try:
-            pdf = MarkdownPdf(toc_level=2)
+            pdf = MarkdownPdf(toc_level=2, optimize=True)
             base_name = os.path.basename(md_file)
             
             if base_name == 'project_report.md':