org.docx4j.org.xhtmlrenderer.pdf
Class ITextUserAgent
java.lang.Object
org.docx4j.org.xhtmlrenderer.swing.NaiveUserAgent
org.docx4j.org.xhtmlrenderer.pdf.ITextUserAgent
- All Implemented Interfaces:
- DocumentListener, UserAgentCallback
public class ITextUserAgent
- extends NaiveUserAgent
| Methods inherited from class org.docx4j.org.xhtmlrenderer.swing.NaiveUserAgent |
clearImageCache, createImageResource, documentLoaded, documentStarted, getBaseURL, getBinaryResource, getCSSResource, getXMLResource, isVisited, onLayoutException, onRenderException, resolveAndOpenStream, resolveURI, setBaseURL, shrinkImageCache |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ITextUserAgent
public ITextUserAgent(ITextOutputDevice outputDevice)
getImageResource
public ImageResource getImageResource(String uri)
- Description copied from class:
NaiveUserAgent
- Retrieves the image located at the given URI. It's assumed the URI does point to an image--the URI will
be accessed (using java.io or java.net), opened, read and then passed into the JDK image-parsing routines.
The result is packed up into an ImageResource for later consumption.
- Specified by:
getImageResource in interface UserAgentCallback- Overrides:
getImageResource in class NaiveUserAgent
- Parameters:
uri - Location of the image source.
- Returns:
- An ImageResource containing the image.
getSharedContext
public SharedContext getSharedContext()
setSharedContext
public void setSharedContext(SharedContext sharedContext)
Copyright © 2011-2012. All Rights Reserved.