code: private static final int getSecurityFlags(final Map properties) {
  		int securityType = 0;
  		securityType = "true".equals(properties
  				.get(IHtmlToPdfTransformer.PDF_ALLOW_PRINTING)) ? (securityType | PdfWriter.ALLOW_PRINTING)
  				: securityType;
  		securityType = "true".equals(properties
  				.get(IHtmlToPdfTransformer.PDF_ALLOW_MODIFY_CONTENTS)) ? (securityType | PdfWriter.ALLOW_MODIFY_CONTENTS)
  				: securityType;
  		securityType = "true".equals(properties
  				.get(IHtmlToPdfTransformer.PDF_ALLOW_COPY)) ? (securityType | PdfWriter.ALLOW_COPY)
  				: securityType;
  		securityType = "true".equals(properties
  				.get(IHtmlToPdfTransformer.PDF_ALLOW_MODIFT_ANNOTATIONS)) ? (securityType | PdfWriter.ALLOW_MODIFY_ANNOTATIONS)
  				: securityType;
  		securityType = "true".equals(properties
  				.get(IHtmlToPdfTransformer.PDF_ALLOW_FILLIN)) ? (securityType | PdfWriter.ALLOW_FILL_IN)
  				: securityType;
  		securityType = "true".equals(properties
  				.get(IHtmlToPdfTransformer.PDF_ALLOW_SCREEN_READERS)) ? (securityType | PdfWriter.ALLOW_SCREENREADERS)
  				: securityType;
  		securityType = "true".equals(properties
  				.get(IHtmlToPdfTransformer.PDF_ALLOW_ASSEMBLY)) ? (securityType | PdfWriter.ALLOW_ASSEMBLY)
  				: securityType;
  		securityType = "true".equals(properties
  				.get(IHtmlToPdfTransformer.PDF_ALLOW_DEGRADED_PRINTING)) ? (securityType | PdfWriter.ALLOW_DEGRADED_PRINTING)
  				: securityType;
  
  		return securityType;
  	}
docs: return the itext security flags for encryption
  
  @param properties
  the converter properties
  
  @return the itext security flags