code: public PdfName generate  ( PdfResources resources ) { PdfName newName = new PdfName ( prefix + counter ++ ) ; PdfDictionary r = resources . getPdfObject ( ) ; if ( r . containsKey ( resourceType ) ) { while ( r . getAsDictionary ( resourceType ) . containsKey ( newName ) ) { newName = new PdfName ( prefix + counter ++ ) ; } } return newName ; }
nl: Genera nuevo nombre de recurso (único).