Contents

convert(_:consumer:options:)

Uses a PostScript converter to convert PostScript data to PDF data.

Declaration

func convert(_ provider: CGDataProvider, consumer: CGDataConsumer, options: CFDictionary?) -> Bool

Parameters

  • provider:

    A Quartz data provider that supplies PostScript data.

  • consumer:

    A Quartz data provider that will receive the resulting PDF data.

  • options:

    This parameter should be NULL; it is reserved for future expansion of the API.

Return Value

A Boolean value that indicates whether the PostScript conversion completed successfully (true if it did).

Discussion

The conversion is thread safe, however it is not possible to have more than one conversion job in process within a given address space or process. If a given thread is running a conversion and another thread starts a new conversion, the second conversion will block until the first conversion is complete.

See Also

Instance Methods