private static PdfCollectionSchema CollectionSchema() { PdfCollectionSchema schema = new PdfCollectionSchema(); PdfCollectionField type = new PdfCollectionField("File type", PdfCollectionField.TEXT); type.Order = 0; schema.AddField("Type", type); PdfCollectionField filename = new PdfCollectionField("File", PdfCollectionField.FILENAME); filename.Order = 1; schema.AddField("File", filename); return(schema); }
// --------------------------------------------------------------------------- /** * Creates a Collection schema that can be used to organize the movies * of Stanley Kubrick in a collection: year, title, duration, * DVD acquisition, filesize (filename is present, but hidden). * @return a collection schema */ private PdfCollectionSchema _collectionSchema() { PdfCollectionSchema schema = new PdfCollectionSchema(); PdfCollectionField type = new PdfCollectionField( TYPE_CAPTION, PdfCollectionField.TEXT ); type.Order = 0; schema.AddField(TYPE_FIELD, type); PdfCollectionField filename = new PdfCollectionField( FILE_FIELD, PdfCollectionField.FILENAME ); filename.Order = 1; schema.AddField(FILE_FIELD, filename); return(schema); }
// --------------------------------------------------------------------------- /** * Creates a Collection schema that can be used to organize the movies * of Stanley Kubrick in a collection: year, title, duration, DVD * acquisition, filesize (filename is present, but hidden). * @return a collection schema */ private PdfCollectionSchema _collectionSchema() { PdfCollectionSchema schema = new PdfCollectionSchema(); PdfCollectionField size = new PdfCollectionField( "File size", PdfCollectionField.SIZE ); size.Order = 4; schema.AddField("SIZE", size); PdfCollectionField filename = new PdfCollectionField( "File name", PdfCollectionField.FILENAME ); filename.Visible = false; schema.AddField("FILE", filename); PdfCollectionField title = new PdfCollectionField( "Movie title", PdfCollectionField.TEXT ); title.Order = 1; schema.AddField("TITLE", title); PdfCollectionField duration = new PdfCollectionField( "Duration", PdfCollectionField.NUMBER ); duration.Order = 2; schema.AddField("DURATION", duration); PdfCollectionField year = new PdfCollectionField( "Year", PdfCollectionField.NUMBER ); year.Order = 0; schema.AddField("YEAR", year); return(schema); }