0.40.0 + NEWS
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4e8bcfd..e58a41d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,7 +22,7 @@
 endif()
 
 set(POPPLER_MAJOR_VERSION "0")
-set(POPPLER_MINOR_VERSION "39")
+set(POPPLER_MINOR_VERSION "40")
 set(POPPLER_MICRO_VERSION "0")
 set(POPPLER_VERSION "${POPPLER_MAJOR_VERSION}.${POPPLER_MINOR_VERSION}.${POPPLER_MICRO_VERSION}")
 
diff --git a/NEWS b/NEWS
index ff54720..cbe433d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,21 @@
+Release 0.40.0
+        core:
+         * CairoOutputDev: Use shape mask with soft mask. Bug #91931
+         * TextOutputDev: Handle right-to-left text in search
+         * TextOutputDev: Fix finding Arabic Presentation Forms ligatures
+         * Fix crash in invalid file. Bug #93476
+         * Regression test improvements
+
+        utils:
+         * pdftocairo: fix writing to stdout out with image output
+         * pdftocairo: document that -singlefile appends file type. Bug #86254
+         * pdftocairo: ensure surface flushed before accessing image data
+         * pdftocairo: check for invalid use of options. Bug #92195
+         * pdfunite: Fix typo in manual
+
+        build system:
+         * Improve cmake build system
+
 Release 0.39.0
         core:
          * Ignore the alternateSpace and tintTransform. Bug #92381
diff --git a/configure.ac b/configure.ac
index b2fc6cf..1e34506 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
 m4_define([poppler_version_major],[0])
-m4_define([poppler_version_minor],[39])
+m4_define([poppler_version_minor],[40])
 m4_define([poppler_version_micro],[0])
 m4_define([poppler_version],[poppler_version_major.poppler_version_minor.poppler_version_micro])
 
diff --git a/cpp/Doxyfile b/cpp/Doxyfile
index dee1b4b..a7e1ed1 100644
--- a/cpp/Doxyfile
+++ b/cpp/Doxyfile
@@ -31,7 +31,7 @@
 # This could be handy for archiving the generated documentation or
 # if some version control system is used.
 
-PROJECT_NUMBER         = 0.39.0
+PROJECT_NUMBER         = 0.40.0
 
 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
 # base path where the generated documentation will be put.
diff --git a/qt4/src/Doxyfile b/qt4/src/Doxyfile
index 08d5d57..69d7dd4 100644
--- a/qt4/src/Doxyfile
+++ b/qt4/src/Doxyfile
@@ -31,7 +31,7 @@
 # This could be handy for archiving the generated documentation or
 # if some version control system is used.
 
-PROJECT_NUMBER         = 0.39.0
+PROJECT_NUMBER         = 0.40.0
 
 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
 # base path where the generated documentation will be put.
diff --git a/qt5/src/Doxyfile b/qt5/src/Doxyfile
index 46c85e2..9153847 100644
--- a/qt5/src/Doxyfile
+++ b/qt5/src/Doxyfile
@@ -31,7 +31,7 @@
 # This could be handy for archiving the generated documentation or
 # if some version control system is used.
 
-PROJECT_NUMBER         = 0.39.0
+PROJECT_NUMBER         = 0.40.0
 
 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
 # base path where the generated documentation will be put.