From 041397fdabde66574824db7582a26ef1e3fbfc65 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 23 Sep 2012 17:42:26 -0400 Subject: Allow reading from InputSource and writing to Pipeline Allowing users to subclass InputSource and Pipeline to read and write from/to arbitrary sources provides the maximum flexibility for users who want to read and write from other than files or memory. --- libqpdf/QPDFWriter.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libqpdf/QPDFWriter.cc') diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc index eb08488a..c1e4e1dd 100644 --- a/libqpdf/QPDFWriter.cc +++ b/libqpdf/QPDFWriter.cc @@ -134,6 +134,13 @@ QPDFWriter::getBuffer() return result; } +void +QPDFWriter::setOutputPipeline(Pipeline* p) +{ + this->filename = "custom pipeline"; + initializePipelineStack(p); +} + void QPDFWriter::setObjectStreamMode(qpdf_object_stream_e mode) { -- cgit v1.2.3-70-g09d2