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

Change background color of page curl

More
9 years 2 months ago #11714 by dancur
How can a user change the background color of the page curl from the default beige to a different color? Even in 3.9, there does not seem to be a place to change this. I've attempted changing the value of m_back / back_color as suggested in this link , but that hasn't changed anything. Similar requests have been made in posts such as this one , but I haven't seen any responses. Thank you for your prompt response.

Daniel
The Washington Post
More
9 years 2 months ago #11715 by Davide
Hi,
in the onCreate method of PDFCurlViewAct you can change
Code:
m_view.setBackgroundColor(color);
as you want.
More
9 years 2 months ago #11716 by dancur
Davide,

Thanks for the quick response. Due to a recent upgrade from a very old legacy version of Radaee, my implementation is based on your PDFViewCurl class, (based on this Knowledge Base link ), with a custom Reader class that implements PDFViewListener. Code snippet is below:
Code:
public void PDFOpen(Document doc, CustomListener listener){ PDFClose(); m_doc = doc; this.listener = listener; PDFViewDual view = new PDFViewCurl(this.getContext()); boolean paras[] = new boolean[m_doc.GetPageCount()]; for (int i = 0; i < paras.length; i++) { paras[i] = false; } view.vSetLayoutPara(null, paras, false, true); m_view = view; m_view.vOpen(m_doc, 4, BACK_COLOR, this); m_view.vResize(getWidth(), getHeight()); }

Setting the background color here doesn't seem to have an effect on the page curl color. Due to specific requirements, I can't use PDFCurlViewAct. Any other way to change that background creme color? I also tried changing the value in
Code:
mCurlBitmap.eraseColor(m_back);

in the PDFViewCurl class, but that didn't help. Thanks.
More
9 years 2 months ago - 9 years 2 months ago #11729 by nermeen
Dear User,

As your request requires a modification in the Jni APIs, we ask you to redirect your request to the support tickets area.

We will be glad to help you there.
Last edit: 9 years 2 months ago by nermeen.
More
9 years 2 months ago #11743 by nermeen
Starting from version 3.10RC2 , You can change the curl back side color using:
Code:
((PDFViewCurl)m_view).setCurlBackSideClr(color);
Time to create page: 0.405 seconds
Powered by Kunena Forum