tdf#156717 Add minor version / architecture to PDF metadata

Added minor version to PDF producer metadata.
- For stable versions, the producer field looks like:
        LibreOffice 7.5.3.2 (X86_64) / LibreOffice Community
- For development versions, the producer field looks like:
        LibreOfficeDev 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community

Change-Id: I378bb9325d3cda47db9444094eb32965d4e90351
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162734
Tested-by: Hossein <hossein@libreoffice.org>
Reviewed-by: Hossein <hossein@libreoffice.org>
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx
index 70474a7..a73d122 100644
--- a/filter/source/pdf/pdfexport.cxx
+++ b/filter/source/pdf/pdfexport.cxx
@@ -66,6 +66,9 @@

#include <memory>

#include <rtl/bootstrap.hxx>
#include <config_features.h>

using namespace ::com::sun::star;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::uno;
@@ -501,6 +504,9 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >& 

            if (!comphelper::IsFuzzing())
            {
                OUString arch;
                auto const ok = rtl::Bootstrap::get("_ARCH", arch);
                assert(ok); (void) ok;
                // getting the string for the producer
                OUString aProducerOverride = officecfg::Office::Common::Save::Document::GeneratorOverride::get();
                if (!aProducerOverride.isEmpty())
@@ -509,7 +515,8 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >& 
                    aContext.DocumentInfo.Producer =
                        utl::ConfigManager::getProductName() +
                        " " +
                        utl::ConfigManager::getProductVersion();
                        utl::ConfigManager::getAboutBoxProductVersion() +
                        " (" + arch + ") / LibreOffice Community";
            }

            aContext.DocumentInfo.Creator = aCreator;