Border of ComboBoxField is not visible when ComboBoxField created using only document

Border of ComboBoxField is visible when ComboBoxField using rectangle and page . But, when ComboBoxField created using only document, then border of ComboBoxField is not visible.

        ComboBoxField combo = new ComboBoxField(doc);
        // add option to ComboBox
        combo.setHeight(10f);
        combo.setWidth(50f);
        combo.addOption("Red");
        combo.addOption("Yellow");
        combo.addOption("Green");
        combo.addOption("Blue");
        combo.setSelected(2);
        combo.setBorder(new Border(combo));
        combo.getBorder().setStyle(BorderStyle.Solid);
        combo.getBorder().setWidth(1);
        combo.getCharacteristics().setBorder(Color.fromArgb(140, 140, 140));
        combo.getDefaultAppearance().setFontSize(12);
        combo.getDefaultAppearance().setFontName("Segoe UI");
        combo.getDefaultAppearance().setTextColor(new java.awt.Color(70, 70, 70));
           doc.getForm().add(combo,1);
           page.getParagraphs().add(combo);
           Document doc = new Document();
           Page page = doc.getPages().add();

@Rutuja24

Would you please also share why do you need to add the ComboBox using only document? Is there any limitation in your process while using rectangle and page? Can you please also share the generated PDF file for our reference that you obtained at your end? We will further proceed to assist you accordingly.