| Constructor and Description |
|---|
PageMarginsFilter(Integer leftMargin,
Integer topMargin,
Integer rightMargin,
Integer bottomMargin)
Creates a new filter that will set the margins of the document.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doFilter(org.jodconverter.office.OfficeContext context,
com.sun.star.lang.XComponent document,
FilterChain chain)
The
doFilter method of the Filter is called each time a document is passed through
the chain due to a conversion request. |
public PageMarginsFilter(Integer leftMargin, Integer topMargin, Integer rightMargin, Integer bottomMargin)
leftMargin - The left margin (millimeters), may be null. If null, the left margin does not
change.topMargin - The top margin (millimeters), may be null. If null, the top margin does not
change.rightMargin - The right margin (millimeters), may be null. If null, the right margin does
not change.bottomMargin - The bottom margin (millimeters), may be null. If null, the bottom margin
does not change.public void doFilter(org.jodconverter.office.OfficeContext context,
com.sun.star.lang.XComponent document,
FilterChain chain)
throws Exception
FilterdoFilter method of the Filter is called each time a document is passed through
the chain due to a conversion request. The FilterChain passed in to this method allows the
Filter to pass on the document to the next entity in the chain.
A typical implementation of this method would either invoke the next filter
in the chain using the FilterChain object (chain.doFilter()), or
not pass on the document to the next filter in the filter chain to block the conversion
processing.