Hi,
pdf_long is used on the API from class PODOFO_API PdfOutputStream
in:
virtual pdf_long Write( const char* pBuffer, pdf_long lLen ) = 0;
And thus by PdfEncrypt.
However this is mucking up my Ubuntu compile (EncryptTest.cpp) of the svn trunk
(please see below).
Should I adjust the test to use the (deprecated in PdfCompilerCompat.h)
pdf_long, or change the API?
Regards,
Nick.
test/unit/EncryptTest.cpp: In member function ‘void
EncryptTest::TestEncrypt(PoDoFo::PdfEncrypt*)’:
test/unit/EncryptTest.cpp:211:83: error: no matching function for call to
‘PoDoFo::PdfEncrypt::Decrypt(unsigned char*&, int&, unsigned char*&, long int&)’
pEncrypt->Decrypt( pEncryptedBuffer, nOutputLen, pDecryptedBuffer,
m_lLen );
^
test/unit/EncryptTest.cpp:211:83: note: candidate is:
In file included from podofo/src/podofo-base.h:52:0,
from src/podofo.h:47,
from test/unit/EncryptTest.h:24,
from test/unit/EncryptTest.cpp:21:
src/base/PdfEncrypt.h:368:18: note: virtual void
PoDoFo::PdfEncrypt::Decrypt(const unsigned char*, PoDoFo::pdf_long, unsigned
char*, PoDoFo::pdf_long&) const
virtual void Decrypt(const unsigned char* inStr, pdf_long inLen,
^
src/base/PdfEncrypt.h:368:18: note: no known conversion for argument 4 from
‘long int’ to ‘PoDoFo::pdf_long& {aka int&}’
test/unit/CMakeFiles/podofo-test.dir/build.make:146: recipe for target
'test/unit/CMakeFiles/podofo-test.dir/EncryptTest.cpp.o' failed
make[2]: *** [test/unit/CMakeFiles/podofo-test.dir/EncryptTest.cpp.o] Error 1
------------------------------------------------------------------------------
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users