I'm having a problem with the Parms argument in PdfFilter->Decode. I don't suppose someone could clear this up. The dictionary contains a sub dictionary containing the Parms. See below. <</DecodeParms<</Columns 4/Predictor 12>>/Filter/FlateDecode/ID[<6647557224A6C102A60F6D82BB22C18D><AA383B5CF85B7F4BACB9D502B93343E9>]/Index[10 20]/Info 9 0 R/Length 64/Prev 23381/Root 11 0 R/Size 30/Type/XRef/W[1 2 1]>>
If I know which object this is and extract the dictionary then I can't see why it won't work. PdfMemDocument *doc = new PdfMemDocument;doc->Load("test.pdf");PdfVecObjects vecs;vecs = doc->GetObjects(); PdfObject *obj = vecs[14]; // I happen to know that it is this dictionaryPdfDictionary *dict = new PdfDictionary;*dict = obj->GetDictionary(); //When I print this out by converting the dict to a PdfVariant and calling ToString I get the above dictionary (the whole lot, sub dictionary with the parms and all). //I also use that same PdfVariant to extract the data type via GetDataTypeString() and it tells //me that the data type is a Dictionary As far as I can see, all I need to do is pass the dict to the PdfFilter->Decode function like below. The output is just jumble though. If I am not targeting the XREF stream then this setup works fine, I can successfully decode the stream if I am not using Decode Parms.I seem to be doing something wrong with the Decode Parms. Any clues as to what that might be? Do I need to extract the Sub Dictionary from the above dictionary to make this work? If so how? (Thanks). //the below outputs jumble only when I need to use Decode Parms. I'm probably doing it wrong. myfilter->Decode(inputbuffer, buffersize, &outputbuffer,outputsize,dict);
------------------------------------------------------------------------------
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users