Class DefaultWriteStrategy
- java.lang.Object
-
- org.apache.camel.component.pdf.text.DefaultWriteStrategy
-
- All Implemented Interfaces:
WriteStrategy
public class DefaultWriteStrategy extends Object implements WriteStrategy
Writes given lines to PDF document. If document already contains some text then new text will be appended to new page.
-
-
Constructor Summary
Constructors Constructor Description DefaultWriteStrategy(PdfConfiguration pdfConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.pdfbox.pdmodel.PDDocument
write(Collection<String> lines, org.apache.pdfbox.pdmodel.PDDocument document)
-
-
-
Constructor Detail
-
DefaultWriteStrategy
public DefaultWriteStrategy(PdfConfiguration pdfConfiguration)
-
-
Method Detail
-
write
public org.apache.pdfbox.pdmodel.PDDocument write(Collection<String> lines, org.apache.pdfbox.pdmodel.PDDocument document) throws IOException
- Specified by:
write
in interfaceWriteStrategy
- Throws:
IOException
-
-