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); 
                                        
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to