aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFWriter.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2012-09-23 23:42:26 +0200
committerJay Berkenbilt <ejb@ql.org>2012-09-23 23:42:26 +0200
commit041397fdabde66574824db7582a26ef1e3fbfc65 (patch)
treebb9d46db2082978e8c7fbbe4373e5df8e70e68b1 /libqpdf/QPDFWriter.cc
parent8c99e4a6c0f79c62fb9983404086c72ecf54ac83 (diff)
downloadqpdf-041397fdabde66574824db7582a26ef1e3fbfc65.tar.zst
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.
Diffstat (limited to 'libqpdf/QPDFWriter.cc')
-rw-r--r--libqpdf/QPDFWriter.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc
index eb08488a..c1e4e1dd 100644
--- a/libqpdf/QPDFWriter.cc
+++ b/libqpdf/QPDFWriter.cc
@@ -135,6 +135,13 @@ QPDFWriter::getBuffer()
}
void
+QPDFWriter::setOutputPipeline(Pipeline* p)
+{
+ this->filename = "custom pipeline";
+ initializePipelineStack(p);
+}
+
+void
QPDFWriter::setObjectStreamMode(qpdf_object_stream_e mode)
{
this->object_stream_mode = mode;