Mac OS 9
CGPDFDocument.h
Go to the documentation of this file.
1 
20 #ifndef __CGPDFDOCUMENT__
21 #define __CGPDFDOCUMENT__
22 
23 #ifndef __CGBASE__
24 #include <CGBase.h>
25 #endif
26 
27 #ifndef __CGDATAPROVIDER__
28 #include <CGDataProvider.h>
29 #endif
30 
31 #ifndef __CGGEOMETRY__
32 #include <CGGeometry.h>
33 #endif
34 
35 #ifndef __CFURL__
36 #include <CFURL.h>
37 #endif
38 
39 #if PRAGMA_ONCE
40 #pragma once
41 #endif
42 
43 #ifdef __cplusplus
44 extern "C"
45 {
46 #endif
47 
48 #if PRAGMA_IMPORT
49 #pragma import on
50 #endif
51 
52 #if PRAGMA_STRUCT_ALIGN
53 #pragma options align = mac68k
54 #elif PRAGMA_STRUCT_PACKPUSH
55 #pragma pack(push, 2)
56 #elif PRAGMA_STRUCT_PACK
57 #pragma pack(2)
58 #endif
59 
60  typedef struct CGPDFDocument *CGPDFDocumentRef;
61  /* Create a PDF document, using `provider' to obtain the document's
62  * data. */
71  CGPDFDocumentRef
72  CGPDFDocumentCreateWithProvider(CGDataProviderRef provider);
73 
74  /* Create a PDF document from `url'. */
83  CGPDFDocumentRef
85 
86  /* Increment the retain count of `document' and return it. All PDF
87  * documents are created with an initial retain count of 1. */
96  CGPDFDocumentRef
97  CGPDFDocumentRetain(CGPDFDocumentRef document);
98 
99  /* Decrement the retain count of `document'. If the retain count reaches 0,
100  * then free it and any associated resources. */
109  void
110  CGPDFDocumentRelease(CGPDFDocumentRef document);
111 
112  /* Return the number of pages in `document'. */
121  int
122  CGPDFDocumentGetNumberOfPages(CGPDFDocumentRef document);
123 
124  /* Return the media box of page number `page' in `document'. */
133  CGRect
134  CGPDFDocumentGetMediaBox(CGPDFDocumentRef document, int page);
135 
136  /* Return the crop box of page number `page' in `document'. */
145  CGRect
146  CGPDFDocumentGetCropBox(CGPDFDocumentRef document, int page);
147 
148  /* Return the bleed box of page number `page' in `document'. */
157  CGRect
158  CGPDFDocumentGetBleedBox(CGPDFDocumentRef document, int page);
159 
160  /* Return the trim box of page number `page' in `document'. */
169  CGRect
170  CGPDFDocumentGetTrimBox(CGPDFDocumentRef document, int page);
171 
172  /* Return the art box of page number `page' in `document'. */
181  CGRect
182  CGPDFDocumentGetArtBox(CGPDFDocumentRef document, int page);
183 
184  /* Return the rotation angle (in degrees) of page number `page' in
185  * `document'. */
194  int
195  CGPDFDocumentGetRotationAngle(CGPDFDocumentRef document, int page);
196 
197 #if PRAGMA_STRUCT_ALIGN
198 #pragma options align = reset
199 #elif PRAGMA_STRUCT_PACKPUSH
200 #pragma pack(pop)
201 #elif PRAGMA_STRUCT_PACK
202 #pragma pack()
203 #endif
204 
205 #ifdef PRAGMA_IMPORT_OFF
206 #pragma import off
207 #elif PRAGMA_IMPORT
208 #pragma import reset
209 #endif
210 
211 #ifdef __cplusplus
212 }
213 #endif
214 
215 #endif /* __CGPDFDOCUMENT__ */
xxx put contents here xxx
xxx put contents here xxx
xxx put contents here xxx
int CGPDFDocumentGetRotationAngle(CGPDFDocumentRef document, int page)
int CGPDFDocumentGetNumberOfPages(CGPDFDocumentRef document)
CGRect CGPDFDocumentGetMediaBox(CGPDFDocumentRef document, int page)
CGRect CGPDFDocumentGetCropBox(CGPDFDocumentRef document, int page)
CGRect CGPDFDocumentGetArtBox(CGPDFDocumentRef document, int page)
CGRect CGPDFDocumentGetTrimBox(CGPDFDocumentRef document, int page)
CGPDFDocumentRef CGPDFDocumentCreateWithURL(CFURLRef url)
CGPDFDocumentRef CGPDFDocumentCreateWithProvider(CGDataProviderRef provider)
CGRect CGPDFDocumentGetBleedBox(CGPDFDocumentRef document, int page)
void CGPDFDocumentRelease(CGPDFDocumentRef document)
CGPDFDocumentRef CGPDFDocumentRetain(CGPDFDocumentRef document)
Definition: CGGeometry.h:78