List of usage examples for com.itextpdf.text.html HtmlTags SRC
String SRC
To view the source code for com.itextpdf.text.html HtmlTags SRC.
Click Source Link
From source file:com.masscustsoft.service.ToPdf.java
License:Open Source License
/** * Creates an Image object.//w w w.jav a2 s . c om * @param attrs properties of the Image * @return an Image object (or null if the Image couldn't be found) * @throws DocumentException * @throws IOException * @since 5.0.6 */ public Image createImage(final Map<String, String> attrs) throws DocumentException, IOException { String src = attrs.get(HtmlTags.SRC); if (src == null) return null; Image img = factory.createImage(src, attrs, chain, document, (ImageProvider) providers.get(IMG_PROVIDER), (ImageStore) providers.get(IMG_STORE), (String) providers.get(IMG_BASEURL)); return img; }