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

Method AddAnnotPolyline always fails

More
11 years 2 months ago #9194 by mzuber23
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:
Code:
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
More
11 years 2 months ago #9207 by Davide
Hi,
we will check it and get back to you as soon as possible..
More
11 years 2 months ago #9228 by radaee
it always failed, to add closed path to PolyLine.
for closed path, using Polygon instead.
More
11 years 2 months ago - 11 years 2 months ago #9230 by mzuber23
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
Last edit: 11 years 2 months ago by mzuber23.
Time to create page: 0.401 seconds
Powered by Kunena Forum