ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 PDF dark mode
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

marek

21 Posts

Posted - Jun 30 2025 :  15:26:58  Show Profile  Reply
Is it possible to define dark mode for pdf?
Just the ability to define the page background and page text color would be helpful.

Greetings,
Marek

xequte

39053 Posts

Posted - Jun 30 2025 :  17:53:06  Show Profile  Reply
Hi Marek

There's not a simple way to do to that with PDFium, you'd need to modify the color of all the text on the page and insert a dark rectangle behind all of the page objects.

Another option would be to apply some effect as the page is shown in the OnDrawCanvas event:

https://www.imageen.com/help/TImageEnView.OnDrawCanvas.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: