Interface PdfUtilityService

All Known Implementing Classes:
PdfUtilityServiceImpl

public interface PdfUtilityService
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.common.io.ByteSource
    mergePdfDocuments(List<com.google.common.io.ByteSource> sources)
    Merge a list of PDF files into one single file.
    com.google.common.io.ByteSource
    setOpenPrintDialogToPdf(com.google.common.io.ByteSource source)
    Set PDF file to open print dialog upon opening the file.
  • Method Details

    • mergePdfDocuments

      com.google.common.io.ByteSource mergePdfDocuments(List<com.google.common.io.ByteSource> sources)
      Merge a list of PDF files into one single file.
      Parameters:
      sources - a (ordered) list of InputSuppliers giving access to PDF files.
      Returns:
      an InputSupplier giving access to the merged PDF file
    • setOpenPrintDialogToPdf

      com.google.common.io.ByteSource setOpenPrintDialogToPdf(com.google.common.io.ByteSource source) throws OutputCenterException
      Set PDF file to open print dialog upon opening the file. This method configures the PDF file to execute JavaScript when opening the file.
      Parameters:
      source - a source PDF file
      Returns:
      the provided source PDF file with added JavaScript instruction to open print dialog
      Throws:
      OutputCenterException - - in case of any exception where the JavaScript instructions could not be added properly to the file