Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


Hi,

there is a new option inside the code of the pdfexport of LO/OOo, which sets a 
watermark on the exported document. This watermark is currently red. This is a bit 
uggly and I think a light green matches better to LO. So I created a patch with this 
color change.

Regards,
Andreas
-- 
## Developer LibreOffice
## Freie Office-Suite für Linux, Mac, Windows
## http://LibreOffice.org
## Support the Document Foundation (http://documentfoundation.org)
## Meine Seite: http://www.amantke.de 
From 1c7036ab40a675a51e29d18ecb73ba26b4d6847b Mon Sep 17 00:00:00 2001
From: Andreas Mantke <maand@gmx.de>
Date: Mon, 20 Dec 2010 22:02:31 +0100
Subject: [PATCH] A change in the color of the watermark

---
 filter/source/pdf/pdfexport.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx
index 65abedc..28d8e2b 100644
--- a/filter/source/pdf/pdfexport.cxx
+++ b/filter/source/pdf/pdfexport.cxx
@@ -1005,7 +1005,7 @@ void PDFExport::ImplWriteWatermark( PDFWriter& rWriter, const Size& rPageSize 
)
     rWriter.Push( PUSH_ALL );
     rWriter.SetMapMode( MapMode( MAP_POINT ) );
     rWriter.SetFont( aFont );
-    rWriter.SetTextColor( COL_RED );
+    rWriter.SetTextColor( COL_LIGHTGREEN );
     Point aTextPoint;
     Rectangle aTextRect;
     if( rPageSize.Width() > rPageSize.Height() )
-- 
1.7.1


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.