Class EncryptionSettings
JPedal writes encrypted PDFs with a security handler of revision 6 so the settings here apply to that revision.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanQuery Returns whether document assembly operations are permitted.booleanQuery Returns whether metadata streams will be encrypted.booleanQuery Returns whether text and graphics extraction is permitted.booleanQuery Returns whether existing interactive form fields may be filled in.booleanQuery Returns whether annotations and interactive form fields may be modified.booleanQuery Returns whether modifications other than annotation, form filling, and document assembly are permitted.booleanQuery Returns whether printing the document is permitted.booleanQuery Returns whether high-fidelity printing is permitted.voidsetAssembleDocument(boolean assembleDocument) Set whether document assembly operations are permitted.voidsetEncryptMetadata(boolean encryptMetadata) Indicates whether metadata streams should be encrypted.voidsetExtractTextGraphics(boolean extractTextGraphics) Set whether text and graphics extraction is permitted.voidsetFillForms(boolean fillForms) Set whether existing interactive form fields may be filled in.voidsetModifyAnnotationsForms(boolean modifyAnnotationsForms) Set whether annotations and interactive form fields may be modified.voidsetModifyOther(boolean modifyOther) Set whether modifications other than annotation, form filling, and document assembly are permitted.voidsetPrintDocument(boolean printDocument) Set whether printing the document is permitted.voidsetPrintHighFidelity(boolean printHighFidelity) Set whether high-fidelity printing is permitted.
-
Constructor Details
-
EncryptionSettings
public EncryptionSettings()
-
-
Method Details
-
isEncryptMetadata
public boolean isEncryptMetadata()Query Returns whether metadata streams will be encrypted..Default value:
true- Returns:
- whether metadata streams will be encrypted
-
setEncryptMetadata
public void setEncryptMetadata(boolean encryptMetadata) Indicates whether metadata streams should be encrypted.Default value:
true- Parameters:
encryptMetadata- whether to encrypt metadata streams
-
isPrintDocument
public boolean isPrintDocument()Query Returns whether printing the document is permitted..Printing may still be limited to low-quality output if
isPrintHighFidelity()is not set.Default value:
true- Returns:
- whether printing the document is permitted
-
setPrintDocument
public void setPrintDocument(boolean printDocument) Set whether printing the document is permitted.Printing may still be limited to low-quality output if
isPrintHighFidelity()is not set.Default value:
true- Parameters:
printDocument- whether printing the document is permitted
-
isModifyOther
public boolean isModifyOther()Query Returns whether modifications other than annotation, form filling, and document assembly are permitted..Controlled operations excluded from this setting are
isModifyAnnotationsForms(),isFillForms(), andisAssembleDocument().Default value:
true- Returns:
- whether modifications other than annotation, form filling, and document assembly are permitted
-
setModifyOther
public void setModifyOther(boolean modifyOther) Set whether modifications other than annotation, form filling, and document assembly are permitted.Controlled operations excluded from this setting are
isModifyAnnotationsForms(),isFillForms(), andisAssembleDocument().Default value:
true- Parameters:
modifyOther- whether other document modifications are permitted
-
isExtractTextGraphics
public boolean isExtractTextGraphics()Query Returns whether text and graphics extraction is permitted..Default value:
true- Returns:
- whether text and graphics extraction is permitted
-
setExtractTextGraphics
public void setExtractTextGraphics(boolean extractTextGraphics) Set whether text and graphics extraction is permitted.Default value:
true- Parameters:
extractTextGraphics- whether text and graphics extraction is permitted
-
isModifyAnnotationsForms
public boolean isModifyAnnotationsForms()Query Returns whether annotations and interactive form fields may be modified..If
isModifyOther()is also set, interactive form fields (including signature fields) may additionally be created or modified.Default value:
true- Returns:
- whether annotations and interactive form fields may be modified
-
setModifyAnnotationsForms
public void setModifyAnnotationsForms(boolean modifyAnnotationsForms) Set whether annotations and interactive form fields may be modified.If
isModifyOther()is also set, interactive form fields (including signature fields) may additionally be created or modified.Default value:
true- Parameters:
modifyAnnotationsForms- whether annotation and form modification is permitted
-
isFillForms
public boolean isFillForms()Query Returns whether existing interactive form fields may be filled in..This includes signature fields, even if
isModifyAnnotationsForms()is not set.Default value:
true- Returns:
- whether existing interactive form fields may be filled in
-
setFillForms
public void setFillForms(boolean fillForms) Set whether existing interactive form fields may be filled in.This includes signature fields, even if
isModifyAnnotationsForms()is not set.Default value:
true- Parameters:
fillForms- whether filling existing form fields is permitted
-
isAssembleDocument
public boolean isAssembleDocument()Query Returns whether document assembly operations are permitted..This includes inserting, rotating, or deleting pages, and creating document outline items or thumbnail images, even if
isModifyOther()is not set.Default value:
true- Returns:
- whether document assembly operations are permitted
-
setAssembleDocument
public void setAssembleDocument(boolean assembleDocument) Set whether document assembly operations are permitted.This includes inserting, rotating, or deleting pages, and creating document outline items or thumbnail images, even if
isModifyOther()is not set.Default value:
true- Parameters:
assembleDocument- whether document assembly operations are permitted
-
isPrintHighFidelity
public boolean isPrintHighFidelity()Query Returns whether high-fidelity printing is permitted..When this setting is false and
isPrintDocument()is set, printing is limited to a lower-quality representation of the document.Default value:
true- Returns:
- whether high-fidelity printing is permitted
-
setPrintHighFidelity
public void setPrintHighFidelity(boolean printHighFidelity) Set whether high-fidelity printing is permitted.When this setting is false and
isPrintDocument()is set, printing is limited to a lower-quality representation of the document.Default value:
true- Parameters:
printHighFidelity- whether high-fidelity printing is permitted
-