PdfCollectionField extends PdfObjectWrapper<PdfDictionary> { @Override protected boolean isWrappedObjectMustBeIndirect() { return false; } protected  PdfCollectionField(PdfDictionary pdfObject);  PdfCollectionField(String name, int subType); PdfCollectionField setOrder(int order); PdfNumber getOrder(); PdfCollectionField setVisibility(boolean visible); PdfBoolean getVisibility(); PdfCollectionField setEditable(boolean editable); PdfBoolean getEditable(); PdfObject getValue(String value); static final int TEXT; static final int DATE; static final int NUMBER; static final int FILENAME; static final int DESC; static final int MODDATE; static final int CREATIONDATE; static final int SIZE; }
@Test public void isWrappedObjectMustBeIndirectTest() { PdfDictionary pdfObject = new PdfDictionary(); pdfObject.put(PdfName.Subtype, PdfName.S); PdfCollectionField field = new PdfCollectionField(pdfObject); Assert.assertFalse(field.isWrappedObjectMustBeIndirect()); }