Class PdfUAPage


class PdfUAPage extends PdfPage
  • Constructor Details

  • Method Details

    • flush

      public void flush(boolean flushResourcesContentStreams)
      Description copied from class: PdfPage
      Flushes page dictionary, its content streams, annotations and thumb image. If flushResourcesContentStreams is true, all content streams that are rendered on this page (like FormXObjects, annotation appearance streams, patterns) and also all images associated with this page will also be flushed.

      For notes about tag structure flushing see PdfPage#flush() method.

      If PdfADocument is used, flushing will be applied only if flushResourcesContentStreams is true.

      Be careful with handling document in which some of the pages are flushed. Keep in mind that flushed objects are finalized and are completely written to the output stream. This frees their memory but makes it impossible to modify or read data from them. Whenever there is an attempt to modify or to fetch flushed object inner contents an exception will be thrown. Flushing is only possible for objects in the writing and stamping modes, also its possible to flush modified objects in append mode.

      Overrides:
      flush in class PdfPage
      Parameters:
      flushResourcesContentStreams - if true all content streams that are rendered on this page (like form xObjects, annotation appearance streams, patterns) and also all images associated with this page will be flushed.