Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

How to set the custom PDF Text/Background Colour

More
IP: 192.168.0.71 11 years 6 months ago #7120 by viveksoneja
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?
More
IP: 192.168.0.71 11 years 6 months ago #7122 by radaee
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.
Time to create page: 0.395 seconds
Powered by Kunena Forum