KrishVij opened a new pull request, #303: URL: https://github.com/apache/pdfbox/pull/303
### PDFBOX-3.6: Add ChangeTextColor example This pull request adds a new example class **`ChangeTextColor`** to the PDFBox examples module (`org.apache.pdfbox.examples.pdmodel`). The example demonstrates how to modify the **text color** in an existing PDF by parsing its content streams, identifying text sections, and injecting RGB color operators (`rg` and `RG`) immediately after the `BT` (Begin Text) operator. --- #### πWhat the example shows - Shows how to use **`PDFStreamParser`** to access and modify PDF operators. - Demonstrates rebuilding content streams with **`ContentStreamWriter`**. - Converts standard RGB values (0β255) into PDF-compatible color space (0.0β1.0). - Uses only public PDFBox API classes β no private/internal APIs. Before: <img width="961" height="519" alt="Screenshot 2025-10-30 220526" src="https://github.com/user-attachments/assets/72e740b3-7704-430e-877a-9f9ee38f1b06" /> After: <img width="928" height="509" alt="Screenshot 2025-10-30 220700" src="https://github.com/user-attachments/assets/4b67b836-acb7-4243-a4f8-9e67e9968778" /> PS: Both are screenshot of a resume of mine --- -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
