Boolean fe=Caster.toBoolean(fontembed,null);
if(fe==null) {
fontembed=StringUtil.toLowerCase(fontembed.trim());
if("selective".equals(fontembed))
this.fontembed=PDFDocument.FONT_EMBED_SELECCTIVE;
else throw new PDFException("invalid value for fontembed ["+fontembed+"], valid values for fontembed are [yes,no,selective]");
}
else if(fe.booleanValue())this.fontembed=PDFDocument.FONT_EMBED_YES;
else this.fontembed=PDFDocument.FONT_EMBED_NO;
getDocument().setFontembed(this.fontembed);