YLPageRenderer Class Reference
Inherits from | NSObject |
Declared in | YLPageRenderer.h YLPageRenderer.m |
Tasks
-
+ renderPage:inContext:atPoint:withZoom:pageInfo:search:
Renders a PDF page at a given point and specified zoom scale.
-
+ renderPage:inContext:inRectangle:pageInfo:search:
Renders a PDF page in the specified rectangle.
Class Methods
renderPage:inContext:atPoint:withZoom:pageInfo:search:
Renders a PDF page at a given point and specified zoom scale.
+ (void)renderPage:(CGPDFPageRef)page inContext:(CGContextRef)context atPoint:(CGPoint)point withZoom:(float)zoom pageInfo:(YLPageInfo *)pageInfo search:(NSArray *)searchResults
Parameters
- page
Reference to the CGPDF page.
- context
Graphics context.
- point
Point defining the upper left coordinate where rendering should start.
- zoom
The scale at which the PDF page should be rendered.
- pageInfo
Page info object of this page.
- searchResults
Array of YLSearchResult items. Can be nil.
Discussion
Renders a PDF page at a given point and specified zoom scale.
Declared In
YLPageRenderer.h
renderPage:inContext:inRectangle:pageInfo:search:
Renders a PDF page in the specified rectangle.
+ (void)renderPage:(CGPDFPageRef)page inContext:(CGContextRef)context inRectangle:(CGRect)rectangle pageInfo:(YLPageInfo *)pageInfo search:(NSArray *)searchResults
Parameters
- page
Reference to the CGPDF page.
- context
Graphics context.
- rectangle
The target rectangle the PDF page will be rendered in.
- pageInfo
Page info object of this page.
- searchResults
Array of YLSearchResult items. Can be nil.
Discussion
Renders a PDF page in the specified rectangle.
Declared In
YLPageRenderer.h