Class OpenHtmlUserAgent
java.lang.Object
org.apache.batik.bridge.UserAgentAdapter
com.openhtmltopdf.svgsupport.OpenHtmlUserAgent
- All Implemented Interfaces:
org.apache.batik.bridge.UserAgent
public class OpenHtmlUserAgent
extends org.apache.batik.bridge.UserAgentAdapter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final booleanprivate final PDFTranscoder.OpenHtmlFontResolverFields inherited from class org.apache.batik.bridge.UserAgentAdapter
ctx, extensions, FEATURES -
Constructor Summary
ConstructorsConstructorDescriptionOpenHtmlUserAgent(PDFTranscoder.OpenHtmlFontResolver resolver, boolean allowScripts, boolean allowExternalResources, Set<String> allowedProtocols) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckLoadExternalResource(org.apache.batik.util.ParsedURL resourceURL, org.apache.batik.util.ParsedURL docURL) voidcheckLoadScript(String scriptType, org.apache.batik.util.ParsedURL scriptURL, org.apache.batik.util.ParsedURL docURL) org.apache.batik.bridge.FontFamilyResolverMethods inherited from class org.apache.batik.bridge.UserAgentAdapter
addStdFeatures, deselectAll, displayError, displayError, displayMessage, getAlternateStyleSheet, getBolderFontWeight, getBrokenLinkDocument, getClientAreaLocationOnScreen, getDefaultFontFamily, getEventDispatcher, getExternalResourceSecurity, getLanguages, getLighterFontWeight, getMedia, getMediumFontSize, getPixelToMM, getPixelUnitToMillimeter, getScriptSecurity, getSourceResolution, getStandardBolderFontWeight, getStandardLighterFontWeight, getTransform, getUserStyleSheetURI, getViewportSize, getXMLParserClassName, handleElement, hasFeature, isXMLParserValidating, loadDocument, openLink, registerExtension, runThread, setBridgeContext, setSourceResolution, setSVGCursor, setTextSelection, setTransform, showAlert, showConfirm, showPrompt, showPrompt, supportExtension
-
Field Details
-
resolver
-
allowScripts
private final boolean allowScripts -
allowExternalResources
private final boolean allowExternalResources -
allowedProtocols
-
-
Constructor Details
-
OpenHtmlUserAgent
public OpenHtmlUserAgent(PDFTranscoder.OpenHtmlFontResolver resolver, boolean allowScripts, boolean allowExternalResources, Set<String> allowedProtocols)
-
-
Method Details
-
getFontFamilyResolver
public org.apache.batik.bridge.FontFamilyResolver getFontFamilyResolver()- Specified by:
getFontFamilyResolverin interfaceorg.apache.batik.bridge.UserAgent- Overrides:
getFontFamilyResolverin classorg.apache.batik.bridge.UserAgentAdapter
-
checkLoadScript
public void checkLoadScript(String scriptType, org.apache.batik.util.ParsedURL scriptURL, org.apache.batik.util.ParsedURL docURL) throws SecurityException - Specified by:
checkLoadScriptin interfaceorg.apache.batik.bridge.UserAgent- Overrides:
checkLoadScriptin classorg.apache.batik.bridge.UserAgentAdapter- Throws:
SecurityException
-
checkLoadExternalResource
public void checkLoadExternalResource(org.apache.batik.util.ParsedURL resourceURL, org.apache.batik.util.ParsedURL docURL) throws SecurityException - Specified by:
checkLoadExternalResourcein interfaceorg.apache.batik.bridge.UserAgent- Overrides:
checkLoadExternalResourcein classorg.apache.batik.bridge.UserAgentAdapter- Throws:
SecurityException
-