Fix qt5 found/not found logic
Do not crash in page::removeAnnot if there are non-Ref entries in /Annots
core: Support for rendering annotations with flagNoRotate

Gfx::drawAnnot now makes a counter-rotation if flagNoRotate is set
poppler_qt4viewer: Add combobox to select rotation
core: Remove geometry-related arguments from annotation constructors

Removed arguments from annotation constructors related to the geometry
of the annotation. This change will make it easier to support creating
annotations with flag NoRotate in the next patch (because no special
cases will be needed: coordinate conversion code will be able to always
assume that the underlying annotation object already exists).

Data that used to be taken from these arguments is now replaced by dummy
values, which can be modified using appropriate setter methods after
the annotation object is created.

Affected annotation types:
 - AnnotLine
 - AnnotTextMarkup
 - AnnotPolygon
 - AnnotInk
qt4: FixedRotation annotations' coordinate conversion

FixedRotation(=flagNoRotate) annotations use a different coordinate
system than regular annotations. This patch implements transparent
conversion so that qt4 clients don't notice the difference.

Important! When dealing with FixedRotation annotations, poppler-qt4
clients will need to set geometry-related annotation properties in
the following order:
 1) flags (because we need to know if this is a FixedRotation
    annotation or not)
 2) boundary (because we need to know what the topleft corner is,
    so that we can construct the conversion matrix)
 3) anything else

This requirement will be documented in the next patch
qt4: Some documentation about annotations

* Removed incorrect hint "Use uniqueName to test for Annotation
  equality": uniqueNames are optional and we don't actually guarantee
  uniqueness
* Added "How to add annotations" and "FixedRotation flag specifics"
  sections in the Annotation class page
* Added links from enum Annotation::SubType items to actual subclasses
* Added documentation for annotation flags that are known to work
* Added "see also" links between annotation flag and boundary
  setters/getters
* Added warning on Annotation::setPopup to tell that it's currently not
  implemented
qt4: Free some temporary memory in TextAnnotationPrivate::createNativeAnnot

There's no need to keep this buffer around after it has been flushed
poppler_qt5viewer: Add combobox to select rotation
core: Remove geometry-related arguments from annotation constructors

Removed arguments from annotation constructors related to the geometry
of the annotation. This change will make it easier to support creating
annotations with flag NoRotate in the next patch (because no special
cases will be needed: coordinate conversion code will be able to always
assume that the underlying annotation object already exists).

Data that used to be taken from these arguments is now replaced by dummy
values, which can be modified using appropriate setter methods after
the annotation object is created.

Affected annotation types:
 - AnnotLine
 - AnnotTextMarkup
 - AnnotPolygon
 - AnnotInk
qt5: FixedRotation annotations' coordinate conversion

FixedRotation(=flagNoRotate) annotations use a different coordinate
system than regular annotations. This patch implements transparent
conversion so that qt5 clients don't notice the difference.

Important! When dealing with FixedRotation annotations, poppler-qt5
clients will need to set geometry-related annotation properties in
the following order:
 1) flags (because we need to know if this is a FixedRotation
    annotation or not)
 2) boundary (because we need to know what the topleft corner is,
    so that we can construct the conversion matrix)
 3) anything else

This requirement will be documented in the next patch
qt5: Some documentation about annotations

* Removed incorrect hint "Use uniqueName to test for Annotation
  equality": uniqueNames are optional and we don't actually guarantee
  uniqueness
* Added "How to add annotations" and "FixedRotation flag specifics"
  sections in the Annotation class page
* Added links from enum Annotation::SubType items to actual subclasses
* Added documentation for annotation flags that are known to work
* Added "see also" links between annotation flag and boundary
  setters/getters
* Added warning on Annotation::setPopup to tell that it's currently not
  implemented
qt5: Free some temporary memory in TextAnnotationPrivate::createNativeAnnot

There's no need to keep this buffer around after it has been flushed
Fix crash on malformed doc

Where the Colorants dictionary values are not arrays
Document can be found on KDE bug #319925
annots: do not set the default appearance state when invalidating appearances

We are setting the default appareance state to Off and then we are
updating AS dictionary to NULL in the XRef. The appearance state is only
required when there's more than once appearance stream, but when
invalidating the apperance we remove all streams.
annots: Do not update AP and AS entries if they are not present when invaliding the appaearance stream
annots: Remove unused variable
annots: Invalidate the appearance stream when annot properties change

Make invalidateAppearance() protected and only call it when properties
that affect the appearance stream are updated. Remove all calls to
invalidateAppearance() from qt frontend, this is now handled by the core
and fixes the appearance stream regeneration in the glib frontend too.
Check for NULL in Page::getResourceDictCopy
Update copyrights