Package com.openhtmltopdf.pdfboxout
Class PdfBoxUserAgent
java.lang.Object
com.openhtmltopdf.swing.NaiveUserAgent
com.openhtmltopdf.pdfboxout.PdfBoxUserAgent
- All Implemented Interfaces:
DocumentListener
,UserAgentCallback
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openhtmltopdf.swing.NaiveUserAgent
NaiveUserAgent.DataUriFactory, NaiveUserAgent.DefaultAccessController, NaiveUserAgent.DefaultHttpStream, NaiveUserAgent.DefaultHttpStreamFactory, NaiveUserAgent.DefaultUriResolver
-
Field Summary
FieldsFields inherited from class com.openhtmltopdf.swing.NaiveUserAgent
_accessControllers, _baseUri, _imageCache, _protocolsStreamFactory, _resolver, DEFAULT_URI_RESOLVER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetImageResource
(String uriStr) Retrieves the Image at the given URI.private byte[]
private void
void
setSharedContext
(SharedContext sharedContext) Methods inherited from class com.openhtmltopdf.swing.NaiveUserAgent
checkAccessAllowed, clearImageCache, documentLoaded, documentStarted, extractProtocol, getBaseURL, getBinaryResource, getCSSResource, getDefaultUriResolver, getImageResource, getProtocolFactory, getXMLResource, hasProtocolFactory, isVisited, onLayoutException, onRenderException, openReader, openStream, readAll, resolveUri, resolveURI, setAccessController, setBaseURL, setProtocolsStreamFactory, setUriResolver
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.openhtmltopdf.extend.UserAgentCallback
getBinaryResource, getCSSResource, getXMLResource
-
Field Details
-
_outputDevice
-
Constructor Details
-
PdfBoxUserAgent
-
-
Method Details
-
readStream
- Throws:
IOException
-
getImageResource
Description copied from interface:UserAgentCallback
Retrieves the Image at the given URI. This is a synchronous call.- Parameters:
uriStr
- Location of the image- Returns:
- An ImageResource for the content at the URI.
-
scaleToOutputResolution
-