"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDAction.java" between
pdfbox-2.0.23-src.zip and pdfbox-2.0.24-src.zip

About: Apache PDFBox is a Java PDF library tool that allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents.

PDAction.java  (pdfbox-2.0.23-src):PDAction.java  (pdfbox-2.0.24-src)
skipping to change at line 138 skipping to change at line 138
List<PDAction> retval = null; List<PDAction> retval = null;
COSBase next = action.getDictionaryObject(COSName.NEXT); COSBase next = action.getDictionaryObject(COSName.NEXT);
if( next instanceof COSDictionary ) if( next instanceof COSDictionary )
{ {
PDAction pdAction = PDActionFactory.createAction( (COSDictionary) ne xt ); PDAction pdAction = PDActionFactory.createAction( (COSDictionary) ne xt );
retval = new COSArrayList<PDAction>(pdAction, next, action, COSName. NEXT); retval = new COSArrayList<PDAction>(pdAction, next, action, COSName. NEXT);
} }
else if( next instanceof COSArray ) else if( next instanceof COSArray )
{ {
COSArray array = (COSArray)next; COSArray array = (COSArray)next;
List<PDAction> actions = new ArrayList<PDAction>(); List<PDAction> actions = new ArrayList<PDAction>(array.size());
for( int i=0; i<array.size(); i++ ) for( int i=0; i<array.size(); i++ )
{ {
actions.add( PDActionFactory.createAction( (COSDictionary) array .getObject( i ))); actions.add( PDActionFactory.createAction( (COSDictionary) array .getObject( i )));
} }
retval = new COSArrayList<PDAction>( actions, array ); retval = new COSArrayList<PDAction>( actions, array );
} }
return retval; return retval;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)