> Any idea which the rest of the code expects? Which do you think is best?
> The existing behaviour (open existing and clobber) or the tested-for
> behaviour (open existing for append)?

BTW, no change is required to current svn to retain the "clobber"
behaviour. To get append, this patch works:

Index: PdfOutputStream.h
===================================================================
--- PdfOutputStream.h   (revision 720)
+++ PdfOutputStream.h   (working copy)
@@ -22,13 +22,13 @@
 #define _PDF_OUTPUT_STREAM_H_

 #include "PdfDefines.h"
+#include "PdfRefCountedBuffer.h"

 namespace PoDoFo {

 #define INITIAL_SIZE 4096

 class PdfOutputDevice;
-class PdfRefCountedBuffer;

 /** An interface for writing blocks of data to
  *  a data source.
@@ -221,7 +221,7 @@
      *  \param pBuffer data is written to this buffer
      */
     PdfBufferOutputStream( PdfRefCountedBuffer* pBuffer )
-        : m_pBuffer( pBuffer ), m_lLength( 0 )
+        : m_pBuffer( pBuffer ), m_lLength( pBuffer->GetSize() )
     {
     }

--
Craig Ringer


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to