On Tuesday 25 December 2007 03:50:20 pm Brad Hards wrote:
> ePdfError_InvalidDataTypeError: An error 16 ocurred during uncompressing
> the pdf file.
I also note that "occurred" is spelt (en_US: spelled) wrong. That occurs (:-)) 
in a few places. Patch attached - I also took the opportunity to correct some 
wording that seemed incorrect to me.

Brad

Index: src/PdfInputStream.h
===================================================================
--- src/PdfInputStream.h	(revision 762)
+++ src/PdfInputStream.h	(working copy)
@@ -41,7 +41,7 @@
      *  \param lLen    the size of the buffer and number of bytes
      *                 that will be read
      *
-     *  \returns the number of bytes read, -1 if an error ocurred
+     *  \returns the number of bytes read, -1 if an error occurred
      *           and zero if no more bytes are available for reading.
      */
     virtual long Read( char* pBuffer, long lLen ) = 0;
@@ -66,7 +66,7 @@
      *  \param lLen    the size of the buffer and number of bytes
      *                 that will be read
      *
-     *  \returns the number of bytes read, -1 if an error ocurred
+     *  \returns the number of bytes read, -1 if an error occurred
      *           and zero if no more bytes are available for reading.
      */
     virtual long Read( char* pBuffer, long lLen );
@@ -99,7 +99,7 @@
      *  \param lLen    the size of the buffer and number of bytes
      *                 that will be read
      *
-     *  \returns the number of bytes read, -1 if an error ocurred
+     *  \returns the number of bytes read, -1 if an error occurred
      *           and zero if no more bytes are available for reading.
      */
     virtual long Read( char* pBuffer, long lLen );
@@ -129,7 +129,7 @@
      *  \param lLen    the size of the buffer and number of bytes
      *                 that will be read
      *
-     *  \returns the number of bytes read, -1 if an error ocurred
+     *  \returns the number of bytes read, -1 if an error occurred
      *           and zero if no more bytes are available for reading.
      */
     virtual long Read( char* pBuffer, long lLen );
Index: src/PdfEncrypt.cpp
===================================================================
--- src/PdfEncrypt.cpp	(revision 762)
+++ src/PdfEncrypt.cpp	(working copy)
@@ -188,7 +188,7 @@
      *  \param lLen    the size of the buffer and number of bytes
      *                 that will be read
      *
-     *  \returns the number of bytes read, -1 if an error ocurred
+     *  \returns the number of bytes read, -1 if an error occurred
      *           and zero if no more bytes are available for reading.
      */
     virtual long Read( char* pBuffer, long lLen )
Index: src/PdfOutputStream.h
===================================================================
--- src/PdfOutputStream.h	(revision 762)
+++ src/PdfOutputStream.h	(working copy)
@@ -45,7 +45,7 @@
      *  \param pBuffer the data is read from this buffer
      *  \param lLen    the size of the buffer 
      *
-     *  \returns the number of bytes written, -1 if an error ocurred
+     *  \returns the number of bytes written, -1 if an error occurred
      */
     virtual long Write( const char* pBuffer, long lLen ) = 0;
 
@@ -85,7 +85,7 @@
      *  \param pBuffer the data is read from this buffer
      *  \param lLen    the size of the buffer 
      *
-     *  \returns the number of bytes written, -1 if an error ocurred
+     *  \returns the number of bytes written, -1 if an error occurred
      */
     virtual long Write( const char* pBuffer, long lLen );
 
@@ -130,7 +130,7 @@
      *  \param pBuffer the data is read from this buffer
      *  \param lLen    the size of the buffer 
      *
-     *  \returns the number of bytes written, -1 if an error ocurred
+     *  \returns the number of bytes written, -1 if an error occurred
      */
     virtual long Write( const char* pBuffer, long lLen );
 
@@ -203,7 +203,7 @@
      *  \param pBuffer the data is read from this buffer
      *  \param lLen    the size of the buffer 
      *
