Adding shapes through AnnotationManager seems unusable
Hi,
adding a shape annotation via AnnotationManager.addAnnotations doesn't work as expected anymore.
When adding a line for example by passing two coordinates in the inklist. The result is a dot. It will render the desired line when I add the end point twice, but after saving the pdf and reloading, the line turns into a dot again. (Only via the embed api viewer though. A line is rendered, when opened in other pdf viewers)
Similar unexpected behaviour occurs when trying to add shapes like rectangles or ellipses. It's pretty much not possible to add anything without the result being completely wonky.
I believe this is somehow connected to the handdrawn shapes being smoothed out, but when adding a shape by passing a list of coordinates, I don't want those coordinates processed in any way. I expect the exact coordinates I put in the inklist.
Adding an ellipse defined by a list of 32 coordinates now looks like this:

In an earlier version of the embed api, the exact same code resulted in a perfect ellipse.
Is there an undocumentd way to prevent this "smoothing algorithm"?
Thanks,
Andreas
