Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
2.3 KiB

  1. /*
  2. File: CGPDFContext.h
  3. Contains: CoreGraphics PDF context
  4. Version: QuickTime 7.3
  5. Copyright: (c) 2007 (c) 2000-2001 by Apple Computer, Inc., all rights reserved.
  6. Bugs?: For bug reports, consult the following page on
  7. the World Wide Web:
  8. http://developer.apple.com/bugreporter/
  9. */
  10. #ifndef CGPDFCONTEXT_H_
  11. #define CGPDFCONTEXT_H_
  12. #ifndef __CGBASE__
  13. #include <CGBase.h>
  14. #endif
  15. #ifndef __CGCONTEXT__
  16. #include <CGContext.h>
  17. #endif
  18. #ifndef __CGDATACONSUMER__
  19. #include <CGDataConsumer.h>
  20. #endif
  21. #ifndef __CFDICTIONARY__
  22. #include <CFDictionary.h>
  23. #endif
  24. #if PRAGMA_ONCE
  25. #pragma once
  26. #endif
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. #if PRAGMA_IMPORT
  31. #pragma import on
  32. #endif
  33. /* Create a PDF context, using `consumer' for output. `mediaBox' is the
  34. * default page media bounding box; if NULL, then a default page size is
  35. * used. `auxiliaryInfo' specifies additional information used by the PDF
  36. * context when generating the PDF file. The keys and values in
  37. * `auxiliaryInfo' must be CFStrings. The following keys are recognized:
  38. * Key Value
  39. * -------- --------
  40. * Title The document's title.
  41. * Author The name of the person who created the document.
  42. * Creator If the document was converted to PDF from another format,
  43. * the name of the application that created the original
  44. * document from which it was converted.
  45. */
  46. /*
  47. * CGPDFContextCreate()
  48. *
  49. * Availability:
  50. * Non-Carbon CFM: not available
  51. * CarbonLib: not available
  52. * Mac OS X: in version 10.0 and later
  53. */
  54. EXTERN_API_C( CGContextRef )
  55. CGPDFContextCreate(
  56. CGDataConsumerRef consumer,
  57. const CGRect * mediaBox,
  58. CFDictionaryRef auxiliaryInfo);
  59. /* Convenience function: create a PDF context, writing to `url'. */
  60. /*
  61. * CGPDFContextCreateWithURL()
  62. *
  63. * Availability:
  64. * Non-Carbon CFM: not available
  65. * CarbonLib: not available
  66. * Mac OS X: in version 10.0 and later
  67. */
  68. EXTERN_API_C( CGContextRef )
  69. CGPDFContextCreateWithURL(
  70. CFURLRef url,
  71. const CGRect * mediaBox,
  72. CFDictionaryRef auxiliaryInfo);
  73. #ifdef PRAGMA_IMPORT_OFF
  74. #pragma import off
  75. #elif PRAGMA_IMPORT
  76. #pragma import reset
  77. #endif
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81. #endif /* CGPDFCONTEXT_H_ */