@@ -547,7 +547,7 @@ def valid?
547547 return false unless color_mode_validator . valid? ( @color_mode )
548548 numeral_format_validator = EnumAttributeValidator . new ( 'String' , [ "European" , "ArabicIndic" , "EasternArabicIndic" , "Context" , "System" ] )
549549 return false unless numeral_format_validator . valid? ( @numeral_format )
550- compliance_validator = EnumAttributeValidator . new ( 'String' , [ "Pdf17" , "Pdf20" , "PdfA1a" , "PdfA1b" , "PdfA2a" , "PdfA2u" , "PdfA4" , "PdfUa1" ] )
550+ compliance_validator = EnumAttributeValidator . new ( 'String' , [ "Pdf17" , "Pdf20" , "PdfA1a" , "PdfA1b" , "PdfA2a" , "PdfA2u" , "PdfA4" , "PdfA4Ua2" , " PdfUa1" , "PdfUa2 "] )
551551 return false unless compliance_validator . valid? ( @compliance )
552552 custom_properties_export_validator = EnumAttributeValidator . new ( 'String' , [ "None" , "Standard" , "Metadata" ] )
553553 return false unless custom_properties_export_validator . valid? ( @custom_properties_export )
@@ -654,7 +654,7 @@ def numeral_format=(numeral_format)
654654 # Custom attribute writer method checking allowed values (enum).
655655 # @param [Object] compliance Object to be assigned
656656 def compliance = ( compliance )
657- validator = EnumAttributeValidator . new ( 'String' , [ "Pdf17" , "Pdf20" , "PdfA1a" , "PdfA1b" , "PdfA2a" , "PdfA2u" , "PdfA4" , "PdfUa1" ] )
657+ validator = EnumAttributeValidator . new ( 'String' , [ "Pdf17" , "Pdf20" , "PdfA1a" , "PdfA1b" , "PdfA2a" , "PdfA2u" , "PdfA4" , "PdfA4Ua2" , " PdfUa1" , "PdfUa2 "] )
658658 if compliance . to_i == 0
659659 unless validator . valid? ( compliance )
660660 raise ArgumentError , "invalid value for 'compliance', must be one of #{ validator . allowable_values } ."
0 commit comments