Package digilib.pdf
Class PDFStreamWorker
java.lang.Object
digilib.pdf.PDFStreamWorker
- All Implemented Interfaces:
- Callable<OutputStream>
Worker that creates a PDF document in an OutputStream.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected DigilibConfigurationprotected com.itextpdf.layout.Documentprotected DigilibJobCenter<DocuImage> protected PDFRequestprotected static org.slf4j.Loggerprotected OutputStream
- 
Constructor SummaryConstructorsConstructorDescriptionPDFStreamWorker(DigilibConfiguration dlConfig, OutputStream outputfile, PDFRequest job_info, DigilibJobCenter<DocuImage> imageJobCenter) 
- 
Method SummaryModifier and TypeMethodDescriptioncom.itextpdf.layout.DocumentaddImage(com.itextpdf.layout.Document doc, ImageJobDescription iji) adds an image to the document.call()protected OutputStream
- 
Field Details- 
loggerprotected static org.slf4j.Logger logger
- 
dlConfig
- 
docprotected com.itextpdf.layout.Document doc
- 
outstream
- 
job_info
- 
imageJobCenter
 
- 
- 
Constructor Details- 
PDFStreamWorkerpublic PDFStreamWorker(DigilibConfiguration dlConfig, OutputStream outputfile, PDFRequest job_info, DigilibJobCenter<DocuImage> imageJobCenter) - Parameters:
- dlConfig-
- outputfile-
- job_info-
 
 
- 
- 
Method Details- 
call- Specified by:
- callin interface- Callable<OutputStream>
- Throws:
- Exception
 
- 
renderPDFprotected OutputStream renderPDF() throws InterruptedException, ExecutionException, IOException, ImageOpException
- 
addImagepublic com.itextpdf.layout.Document addImage(com.itextpdf.layout.Document doc, ImageJobDescription iji) throws InterruptedException, ExecutionException, IOException adds an image to the document.- Parameters:
- doc-
- iji-
- Returns:
 
 
-