class AcroFormDefaultFixup extends AbstractFixup
{ 
    public AcroFormDefaultFixup(PDDocument document)
    { 
        super(document); 
    }

    @Override
    public void apply() {<FILL_FUNCTION_BODY>}
}

        new AcroFormDefaultsProcessor(document).process();

        /*
         * Get the AcroForm in it's current state.
         *
         * Also note: getAcroForm() applies a default fixup which this processor
         * is part of. So keep the null parameter otherwise this will end
         * in an endless recursive call
         */
        PDAcroForm acroForm = document.getDocumentCatalog().getAcroForm(null);

        // PDFBOX-4985
        // build the visual appearance as there is none for the widgets
        if (acroForm != null && acroForm.getNeedAppearances())
        {
            if (acroForm.getFields().isEmpty())
            {
                new AcroFormOrphanWidgetsProcessor(document).process();
            }
            
            // PDFBOX-4985
            // build the visual appearance as there is none for the widgets
            new AcroFormGenerateAppearancesProcessor(document).process();
        }
    
<methods><variables>protected final non-sealed org.apache.pdfbox.pdmodel.PDDocument document