Package com.helger.pdflayout.render
Class PreparationContextGlobal
java.lang.Object
com.helger.pdflayout.render.PreparationContextGlobal
The current global context for preparing an element. This object must be the
same for all prepared elements. It keeps all loaded fonts so that they are
not included more than once.
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionPreparationContextGlobal(org.apache.pdfbox.pdmodel.PDDocument aDoc) Constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pdfbox.pdmodel.PDDocumentgetLoadedFont(FontSpec aFontSpec)
-
Constructor Details
-
PreparationContextGlobal
Constructor- Parameters:
aDoc- ThePDDocumentworked upon
-
-
Method Details
-
getDocument
- Returns:
- The
PDDocumentas provided in the constructor. Nevernull.
-
getLoadedFont
- Throws:
IOException
-