Ok, I realise that it's probably under miles of code somewhere in a myriad or
source files.Can I ask this question then....Does the buffer for PdfFilter
require me to declare a size of that buffer when declaring the buffer. API
below:.Decode (const char *pInBuffer, pdf_long lInLen, char **ppOutBuffer,
pdf_long *plOutLen, const PdfDictionary *pDecodeParms=NULL) const
So, for pInBuffer do I declare my buffers size by doing this.
const char* mybuffer = new char[10]; //for a buffer size of 10 for example.
OR ,, do I leave the size for the lInLen argument. eg
const char* mybuffer = new char;
pdf_long bufferlenght = 10;
OR,, have I completely misinterpreted the API ?
Thanks
From: abdom...@hotmail.com
To: podofo-users@lists.sourceforge.net
Subject: ePdfError_ValueOutOfRange - PdfFilter
Date: Sun, 9 Feb 2014 00:06:26 +0930
I'm desperately trying to get the PdfLZWFilter to work. When applying the
variables for the PdfFilter I'm getting the error ePdfError_ValueOutOfRange .
I've come to the conclusion after a week on this, that I'm interpreting the
arguments wrong.I'm not the best programmer in the world so sum subtlety in
response would be greatly appreciated. I just need an idea as to where I could
be going wrong here? Thanks
Basically I have a vector containing the characters which as a whole form the
compressed LZW stream.
Am I supposed to pre-determine the buffer size?
Long story short, I've declared the filter correctly.
PdfFilterFactory Factory;static std::auto_ptr<PdfFilter> myfilter;myfilter =
Factory.Create(ePdfFilter_LZWDecode);
char *outputbuffer;const char* inputbuffer[3000]; // tried this with just
const char* inputbuffer; as well and thought //that the Decode function may
just accumulate values one by one? Tried a buffer as small as 10 //too.
Naturally I've added the values to the buffer from the vector. Also tried
using streams.
pdf_long *outputlength;pdf_long buffersize = 3000; //There are 3000 characters
in the vector.
// I get this error below. Any tips as to what I'm doing
wrong.myfilter->Decode(inputbuffer,buffersize,&outputbuffer,outputlength,NULL);
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users