     public var creationDate: NSDate?
     public var version:Float = 0.0
     
-    static func documentFromFile(filePath: String, password: String?) -> PDFDocument? {
+    static func documentFromFile(filePath: String, password: String?) throws -> PDFDocument? {
         
         var document:PDFDocument? = PDFDocument.unarchiveDocumentForFile(filePath, password: password)
         
         if document == nil {
-            
-            document = PDFDocument(filePath: filePath, password: password)
+            do {
+                document = try PDFDocument(filePath: filePath, password: password)
+            } catch let err {
+                throw err
+            }
         }
         
         return document

            
        } catch let err {
            
            print (err)
        }
    }
    

    }
    
    public func reloadProperties() {
        do {
            try self.loadDocumentInformation()
        } catch let _ {
            
        }
    }
    
    public func boundsForPDFPage(page:Int) -> CGRect {
