//
//  PDFUtils.h
//  AntsContract
//
//  Created by Ray on 12/20/16.
//  Copyright © 2016 United Software Applications, Inc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface PDFUtils : NSObject
+(NSString*) addSignature :(UIImage*) img to:(NSMutableDictionary*)signatureData subType:(NSString*)subtype;
+(NSString *) saveTempSignature:(NSData *) image;
+(CGPDFDocumentRef)OpenPDF:(NSString*) file;

//+ (CGRect)scaleToSize:(CGRect )from to:(CGSize)to;
+(NSString*)SavePDF:(NSMutableDictionary*) controlTemplate source:(CGPDFDocumentRef )document window_rect:(CGRect)window_rect name:(NSString*)name;
+(NSMutableDictionary*) loadControl:(NSString*)templateName;
+(CGRect)WindowRect2PDFRect:(CGRect)rect pdf_rect:(CGRect)pdf_rect window_size:(CGSize)window_size;
+(CGRect)PDFRect2WindowRect:(CGRect)rect pdf_rect:(CGRect)pdf_rect window_size:(CGSize)window_size;
+(CGPDFDocumentRef)OpenPDFFromData:(NSData *)pdfData;
+(CGRect) QuerySize:(CGPDFDocumentRef)document;
+(CGSize) QueryPDFSizeFromData:(NSData *)pdfData;
@end
