Package com.itextpdf.forms.xfdf
Class IdsObject
java.lang.Object
com.itextpdf.forms.xfdf.IdsObject
Represents ids element, child of the xfdf element. Corresponds to the ID key in the file dictionary. The two attributes are file identifiers for the source or target file designated by the f element, taken from the ID entry in the file’s trailer dictionary. Attributes: original, modified. For more details see paragraph 6.2.3 in Xfdf document specification.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the string value of the unique identifier for the modified version of the pdf and corresponding xfdf document.Gets the string value of the permanent identifier which is based on the contents of the file at the time it was originally created.setModified
(String modified) Sets the string value of the unique identifier for the modified version of the pdf and corresponding xfdf document.setOriginal
(String original) Sets the string value of the permanent identifier which is based on the contents of the file at the time it was originally created.
-
Constructor Details
-
IdsObject
public IdsObject()Creates an instance ofIdsObject
.
-
-
Method Details
-
getOriginal
Gets the string value of the permanent identifier which is based on the contents of the file at the time it was originally created. This value does not change when the file is incrementally updated. The value shall be a hexadecimal number.- Returns:
- the permanent identifier value.
-
setOriginal
Sets the string value of the permanent identifier which is based on the contents of the file at the time it was originally created. This value does not change when the file is incrementally updated. The value shall be a hexadecimal number. A common value for this is an MD5 checksum.- Parameters:
-
original
- the permanent identifier value - Returns:
-
current
ids object
.
-
getModified
Gets the string value of the unique identifier for the modified version of the pdf and corresponding xfdf document. The modified attribute corresponds to the changing identifier that is based on the file's contents at the time it was last updated. The value shall be a hexadecimal number.- Returns:
- the unique identifier value.
-
setModified
Sets the string value of the unique identifier for the modified version of the pdf and corresponding xfdf document. The modified attribute corresponds to the changing identifier that is based on the file's contents at the time it was last updated. The value shall be a hexadecimal number. A common value for this is an MD5 checksum.- Parameters:
-
modified
- the unique identifier value - Returns:
-
current
ids object
.
-