/** * {@inheritDoc} */ @Override public void clear() { //when adding if there is a parentDict then change the item //in the dictionary from a single item to an array. if( parentDict != null ) { parentDict.setItem( dictKey, null ); } actual.clear(); array.clear(); }
/** * Clear the current contents of the COSArray and set it with the float[]. * * @param value The new value of the float array. */ public void setFloatArray( float[] value ) { this.clear(); for (float aValue : value) { add(new COSFloat(aValue)); } }
/** * {@inheritDoc} */ @Override public void clear() { //when adding if there is a parentDict then change the item //in the dictionary from a single item to an array. if( parentDict != null ) { parentDict.setItem( dictKey, null ); } actual.clear(); array.clear(); }
/** * {@inheritDoc} */ @Override public void clear() { //when adding if there is a parentDict then change the item //in the dictionary from a single item to an array. if( parentDict != null ) { parentDict.setItem( dictKey, null ); } actual.clear(); array.clear(); }
/** * Clear the current contents of the COSArray and set it with the float[]. * * @param value The new value of the float array. */ public void setFloatArray( float[] value ) { this.clear(); for (float aValue : value) { add(new COSFloat(aValue)); } }
/** * Clear the current contents of the COSArray and set it with the float[]. * * @param value The new value of the float array. */ public void setFloatArray( float[] value ) { this.clear(); for (float aValue : value) { add(new COSFloat(aValue)); } }
PDDocument pdDoc = PDDocument.load(new File("E:\\Form-Test.pdf")); PDDocumentCatalog pdCatalog = pdDoc.getDocumentCatalog(); PDAcroForm acroForm = pdCatalog.getAcroForm(); COSDictionary acroFormDict = acroForm.getDictionary(); COSArray fields = acroFormDict.getDictionaryObject("Fields"); fields.clear();
COSDictionary acroFormDict = acroForm.getDictionary(); COSArray cosFields = (COSArray) acroFormDict.getDictionaryObject("Fields"); cosFields.clear();
COSDictionary acroFormDict = acroForm.getDictionary(); COSArray cosFields = (COSArray) acroFormDict.getDictionaryObject("Fields"); cosFields.clear();