From: <tic...@us...> - 2007-09-12 12:58:08
|
Revision: 807 http://geonetwork.svn.sourceforge.net/geonetwork/?rev=807&view=rev Author: ticheler Date: 2007-09-12 05:58:01 -0700 (Wed, 12 Sep 2007) Log Message: ----------- Small changes to PDF content. Modified Paths: -------------- trunk/src/org/wfp/vam/intermap/services/export/ExportPDF.java Modified: trunk/src/org/wfp/vam/intermap/services/export/ExportPDF.java =================================================================== --- trunk/src/org/wfp/vam/intermap/services/export/ExportPDF.java 2007-09-10 15:07:53 UTC (rev 806) +++ trunk/src/org/wfp/vam/intermap/services/export/ExportPDF.java 2007-09-12 12:58:01 UTC (rev 807) @@ -62,9 +62,9 @@ File pdfFile = GlobalTempFiles.getInstance().getFile(".pdf"); PdfWriter pw = PdfWriter.getInstance(document, new FileOutputStream(pdfFile)); - document.addTitle(title!=null? title: "Geonetwork Map"); + document.addTitle(title!=null? title: "GeoNetwork opensource Map"); document.addSubject(""); - document.addCreator("Geonetwork Intermap"); + document.addCreator("GeoNetwork opensource map viewer"); document.addCreationDate(); document.addAuthor("ETj"); document.addProducer(); @@ -175,7 +175,7 @@ private String getKeywords(MapMerger mm) { - StringBuffer sb = new StringBuffer("Geonetwork, Intermap"); + StringBuffer sb = new StringBuffer("GeoNetwork opensource, OSGeo"); for (int layerRank = 0; layerRank < mm.size(); layerRank++) { @@ -295,6 +295,9 @@ public void onEndPage(PdfWriter writer, Document document) { + boolean showWaterMark = false; + if(showWaterMark) + { // Draw watermark PdfContentByte contentunder = writer.getDirectContent(); contentunder.saveState(); @@ -308,6 +311,7 @@ document.getPageSize().getHeight() / 2, 45); contentunder.endText(); contentunder.restoreState(); + } // Draw footer PdfContentByte cb = writer.getDirectContent(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |