Class PdfBoxUserAgent

java.lang.Object
com.openhtmltopdf.swing.NaiveUserAgent
com.openhtmltopdf.pdfboxout.PdfBoxUserAgent
All Implemented Interfaces:
DocumentListener, UserAgentCallback

public class PdfBoxUserAgent extends NaiveUserAgent
  • Field Details

  • Constructor Details

  • Method Details

    • readStream

      private byte[] readStream(InputStream is) throws IOException
      Throws:
      IOException
    • getImageResource

      public ImageResource getImageResource(String uriStr)
      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

      private void scaleToOutputResolution(PdfBoxImage image)
    • getSharedContext

      public SharedContext getSharedContext()
    • setSharedContext

      public void setSharedContext(SharedContext sharedContext)