Class PdfUtilityServiceImpl
java.lang.Object
ch.tocco.nice2.outputcenter.impl.util.PdfUtilityServiceImpl
- All Implemented Interfaces:
PdfUtilityService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.io.ByteSourcemergePdfDocumentsFromByteSources(List<com.google.common.io.ByteSource> sources) Merge a list of PDF files into one single file.com.google.common.io.ByteSourcemergePdfDocumentsFromInputStreams(List<InputStream> streams) Merge a list of PDF files into one single file.com.google.common.io.ByteSourcesetOpenPrintDialogToPdf(com.google.common.io.ByteSource source) Set PDF file to open print dialog upon opening the file.
-
Constructor Details
-
PdfUtilityServiceImpl
public PdfUtilityServiceImpl()
-
-
Method Details
-
mergePdfDocumentsFromByteSources
public com.google.common.io.ByteSource mergePdfDocumentsFromByteSources(List<com.google.common.io.ByteSource> sources) Description copied from interface:PdfUtilityServiceMerge a list of PDF files into one single file.- Specified by:
mergePdfDocumentsFromByteSourcesin interfacePdfUtilityService- Parameters:
sources- an ordered list of ByteSources giving access to PDF files.- Returns:
- an InputSupplier giving access to the merged PDF file
-
mergePdfDocumentsFromInputStreams
Description copied from interface:PdfUtilityServiceMerge a list of PDF files into one single file.- Specified by:
mergePdfDocumentsFromInputStreamsin interfacePdfUtilityService- Parameters:
streams- an ordered list of InputStreams giving access to PDF files.- Returns:
- an InputSupplier giving access to the merged PDF file
-
setOpenPrintDialogToPdf
public com.google.common.io.ByteSource setOpenPrintDialogToPdf(com.google.common.io.ByteSource source) throws OutputCenterException Description copied from interface:PdfUtilityServiceSet PDF file to open print dialog upon opening the file. This method configures the PDF file to execute JavaScript when opening the file.- Specified by:
setOpenPrintDialogToPdfin interfacePdfUtilityService- 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
-