public class PDFTransformerConfig extends Object
Constructor and Description |
---|
PDFTransformerConfig() |
Modifier and Type | Method and Description |
---|---|
Set<org.apache.pdfbox.cos.COSName> |
getAllowableFilters()
Which filters are allowed
|
List<org.apache.pdfbox.cos.COSName> |
getFilters(org.apache.pdfbox.cos.COSBase existingFilters)
|
long |
getMaxFilteredStreamLength() |
float |
getRandomizeObjectNumbers() |
float |
getRandomizeRefNumbers() |
Transformer |
getStreamTransformer() |
Transformer |
getUnfilteredStreamTransformer() |
void |
setAllowableFilters(Set<org.apache.pdfbox.cos.COSName> allowableFilters) |
void |
setMaxFilteredStreamLength(long maxFilteredStreamLength)
Maximum filtered stream length.
|
void |
setMaxFilters(int maxFilters) |
void |
setMinFilters(int minFilters)
Minimum number of filters to apply to streams.
|
void |
setRandomizeObjectNumbers(float randomizeObjectNumbers) |
void |
setRandomizeRefNumbers(float randomizeRefNumbers) |
void |
setStreamTransformer(Transformer transformer)
This transformer is applied to the stream _after_ each filter has been applied.
|
void |
setUnfilteredStreamTransformer(Transformer transformer)
This transformer is applied to the stream _before_ any filters
are applied.
|
public float getRandomizeObjectNumbers()
public void setRandomizeObjectNumbers(float randomizeObjectNumbers)
randomizeObjectNumbers
- probability that a given object number will be randomized.
If < 0, this will be ignored.public float getRandomizeRefNumbers()
public void setRandomizeRefNumbers(float randomizeRefNumbers)
randomizeRefNumbers
- probability that a given reference number will be randomized.
If < 0, this will be ignored.public Transformer getUnfilteredStreamTransformer()
public void setUnfilteredStreamTransformer(Transformer transformer)
transformer
- public Transformer getStreamTransformer()
public void setStreamTransformer(Transformer transformer)
transformer
- public void setMaxFilters(int maxFilters)
maxFilters
- maximum number of filters to applypublic Set<org.apache.pdfbox.cos.COSName> getAllowableFilters()
public void setAllowableFilters(Set<org.apache.pdfbox.cos.COSName> allowableFilters)
public List<org.apache.pdfbox.cos.COSName> getFilters(org.apache.pdfbox.cos.COSBase existingFilters)
maxFilters
> 0, this will randomly select filters given
the maxFilters
and minFilters
. If maxFilters
< 0,
this will return the existing filters.existingFilters
- public void setMinFilters(int minFilters)
minFilters
- public long getMaxFilteredStreamLength()
public void setMaxFilteredStreamLength(long maxFilteredStreamLength)
maxFilteredStreamLength
- Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.