         }
     }
     
+    /**
+     Generate from view.
+     
+     - parameter view:       A view
+     - parameter outputPath: An outputPath to save PDF.
+     
+     - throws: A `PDFGenerateError` thrown if some error occurred.
+     */
     public class func generate(view: UIView, outputPath: String) throws {
         try generate([view],outputPath: outputPath)
     }
     
+
+    /**
+     Generate from views.
+     
+     - parameter views:      Array of views.
+     - parameter outputPath: An outputPath to save PDF.
+     
+     - throws: A `PDFGenerateError` thrown if some error occurred.
+     */
     public class func generate(views: [UIView], outputPath: String) throws {
         try generate(PDFPage.pages(views), outputPath: outputPath)
     }
     
+    /**
+     Generate from image.
+     
+     - parameter image:      An image.
+     - parameter outputPath: An outputPath to save PDF.
+     
+     - throws: A `PDFGenerateError` thrown if some error occurred.
+     */
     public class func generate(image: UIImage, outputPath: String) throws {
         try generate([image], outputPath: outputPath)
     }
     
+    /**
+     Generate from images.
+     
+     - parameter images:     Array of images.
+     - parameter outputPath: An outputPath to save PDF.
+     
+     - throws: A `PDFGenerateError` thrown if some error occurred.
+     */
     public class func generate(images: [UIImage], outputPath: String) throws {
         try generate(PDFPage.pages(images), outputPath: outputPath)
     }
 
+    /**
+     Generate from image path.
+     
+     - parameter imagePath:  An image path.
+     - parameter outputPath: An outputPath to save PDF.
+     
+     - throws: A `PDFGenerateError` thrown if some error occurred.
+     */
     public class func generate(imagePath: String, outputPath: String) throws {
         try generate([imagePath], outputPath: outputPath)
     }
     
+    /**
+     Generate from image paths.
+     
+     - parameter imagePaths: Arrat of image paths.
+     - parameter outputPath: An outputPath to save PDF.
+     
+     - throws: A `PDFGenerateError` thrown if some error occurred.
+     */
     public class func generate(imagePaths: [String], outputPath: String) throws {
         try generate(PDFPage.pages(imagePaths), outputPath: outputPath)
     }
     
+    
+    /**
+     Generate from page object.
+     
+     - parameter page: A `PDFPage`'s object.
+     
+     - throws: A `PDFGenerateError` thrown if some error occurred.
+     
+     - returns: PDF's binary data (NSData)
+     */
     @warn_unused_result
     public class func generate(page: PDFPage) throws -> NSData {
         return try generate([page])
     }
 
+    /**
+     Generate from page objects.
+     
+     - parameter pages: Array of `PDFPage`'s objects.
+     
+     - throws: A `PDFGenerateError` thrown if some error occurred.
+     
+     - returns: PDF's binary data (NSData)
+     */
     @warn_unused_result
     public class func generate(pages: [PDFPage]) throws -> NSData {
         guard !pages.isEmpty else {

    }
}

public enum PDFGenerateError: ErrorType {
    case ZeroSizeView(UIView)
    case ImageLoadFailed(String)

import Foundation
import UIKit

/**
 PDFPage type
 
 - WhitePage: A white view (CGSize).
 - View:      A view. (UIView)
 - Image:     An image (UIImage)
 - ImagePath: An image path (String)
 */
public enum PDFPage {
    case WhitePage(CGSize)
    case View(UIView)
