Package org.mapfish.print.config
Class PDFConfig
java.lang.Object
org.mapfish.print.config.PDFConfig
- All Implemented Interfaces:
ConfigurationObject
A Configuration object for containing metadata that will be embedded in the PDF and parameters to
use when encoding the PDF.
Naturally this only applies to reports that are exported as PDFs. [[examples=config_aliases_defaults,verboseExample]]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTitle()
boolean
void
Set the author of the PDF.void
setCompressed
(boolean compressed) If this property is set to true then the resulting PDF will be a compressed PDF.void
setCreator
(String creator) Set the creator of the PDF.void
setKeywords
(List<String> keywords) The keywords to include in the PDF metadata.void
setSubject
(String subject) Set the subject of the PDF.void
Set the title of the PDF.void
validate
(List<Throwable> validationErrors, Configuration configuration) validate that the configuration was correct.
-
Constructor Details
-
PDFConfig
public PDFConfig()
-
-
Method Details
-
validate
Description copied from interface:ConfigurationObject
validate that the configuration was correct.- Specified by:
validate
in interfaceConfigurationObject
- Parameters:
validationErrors
- a list to add any detected errors to.configuration
- the containing configuration
-
isCompressed
public boolean isCompressed() -
setCompressed
public void setCompressed(boolean compressed) If this property is set to true then the resulting PDF will be a compressed PDF. By default the PDF is not compressed.- Parameters:
compressed
- if the pdf should be compressed.
-
getTitle
-
setTitle
Set the title of the PDF.- Parameters:
title
- the title of the PDF.
-
getAuthor
-
setAuthor
Set the author of the PDF.- Parameters:
author
- the author of the PDF.
-
getSubject
-
setSubject
Set the subject of the PDF.- Parameters:
subject
- the subject of the PDF.
-
getKeywordsAsString
-
setKeywords
The keywords to include in the PDF metadata.- Parameters:
keywords
- the keywords of the PDF.
-
getCreator
-
setCreator
Set the creator of the PDF.- Parameters:
creator
- the creator of the PDF.
-