Detailed description of issue
Flip Annotations horizontally and vertically is what I expect from Pdfjs-Express. Its a very high priority feature for us. Infact many of us who’s here from AutoCad. So I would expect this feature ASAP if possible. Or else a work-around for this.
Expected behaviour
User will select all those annotations which he/she wants to flip it either vertically or horizontally. Annotations should get flipped at their place.
Code snippet
A work-around would be helpful if any with code snippet.
Thanks for this feature, but annotations aren’t getting saved by triggering annotationsChanged (modify) call. They are getting flipped but doesn’t get saved. Even though I have used - this.viewerInstance.annotManager.trigger('annotationChanged', [[annot], 'modify', {}]);
I can’t reproduce your issue. The flipped annotations are getting exported correctly.
Here is the code I used to test. When button b1 is clicked, the annotation is exported, then removed, then re-added 1 second later. When it is re-added, you can see that it is flipped.
Actually we have annotationChanged event - this.viewerInstance.annotManager.on('annotationChanged', (annotations, action, {imported,isUndoRedo}) => {});
After flipping annotation, it should trigger annotationChanged event so that our all actions during export should be in sequence. Is it possible to invoke annotationChanged event for modify call after flipping?