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

TOPIC:

Calculating rect size for AddAnnotEditbox 8 years 8 months ago #9376

  • artkön
  • artkön's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Hi, I would like to display a text in an editbox annotation as one-liner.
How can I calculate the proper bounding box for the method AddAnnotEditbox?

Is there any function for calculating text sizes in PDF coordinate system?

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

Last edit: by artkön.

Calculating rect size for AddAnnotEditbox 8 years 8 months ago #9392

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
sorry for the delay, there are no direct API to do this.
I suggest you to look at Android method getTextBounds and to use this to handle the rect of the AddAnnotEditbox method.

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

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