- Posts: 3
- Thank you received: 0
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
9 years 2 months ago #11714
by dancur
Change background color of page curl was created 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
Daniel
The Washington Post
9 years 2 months ago #11715
by Davide
Replied by Davide on topic Change background color of page curl
Hi,
in the onCreate method of PDFCurlViewAct you can change
as you want.
in the onCreate method of PDFCurlViewAct you can change
Code:
m_view.setBackgroundColor(color);
9 years 2 months ago #11716
by dancur
Replied by dancur on topic Change background color of page curl
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:
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
in the PDFViewCurl class, but that didn't help. Thanks.
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.
9 years 2 months ago - 9 years 2 months ago #11729
by nermeen
Replied by nermeen on topic Change background color of page curl
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.
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.
9 years 2 months ago #11743
by nermeen
Replied by nermeen on topic Change background color of page curl
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