public class PDDocumentWriter extends Object implements Closeable
PDDocument. This component provides methods to write a PDDocument to a
CountingWritableByteChannel.| Constructor and Description |
|---|
PDDocumentWriter(org.sejda.io.CountingWritableByteChannel channel,
Optional<EncryptionContext> encryptionContext,
WriteOption... options) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(PDDocument document)
Writes the
PDDocument. |
public PDDocumentWriter(org.sejda.io.CountingWritableByteChannel channel,
Optional<EncryptionContext> encryptionContext,
WriteOption... options)
public void write(PDDocument document) throws IOException
PDDocument.document - IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2020 sejda. All rights reserved.