Hi Eija, We had implemented a cover page function for DSpace.
You can see a working sample at http://barrel.ih.otaru-uc.ac.jp/bitstream/10252/1213/1/BHMK33_3.pdf We make cover pages in media-filter using iText library and merge it on the fly in BitstreamServlet.java. Keiji Suzuki Ebetsu, Japan 2009/5/28 Eija Airio <airio.e...@gmail.com>: > Hi, > > we are spent some hours for developing a new feature for DSpace: adding > cover pages for PDF files. The idea is to create the cover page on the fly, > based on the metadata of the bitstream. > > We have edited the BitstreamReader.java. We have added the cover page > insertion before the original bitstream.retrieve() in the following way: > > // Success, bitstream found and the user has access to read it. > // Store these for later retreval: > > // if configured, and if this is a pdf, add the cover page > if (ConfigurationManager. > getProperty("dspace.covering").equals("true")) > if > (bitstream.getFormat().getMIMEType().equals("application/pdf") && > bitstream.getSize() > 0) { > this.bitstreamInputStream = > addCoverPage(bitstream.retrieve(),item); > } > else > this.bitstreamInputStream = bitstream.retrieve(); > > The addCoverPage method creates the cover page and merges it with the > original bitstream. > > This solution seems to work but we have problems with creation/merging of > PDF files. We have tried PDFBox, but it's quite clumsy: you just can add > some text on the page, no formatting is possible. Our next trial was > FPDF/FPDI. It works but is not a very neat solution. > > Has anyone a working solution for the cover page problem? Are there any > plans to include this in tfuture DSpace implementations? > > One step further: appearance (logo, licence text) of the cover page should > depend on the owning collection of the bitstream/item.This could be > implemented by 1) searching the owning collection of the bitstream/item from > the database, 2) inserting information corresponding each collection in the > configuration file of DSpace. Is this a feature worth of developing? > > > Best regards, > Eija > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. > Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp as they present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com > _______________________________________________ > DSpace-tech mailing list > DSpace-tech@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspace-tech > > ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech