RAPDFPage.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // PDFPage.h
  3. // pdftest
  4. //
  5. // Created by Ray on 10/11/16.
  6. // Copyright © 2016 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. #import "UIKit/UIDocument.h"
  11. #import "PDFDrawable.h"
  12. @interface RAPDFPage : NSObject<PDFDrawableDelegate>
  13. @property (nonatomic,strong) NSMutableDictionary* pageTemplate;
  14. @property double margin_left;
  15. @property double margin_right;
  16. @property double margin_top;
  17. @property double margin_bottom;
  18. @property (nonatomic,strong) NSMutableDictionary* header;
  19. @property (nonatomic,strong) NSMutableDictionary* footer;
  20. @property CGRect rect;
  21. @property CGRect drawable_rect;
  22. @property double pos_x;
  23. @property double pos_y;
  24. @property double header_height;
  25. -(instancetype) init:(NSMutableDictionary *)page size:(CGRect)rect;
  26. -(void) Draw:(CGContextRef) context dataSource:(NSMutableDictionary*)data;
  27. -(int) QueryPageCount:(CGContextRef) context dataSource:(NSMutableDictionary*)data;
  28. @property (nonatomic,strong) NSMutableDictionary* data;
  29. @property int pagecount;
  30. -(void) DirectDraw:(CGContextRef) context page:(CGPDFPageRef)page;
  31. -(void) DirectDraw:(CGContextRef) context drawable:(PDFDrawable*)drawable_obj;
  32. @end