Change background color of page curl - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Change background color of page curl

Change background color of page curl 1 year 11 months ago #11714

  • dancur
  • dancur's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Change background color of page curl 1 year 11 months ago #11715

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 18
  • Thank you received: 65
Hi,
in the onCreate method of PDFCurlViewAct you can change
m_view.setBackgroundColor(color);
as you want.

Please Log in or Create an account to join the conversation.

Change background color of page curl 1 year 11 months ago #11716

  • dancur
  • dancur's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
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:
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
mCurlBitmap.eraseColor(m_back);

in the PDFViewCurl class, but that didn't help. Thanks.

Please Log in or Create an account to join the conversation.

Change background color of page curl 1 year 11 months ago #11729

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
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.

Please Log in or Create an account to join the conversation.

Last edit: by nermeen.

Change background color of page curl 1 year 11 months ago #11743

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
Starting from version 3.10RC2 , You can change the curl back side color using:
((PDFViewCurl)m_view).setCurlBackSideClr(color);

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum