Mercurial > projects > dstep
annotate dstep/applicationservices/coregraphics/CGPDFContext.d @ 12:9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 03 Aug 2009 14:00:21 +0200 |
parents | |
children |
rev | line source |
---|---|
12
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
1 /** |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
3 * Authors: Jacob Carlborg |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
4 * Version: Initial created: Aug 1, 2009 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
6 */ |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
7 module dstep.applicationservices.coregraphics.CGPDFContext; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
8 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
9 import dstep.corefoundation.CFBase; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
10 import dstep.corefoundation.CFDictionary; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
11 import dstep.corefoundation.CFURL; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
12 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
13 import dstep.applicationservices.coregraphics.CGBase; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
14 import dstep.applicationservices.coregraphics.CGContext; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
15 import dstep.applicationservices.coregraphics.CGDataConsumer; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
16 import dstep.applicationservices.coregraphics.CGGeometry; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
17 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
18 extern (C) |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
19 { |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
20 extern |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
21 { |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
22 const CFStringRef kCGPDFContextMediaBox; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
23 const CFStringRef kCGPDFContextCropBox; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
24 const CFStringRef kCGPDFContextBleedBox; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
25 const CFStringRef kCGPDFContextTrimBox; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
26 const CFStringRef kCGPDFContextArtBox; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
27 const CFStringRef kCGPDFContextTitle; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
28 const CFStringRef kCGPDFContextAuthor; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
29 const CFStringRef kCGPDFContextSubject; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
30 const CFStringRef kCGPDFContextKeywords; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
31 const CFStringRef kCGPDFContextCreator; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
32 const CFStringRef kCGPDFContextOwnerPassword; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
33 const CFStringRef kCGPDFContextUserPassword; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
34 const CFStringRef kCGPDFContextEncryptionKeyLength; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
35 const CFStringRef kCGPDFContextAllowsPrinting; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
36 const CFStringRef kCGPDFContextAllowsCopying; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
37 const CFStringRef kCGPDFContextOutputIntent; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
38 const CFStringRef kCGPDFXOutputIntentSubtype; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
39 const CFStringRef kCGPDFXOutputConditionIdentifier; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
40 const CFStringRef kCGPDFXOutputCondition; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
41 const CFStringRef kCGPDFXRegistryName; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
42 const CFStringRef kCGPDFXInfo; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
43 const CFStringRef kCGPDFXDestinationOutputProfile; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
44 const CFStringRef kCGPDFContextOutputIntents; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
45 } |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
46 } |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
47 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
48 extern (C) |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
49 { |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
50 CGContextRef CGPDFContextCreate (CGDataConsumerRef consumer, CGRect* mediaBox, CFDictionaryRef auxiliaryInfo); |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
51 CGContextRef CGPDFContextCreateWithURL (CFURLRef url, CGRect* mediaBox, CFDictionaryRef auxiliaryInfo); |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
52 void CGPDFContextClose (CGContextRef context); |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
53 void CGPDFContextBeginPage (CGContextRef context, CFDictionaryRef pageInfo); |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
54 void CGPDFContextEndPage (CGContextRef context); |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
55 void CGPDFContextSetURLForRect (CGContextRef context, CFURLRef url, CGRect rect); |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
56 void CGPDFContextAddDestinationAtPoint (CGContextRef context, CFStringRef name, CGPoint point); |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
57 void CGPDFContextSetDestinationForRect (CGContextRef context, CFStringRef name, CGRect rect); |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
58 } |