tdf#156717 Fix "LibreOffice Community" in PDF metadata
These settings are available to set the brand when building LibreOffice:
1) Community flavor: yes / no
This is set via --disable-community-flavor, that defines
HAVE_FEATURE_COMMUNITY_FLAVOR, which is used in cui/source/dialogs/about.cxx.
2) Product name: A string (set via --with-product-name='name')
This defines PRODUCTNAME, which is used in many places in the code.
Not every LibreOffice build is a "LibreOffice Community" flavor. This
patch fixes this issue by using community brand only when variable
HAVE_FEATURE_COMMUNITY_FLAVOR is set.
Change-Id: Ib74450f380fed7c24222f88e389ddb5363bda3c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168676
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Jenkins
(cherry picked from commit 0e2409e5e3c73ec25c61aa4ea140d114869ea512)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168804
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx
index 37b82c5..8029958 100644
--- a/filter/source/pdf/pdfexport.cxx
+++ b/filter/source/pdf/pdfexport.cxx
@@ -515,7 +515,11 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
utl::ConfigManager::getProductName() +
" " +
utl::ConfigManager::getAboutBoxProductVersion() +
" (" + arch + ") / LibreOffice Community";
" (" + arch + ")"
#if HAVE_FEATURE_COMMUNITY_FLAVOR
" / LibreOffice Community"
#endif
;
}
aContext.DocumentInfo.Creator = aCreator;