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

TOPIC:

Method AddAnnotPolyline always fails 10 years 2 months ago #9194

  • mzuber23
  • mzuber23's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
Using even the most simple example, if I create an empty page, and then try to add a polyline annotation to it, the method returns false. For example, if I do the following, AddAnnotPolyline returns false:
            Path path = new Path();
            path.MoveTo(10, 10);
            path.LineTo(20, 12);
            path.CurveTo(30, 20, 20, 30, -10, 50);
            path.ClosePath();
            if (!page.AddAnnotPolyline(path, 0, 0, 0xFF000000, 0, 4)) {
                       // Handle error.
            }

AddAnnotInk does not exhibit this problem. I am using the latest beta version, which is 3.5 beta 8. Is this a known issue? As a side note, is it possible to add a quadTo function to the Path class? It's really inconvenient to have to use a cubic bezier for the calculations I'm doing.

Thanks,
Mike

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

Method AddAnnotPolyline always fails 10 years 2 months ago #9207

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
we will check it and get back to you as soon as possible..

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

Method AddAnnotPolyline always fails 10 years 1 month ago #9228

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
it always failed, to add closed path to PolyLine.
for closed path, using Polygon instead.

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

Method AddAnnotPolyline always fails 10 years 1 month ago #9230

  • mzuber23
  • mzuber23's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
I was using a much more complex example in my code, and I think my PDF coordinates were incorrect. Regardless of what happened, I no longer seem to have the error with adding the polyline annotation, so I apologize for the confusion.

Thanks,
Mike

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

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