Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

commit for feature developing invert-replace color of a pdf for stirl…

Open Hashim0510 opened this issue 1 year ago • 1 comments

Based on the discussion, I have developed the three varieties of functionality to replace text and background colors of a pdf and invert full colors of pdf.

I have created a replace-invert-color API to process the PDF. There are totally 3 options given for user. Please take a look at the image for understanding.

image

  1. Default high contrast color ---> user will have a default list of standard colors for background and text as discussed before. Please take a look at the image for understanding. hight-contrast-UI

  2. Custom Color ---> user will have option to provide custom colors for text and background Please take a look at the image for understanding.

custom-color-UI

  1. Full invert --->> user can be able to invert the full colors of pdf Please take a look at the image for understanding.

full-invert-UI

I did all corner case manual tests for all three options. I am attaching the pdf outputs with this.

Input PDF for all options: test_document_complex-2.pdf

output for high contrast option: high-contrast-color-output.pdf

output for custom color option: custom-color-replace-output.pdf

output for full inversion: full-invert-output.pdf

Hashim0510 avatar Oct 02 '24 22:10 Hashim0510

🚀 Translation Verification Summary

📋 Checking with the file messages_en_GB.properties from the pr-branch - Checking the pr-branch

🗂️ Checking File: messages_en_US.properties...

  • Test 1 Status: ❌ Failed
    • Issue: Too many lines! Check your translation files! Details: 1179 (reference) vs 1183 (current).
  • Test 2 Status: ✅ Passed

❌ Overall Check Status: Failed

github-actions[bot] avatar Oct 02 '24 22:10 github-actions[bot]