public class InOutPdfArgs extends Object implements ArgsConfiguration, AutoCloseable
Constructor and Description |
---|
InOutPdfArgs() |
InOutPdfArgs(boolean allowAppend) |
InOutPdfArgs(String metavarIn) |
InOutPdfArgs(String metavarIn,
boolean allowAppend) |
Modifier and Type | Method and Description |
---|---|
void |
addArguments(ArgumentParser parser)
Adds arguments that configure this
ArgsConfiguration to an
ArgumentParser |
void |
close() |
void |
close(boolean success) |
InPdfArgs |
getIn() |
OutPdfArgs |
getOut() |
com.itextpdf.text.pdf.PdfReader |
getPdfReader() |
com.itextpdf.text.pdf.PdfStamper |
getPdfStamper() |
void |
open() |
void |
open(boolean signature) |
void |
open(boolean signature,
char pdfVersion) |
void |
openSignature() |
void |
setFromNamespace(Namespace namespace)
Sets configuration values from a parsed
Namespace |
public InOutPdfArgs()
public InOutPdfArgs(boolean allowAppend)
public InOutPdfArgs(String metavarIn)
public InOutPdfArgs(String metavarIn, boolean allowAppend)
public void addArguments(ArgumentParser parser)
ArgsConfiguration
ArgsConfiguration
to an
ArgumentParser
addArguments
in interface ArgsConfiguration
parser
- argument parser to add arguments topublic void setFromNamespace(Namespace namespace)
ArgsConfiguration
Namespace
setFromNamespace
in interface ArgsConfiguration
namespace
- the namespace with the argument valuespublic void open() throws OperationException
OperationException
public void openSignature() throws OperationException
OperationException
public void open(boolean signature) throws OperationException
OperationException
public void open(boolean signature, char pdfVersion) throws OperationException
OperationException
public com.itextpdf.text.pdf.PdfReader getPdfReader()
public com.itextpdf.text.pdf.PdfStamper getPdfStamper()
public void close() throws OperationException
close
in interface AutoCloseable
OperationException
public void close(boolean success) throws OperationException
OperationException
public OutPdfArgs getOut()
Copyright © 2015–2016 Hobrasoft s.r.o.. All rights reserved.