Hi, Am 15.05.2013 um 15:26 schrieb Andreas Lehmkuehler <[email protected]>:
> Hi, > > Am 14.05.2013 18:17, schrieb Maruan Sahyoun: >> Hi Sébastien, >> >> to get from the PDModel objects (high level api) to the COS Model objects >> (low level API) you'd > > use getCOSObject() which always returns a COSBase but you could either cast > > to COSDictionary or > > use instanceof to inspect if it's really one. COSObjectable is used as a > > marker to mark that > > a PDModel object has a representation in the COS model. > That's correct, the PDModel is the high level api and there should be no need > to access the underlying data directly. > >> See http://pdfbox.apache.org/userguide/index.html for a quick intro into PD >> Model and COS Model >> >> You are right, it could have been implemented differently but currently >> that's how it works. This comment was meant about the fact that although it's clear that PDColorSpace is a dictionary getCOSObject() returns COSBase instead of COSDictionary which might have been clearer and easier to handle. BR Maruan
