Hello,
I think i have found a bug in the CGPDFDictionary.cs class. There is a problem in the function "MapFromCGPdfObject" where the cases are all shifted by 1; (null=0, boolean=1,....).
But according to the mac os developer documentation the enum should be:

enumCGPDFObjectType  
<http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/CGPDFObjectType>
  {
   kCGPDFObjectTypeNull  
<http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeNull>
  = 1,
   kCGPDFObjectTypeBoolean  
<http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeBoolean>,
   kCGPDFObjectTypeInteger  
<http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeInteger>,
   kCGPDFObjectTypeReal  
<http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeReal>,
   kCGPDFObjectTypeName  
<http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeName>,
   kCGPDFObjectTypeString  
<http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeString>,
   kCGPDFObjectTypeArray  
<http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeArray>,
   kCGPDFObjectTypeDictionary  
<http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeDictionary>,
   kCGPDFObjectTypeStream  
<http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeStream>
};typedef enumCGPDFObjectType  
<http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/CGPDFObjectType>
  CGPDFObjectType;

so the case should start from 1 (null=1, boolean=2...)


I'm using Monotouch 4.2.2.

Bye
Mirco

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to