poppler-glib: fix adding annots in rotated pages

This commit adds support to poppler-glib to
correctly add annotations to pages that are
rotated.

After this commit, annotations added through
Evince will be correctly positioned on rotated
pages (without any code change needed in Evince),
both for normal and 'flagNoRotate' type
annots and also for rotated pages that have a
cropbox set in.

As per PDF spec, annotations in rotated pages
must be saved un-rotated, and the pdf client
will display them rotated according to the
rotation of the page they're in.

Poppler-glib was not un-rotating them when
saving them in core poppler, we now do it
after this change, and poppler-glib will
continue to serve them to apps with page's
rotation applied, through the
poppler_page_get_annot_mapping() API.

No new API has been added or changed as of
this commit.

Evince issue:
https://gitlab.gnome.org/GNOME/evince/-/issues/1385

Poppler issue #256
9 jobs for BUG_write_rotated_annots in 3 minutes and 52 seconds (queued for 1 second)
latest
Status Job ID Name Coverage
  Build
passed #2719928
build

00:03:00

passed #2721416
build_android

00:00:45

passed #2719929
build_clang_libcpp

00:03:07

passed #2719932
build_clazy

00:02:11

passed #2719931
build_mingw64_fedora

00:02:24

passed #2719930
build_ubuntu_16_04

00:01:26

failed #2720185
build_android

00:00:31

failed #2720184
build_android

00:00:33

failed #2719933
build_android

00:00:35