Class AcroFormsMerger

java.lang.Object
org.sejda.impl.sambox.component.AcroFormsMerger

public class AcroFormsMerger extends Object
Component providing methods to merge multiple acroforms together using different strategies.
Author:
Andrea Vacondio
  • Constructor Summary

    Constructors
    Constructor
    Description
    AcroFormsMerger(AcroFormPolicy policy, org.sejda.sambox.pdmodel.PDDocument destination)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.sejda.sambox.pdmodel.interactive.form.PDAcroForm
     
    void
    mergeForm(org.sejda.sambox.pdmodel.interactive.form.PDAcroForm originalForm, org.sejda.commons.LookupTable<org.sejda.sambox.pdmodel.interactive.annotation.PDAnnotation> annotationsLookup)
    Merge the original form to the current one, considering only fields whose widgets are available in the given lookup table.

    Methods inherited from class java.lang.Object

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

    • AcroFormsMerger

      public AcroFormsMerger(AcroFormPolicy policy, org.sejda.sambox.pdmodel.PDDocument destination)
  • Method Details

    • mergeForm

      public void mergeForm(org.sejda.sambox.pdmodel.interactive.form.PDAcroForm originalForm, org.sejda.commons.LookupTable<org.sejda.sambox.pdmodel.interactive.annotation.PDAnnotation> annotationsLookup)
      Merge the original form to the current one, considering only fields whose widgets are available in the given lookup table.
      Parameters:
      originalForm - the form to merge
      annotationsLookup - lookup for relevant annotations
    • getForm

      public org.sejda.sambox.pdmodel.interactive.form.PDAcroForm getForm()
      Returns:
      Performs some cleanup task on the resulting PDAcroForm and then returns it