From 84353451a33171b587c0bdeaae745dbc0e553fff Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 18 Apr 2010 23:01:31 +0000 Subject: refactor to isolate pad calculation git-svn-id: svn+q:///qpdf/trunk@956 71b93d88-0707-0410-a8cf-f5a4172ac649 --- include/qpdf/QPDFWriter.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh index b10d5ae7..8a11a9d8 100644 --- a/include/qpdf/QPDFWriter.hh +++ b/include/qpdf/QPDFWriter.hh @@ -183,6 +183,7 @@ class QPDFWriter void writeBuffer(PointerHolder&); void writeStringQDF(std::string const& str); void writeStringNoQDF(std::string const& str); + void writePad(int nspaces); void assignCompressedObjectNumbers(int objid); void enqueueObject(QPDFObjectHandle object); void writeObjectStreamOffsets(std::vector& offsets, int first_obj); @@ -242,6 +243,7 @@ class QPDFWriter int hint_offset, int hint_length, bool skip_compression); + int calculateXrefStreamPadding(int xref_bytes); // When filtering subsections, push additional pipelines to the // stack. When ready to switch, activate the pipeline stack. -- cgit v1.2.3-54-g00ecf