/** * Convenience method for adding a cover to the publication. This method will make sure the * required actions are taken to provide a cover page for all reading systems. * * @param image the cover image (jpeg, png, svg or gif) * @param title title of the cover page */ @Override public void setCover(File image, String title) { // Add the cover image to the manifest Item item = addItem(COVER_IMAGE_ID, null, image, null, null, false, false, true); item.setTitle(title); // Point to the cover using a meta tag addMeta(COVER_ID, COVER_IMAGE_ID); opfPackage.setGenerateCoverHTML(true); }