On May 6, 2013, at 11:37 AM, Christian Schmitz wrote: > > Am 06.05.2013 um 20:32 schrieb Peter Truskier <[email protected]>: > >> Hi, >> >> I am wondering whether the function "isColorPage" is designed to take into >> consideration whether the page will actually contain color marks on the >> page, or merely whether objects with a nominal color fill or stroke exist on >> the page. > > Well, it's more like, if it says b/w than it is b/w. > If it says true, the page may have colors.
Right. Sounds like the key word here is "might" which is what I was guessing, though not hoping for ;-) > >> For example, if a page contains a text object with a red fill color, BUT the >> contents of that text object is nothing but one or more space characters, >> will the function return true or false? > > Looking on code, it looks like a space will be enough to mark the page as > having color. Great. Thanks for looking into it, Christian... > >> The DynaPDF reference says "The function does not return when a color is >> set, the color must be used by an object.", but this doesn't quite answer >> the question in the case of an empty string… > > > Well, if you set color to red, than to black and finally write text, you have > black text and the red color is ignored. > > Greetings > Christian _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
