Gradient color change for typing [Question]

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Post Reply
MedBooster
User
Posts: 1372
Joined: Mon Nov 15, 2021 8:38 pm

Gradient color change for typing [Question]

Post by MedBooster »

Is there a way to achieve this?

Not necessarily rainbow colored (random or ROYGBIV order), which would be cool though....

But maybe a gradient, like you start with a dark red color end end up with a light red color or orange

or would you have to do this with JavaScript?

And would you be able to apply this gradient evenly, or only per letter?

I guess you could perhaps use some gradient image and use the right blend settings to get this gradient effect...

or are blend modes only for shapes like rectangles with their SINGLE stroke color?
My wishlist https://forum.pdf-xchange.com/viewtopic.php?p=187394#p187394
Disable SPACE page navigation, fix kb shortcut for highlighting advanced search tool search field, bookmarks with numbers, toolbar small icon size, AltGr/Ctrl+Alt keyboard issues
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 10921
Joined: Wed Jan 03, 2018 6:52 pm

Re: Gradient color change for typing [Question]

Post by Daniel - PDF-XChange »

Hello, MedBooster

While blend modes can be applied to various content types, including text and images, achieving a gradient, even with them, would be difficult and rather restrictive to your content configuration.
In practice, the only way to achieve this I could see was the multiply blend mode, used with a black page background, and white text. If you place a "gradient" image overtop with multiply enabled on it, the gradient color is applied to the text.

Beyond that, I do not believe the spec allows for gradient colors to be defined in any standard color selector area (base content text, shapes, or most comments). In effect, the only gradients possible would likely be image based solutions.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Post Reply