Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Render rect drawn by code 8 years 10 months ago #9067

  • ahmbar
  • ahmbar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
When i try to draw rectangle by code it does not show in the screen until the user touch the PDF then it is render the new rectangle.

How to draw the rectangle without the need for user to touch the screen ?

My code for draw URI rect inside PDFReader class:
PDFVPage vpage = m_view.vGetPage(pageno);
		if (vpage != null) {
			Page page = vpage.GetPage();
			if (page != null) {

				page.AddAnnotURI(rect,tag);

			} else {
				Log.d("PDF", "page is null ");
			}
			m_view.vRenderSync(vpage);

		}

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

Render rect drawn by code 8 years 10 months ago #9068

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
try to call:
invalidate();
The following user(s) said Thank You: ahmbar

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

Render rect drawn by code 8 years 10 months ago #9125

  • ahmbar
  • ahmbar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
*Fixed it was not rendering due to bug in the time when call the draw method

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

Last edit: by ahmbar.
  • Page:
  • 1
Powered by Kunena Forum