Hi Radoslaw, Thanks for the nice testcase. I commited a fix to PdfColorSeperation.BuildColorSpace and your example works now.
The probem was that csTintFunc->GetStream()->Set( ... ) was called before another calll to csTintFunc->GetDictionary().AddKey( ... ). When using PdfStreamedDocument, all calls to AddKey() have to be before a call to GetStream(). You cannot change any keys after you have set a stream. This is necessary to be able to stream streams (nice) to an output device. You might find different cases on other places in PoDoFo, but they should easy to be fixed. BTW, try catching a PdfError instead of a std::exception. PdfError will give you nice error output. Best regards, Dom On Thu, Oct 6, 2011 at 5:01 PM, Radoslaw Maliborski <[email protected]> wrote: > I try to define some separation color spaces for a presepareted document > (PdfStreamedDocument). PdfColorSeparation::BuildColorSpace does exactly the > job I otherwise would have to do manually, so I want to use it to create all > of the objects needed for my separation color spaces inside my document > object. But as soon as I call PdfColorSeparation::BuildColorSpace an > exception is raised. Shouldn't it work together? I've attached a sample > code. > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Podofo-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/podofo-users > > ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
