Annotation Positioning - Incorrect y
coordinate for varying page sizes/orientations
#2596
Labels
y
coordinate for varying page sizes/orientations
#2596
Symptom:
When writing the annotations to a PDF or blob (via
save
orbuildDocument
), they
coordinate is being resolved as thecurrentPage.height
-y
. ThecurrentPage
however is not actually the page the annotation should be on. It appears to be the last page modified.https://github.com/MrRio/jsPDF/blob/f4fa8862a9041e0b6c5fadee45e25b45efba6be7/src/jspdf.js#L4187-L4190
Reproducing:
The annotation will be against the left hand edge [x 0], down from the top [y 87].
My current fix (because I only have one annotation to write), is to explicitly
setPage
to the page with the annotation before saving.The text was updated successfully, but these errors were encountered: