RadaeePDF.com :: Topic: How to set the custom PDF Text/Background Colour (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: How to set the custom PDF Text/Background Colour

How to set the custom PDF Text/Background Colour 3 years 2 weeks ago #7120

Hi,

I would like to complete theme the PDF's, by setting the custom background and text colour. For example: I would like to render PDF's with blue background and white text, and images being same. Is it possible with current library, if not, can you please provide the support for same?

Also, in dark mode, all the images are getting inverted, we would like to keep the images as of same colour and change the background and text color only, it is possible to achieve the same with current library?
The administrator has disabled public write access.

How to set the custom PDF Text/Background Colour 3 years 2 weeks ago #7122

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
to set background of page you can try:
Bitmap bmp = Bitmap.create...
bmp.erase(0xFF0000FF);
Page.RenderToBmp(bmp,...);

this depends on contents of page, which not fill whole page.

text color can't be set, color values are set in page content stream(command stream).

dark mode: no ideas.
The administrator has disabled public write access.
Powered by Kunena Forum