IMO, checking for legal values is absolutely the right idea. Daniel
On Wed, Feb 24, 2010 at 3:56 AM, Johannes Koch < [email protected]> wrote: > Hi, > > when adding features to the current PDFBox code, I sometimes wonder whether > it would be a good thing to check for correct values in setters. E.g. the DL > in a stream dictionary must be a non-negative integer according to PDF > 32000-1:2008. In some dictionaries some entries only allow values from a > list of defined values. > > pro: PDFBox will create proper PDF > > contra: this may be restricted to one PDF version and needs to be updated > if the value definition changes from spec to spec > > -- > Johannes Koch > Fraunhofer Institute for Applied Information Technology FIT > Web Compliance Center > Schloss Birlinghoven, D-53757 Sankt Augustin, Germany > Phone: +49-2241-142628 Fax: +49-2241-142065 >
