Package com.helger.pdflayout
Interface IPDDocumentCustomizer
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IPDDocumentCustomizer
Callback interface for PDF customization- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default IPDDocumentCustomizerand(IPDDocumentCustomizer aNextCustomizer)Invoke this customizer and afterwards the provided customizer.static IPDDocumentCustomizerand(IPDDocumentCustomizer aCustomizer1, IPDDocumentCustomizer aCustomizer2)Create a customizer that invokes both customizers if they are non-null.voidcustomizeDocument(org.apache.pdfbox.pdmodel.PDDocument aDoc)Customize the passedPDDocument.
-
-
-
Method Detail
-
customizeDocument
void customizeDocument(@Nonnull org.apache.pdfbox.pdmodel.PDDocument aDoc) throws IOException
Customize the passedPDDocument.- Parameters:
aDoc- The document to be customized. Nevernull.- Throws:
IOException- in case something goes wrong
-
and
@Nonnull @CheckReturnValue default IPDDocumentCustomizer and(@Nullable IPDDocumentCustomizer aNextCustomizer)
Invoke this customizer and afterwards the provided customizer.- Parameters:
aNextCustomizer- The customizer to be invoked after this customizer. May benull.- Returns:
- A new, non-
nullcustomizer.
-
and
@Nullable @CheckReturnValue static IPDDocumentCustomizer and(@Nullable IPDDocumentCustomizer aCustomizer1, @Nullable IPDDocumentCustomizer aCustomizer2)
Create a customizer that invokes both customizers if they are non-null.- Parameters:
aCustomizer1- The first customizer to be invoked. May benull.aCustomizer2- The second customizer to be invoked after the first customizer (if present). May benull.- Returns:
nullif both parameters arenull.
-
-