Class CoverPageService

java.lang.Object
org.dspace.disseminate.CoverPageService

public class CoverPageService extends Object
This service renders a PDF coverpage for an item.
  • Method Details

    • renderCoverDocument

      public org.apache.pdfbox.pdmodel.PDDocument renderCoverDocument(Item item)
      Render a PDF coverpage for the given Item. The implementation may use the context and any relevant meta data from the Item to populate dynamic content in the rendered page. All metadata fields (using format schema_field_qualifier) are passed to coverPageContributor and can be referenced in HTML template
      Parameters:
      item - the current item
      Returns:
      a PDDocument containing the rendered coverpage. The caller is responsible to close the PDDocument after use!
    • prepareParams

      protected Map<String,String> prepareParams(Item item)