java.lang.Object
org.sejda.sambox.output.PDDocumentWriter
- All Implemented Interfaces:
Closeable,AutoCloseable
Writer for a
PDDocument. This component provides methods to write a PDDocument to a
CountingWritableByteChannel.- Author:
- Andrea Vacondio
-
Constructor Summary
ConstructorsConstructorDescriptionPDDocumentWriter(org.sejda.io.CountingWritableByteChannel channel, Optional<EncryptionContext> encryptionContext, WriteOption... options) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidwrite(PDDocument document) Writes thePDDocument.
-
Constructor Details
-
PDDocumentWriter
public PDDocumentWriter(org.sejda.io.CountingWritableByteChannel channel, Optional<EncryptionContext> encryptionContext, WriteOption... options)
-
-
Method Details
-
write
Writes thePDDocument.- Parameters:
document-- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-