org.apache.fop.render.pdf.pdfbox

## Interface OnLoadInterceptor

-     public interface OnLoadInterceptor

  Interceptor interface for performing on newly loaded PDF files. This can be used, for example, to decrypt an encrypted PDF.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.apache.pdfbox.pdmodel.PDDocument` | `intercept(org.apache.pdfbox.pdmodel.PDDocument doc, java.net.URI uri)` Called when a new PDF document has been loaded.

- - ### Method Detail

    - #### intercept

          org.apache.pdfbox.pdmodel.PDDocument intercept(org.apache.pdfbox.pdmodel.PDDocument doc,
                                                         java.net.URI uri)
                                                  throws java.io.IOException

      Called when a new PDF document has been loaded.
      Parameters:
        `doc` - the PDF document
        `uri` - the URI it has been loaded from (may be null)
      Returns:
        the given document or potentially an alternative PDF
      Throws:
        `java.io.IOException` - if an I/O occurs

Copyright 2007-2021 The Apache Software Foundation. All Rights Reserved.