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.
Callback interface for PDF customization
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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 Details
-
customizeDocument
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.
-