@@ -64,7 +64,7 @@ public class WriterProperties implements Serializable {
64
64
protected boolean smartMode ;
65
65
protected boolean debugMode ;
66
66
protected boolean addXmpMetadata ;
67
- protected boolean pdfUA ;
67
+ protected boolean addUAXmpMetadata ;
68
68
protected PdfVersion pdfVersion ;
69
69
protected EncryptionProperties encryptionProperties ;
70
70
/**
@@ -80,7 +80,7 @@ public class WriterProperties implements Serializable {
80
80
public WriterProperties () {
81
81
smartMode = false ;
82
82
debugMode = false ;
83
- pdfUA = false ;
83
+ addUAXmpMetadata = false ;
84
84
compressionLevel = CompressionConstants .DEFAULT_COMPRESSION ;
85
85
isFullCompression = null ;
86
86
encryptionProperties = new EncryptionProperties ();
@@ -128,7 +128,7 @@ public WriterProperties addXmpMetadata() {
128
128
* Defines the level of compression for the document.
129
129
* See {@link CompressionConstants}
130
130
*
131
- * @param compressionLevel
131
+ * @param compressionLevel {@link CompressionConstants} value.
132
132
* @return this {@code WriterProperties} instance
133
133
*/
134
134
public WriterProperties setCompressionLevel (int compressionLevel ) {
@@ -238,14 +238,15 @@ public WriterProperties useDebugMode() {
238
238
239
239
/**
240
240
* This method marks the document as PDF/UA and sets related flags is XMPMetaData.
241
+ * This method calls {@link #addXmpMetadata()} implicitly.
241
242
* NOTE: iText does not validate PDF/UA, which means we don't check if created PDF meets all PDF/UA requirements.
242
243
* Don't use this method if you are not familiar with PDF/UA specification in order to avoid creation of non-conformant PDF/UA file.
243
244
*
244
245
* @return this {@code WriterProperties} instance
245
246
*/
246
- public WriterProperties setPdfUA () {
247
- this .pdfUA = true ;
248
- return this ;
247
+ public WriterProperties addUAXmpMetadata () {
248
+ this .addUAXmpMetadata = true ;
249
+ return addXmpMetadata () ;
249
250
}
250
251
251
252
boolean isStandardEncryptionUsed () {
0 commit comments