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

    Fields
    Modifier and Type
    Field
    Description
    private final Set<String>
     
    private final boolean
     
    private final boolean
     
     

    Fields inherited from class org.apache.batik.bridge.UserAgentAdapter

    ctx, extensions, FEATURES
  • Constructor Summary

    Constructors
    Constructor
    Description
    OpenHtmlUserAgent(PDFTranscoder.OpenHtmlFontResolver resolver, boolean allowScripts, boolean allowExternalResources, Set<String> allowedProtocols)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkLoadExternalResource(org.apache.batik.util.ParsedURL resourceURL, org.apache.batik.util.ParsedURL docURL)
     
    void
    checkLoadScript(String scriptType, org.apache.batik.util.ParsedURL scriptURL, org.apache.batik.util.ParsedURL docURL)
     
    org.apache.batik.bridge.FontFamilyResolver
     

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • resolver

      private final PDFTranscoder.OpenHtmlFontResolver resolver
    • allowScripts

      private final boolean allowScripts
    • allowExternalResources

      private final boolean allowExternalResources
    • allowedProtocols

      private final Set<String> allowedProtocols
  • Constructor Details

  • Method Details

    • getFontFamilyResolver

      public org.apache.batik.bridge.FontFamilyResolver getFontFamilyResolver()
      Specified by:
      getFontFamilyResolver in interface org.apache.batik.bridge.UserAgent
      Overrides:
      getFontFamilyResolver in class org.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:
      checkLoadScript in interface org.apache.batik.bridge.UserAgent
      Overrides:
      checkLoadScript in class org.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:
      checkLoadExternalResource in interface org.apache.batik.bridge.UserAgent
      Overrides:
      checkLoadExternalResource in class org.apache.batik.bridge.UserAgentAdapter
      Throws:
      SecurityException