-     *  \returns the number of bytes written, -1 if an error ocurred
+     *  \returns the number of bytes written, -1 if an error occurred
      */
     virtual long Write( const char* pBuffer, long lLen );
 
@@ -242,7 +242,7 @@
      *  \param pBuffer the data is read from this buffer
      *  \param lLen    the size of the buffer 
      *
-     *  \returns the number of bytes written, -1 if an error ocurred
+     *  \returns the number of bytes written, -1 if an error occurred
      */
     virtual long Write( const char* pBuffer, long lLen );
 
Index: tools/podofouncompress/podofouncompress.cpp
===================================================================
--- tools/podofouncompress/podofouncompress.cpp	(revision 762)
+++ tools/podofouncompress/podofouncompress.cpp	(working copy)
@@ -54,7 +54,7 @@
   try {
       unc.Init( pszInput, pszOutput );
   } catch( PdfError & e ) {
-      fprintf( stderr, "Error: An error %i ocurred during uncompressing the pdf file.\n", e.GetError() );
+      fprintf( stderr, "Error: An error %i occurred while uncompressing the PDF file.\n", e.GetError() );
       e.PrintErrorMsg();
       return e.GetError();
   }
Index: tools/podofoencrypt/podofoencrypt.cpp
===================================================================
--- tools/podofoencrypt/podofoencrypt.cpp	(revision 762)
+++ tools/podofoencrypt/podofoencrypt.cpp	(working copy)
@@ -205,7 +205,7 @@
   try {
       encrypt( pszInput, pszOutput, userPass, ownerPass, eAlgorithm, nPerm );
   } catch( PdfError & e ) {
-      fprintf( stderr, "Error: An error %i ocurred during encrypting the pdf file.\n", e.GetError() );
+      fprintf( stderr, "Error: An error %i occurred while encrypting the PDF file.\n", e.GetError() );
       e.PrintErrorMsg();
       return e.GetError();
   }
Index: tools/podofopdfinfo/podofopdfinfo.cpp
===================================================================
--- tools/podofopdfinfo/podofopdfinfo.cpp	(revision 762)
+++ tools/podofopdfinfo/podofopdfinfo.cpp	(working copy)
@@ -73,7 +73,7 @@
       myInfo.OutputNames( std::cout );
 
   } catch( PoDoFo::PdfError & e ) {
-      fprintf( stderr, "Error: An error %i ocurred during uncompressing the pdf file.\n", e.GetError() );
+      fprintf( stderr, "Error: An error %i occurred during uncompressing the pdf file.\n", e.GetError() );
       e.PrintErrorMsg();
       return e.GetError();
 
Index: tools/podofoimgextract/podofoimgextract.cpp
===================================================================
--- tools/podofoimgextract/podofoimgextract.cpp	(revision 762)
+++ tools/podofoimgextract/podofoimgextract.cpp	(working copy)
@@ -51,7 +51,7 @@
   try {
       extractor.Init( pszInput, pszOutput, &nNum );
   } catch( PdfError & e ) {
-      fprintf( stderr, "Error: An error %i ocurred during processing the pdf file.\n", e.GetError() );
+      fprintf( stderr, "Error: An error %i occurred while processing the PDF file.\n", e.GetError() );
       e.PrintErrorMsg();
       return e.GetError();
   }
Index: examples/helloworld/helloworld.cpp
===================================================================
--- examples/helloworld/helloworld.cpp	(revision 762)
+++ examples/helloworld/helloworld.cpp	(working copy)
@@ -92,7 +92,7 @@
      * a NULL pointer is returned.
      * We check for a NULL pointer here and throw an exception using the RAISE_ERROR macro.
      * The raise error macro initializes a PdfError object with a given error code and
-     * the location in the file in which the error ocurred and throws it as an exception.
+     * the location in the file in which the error occurred and throws it as an exception.
      */
     if( !pPage ) 
     {

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to