PDFUtils.h 693 B

1234567891011121314151617181920
  1. //
  2. // PDFUtils.h
  3. // AntsContract
  4. //
  5. // Created by Ray on 12/20/16.
  6. // Copyright © 2016 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. @interface PDFUtils : NSObject
  11. +(NSString*) addSignature :(UIImage*) img to:(NSMutableDictionary*)signatureData subType:(NSString*)subtype;
  12. +(NSString *) saveTempSignature:(NSData *) image;
  13. +(CGPDFDocumentRef)OpenPDF:(NSString*) file;
  14. //+ (CGRect)scaleToSize:(CGRect )from to:(CGSize)to;
  15. +(NSString*)SavePDF:(NSMutableDictionary*) controlTemplate source:(CGPDFDocumentRef )document window_rect:(CGRect)window_rect;
  16. +(NSMutableDictionary*) loadControl:(NSString*)templateName;
  17. @end