Adobe.com
Contents Suites Classes Class Index Member Index

AIFOConversion.h File Reference

#include "AITypes.h"
#include "AIForeignObject.h"
#include "AIFont.h"
#include "AIHeaderBegin.h"
#include "AIHeaderEnd.h"

Go to the source code of this file.

Classes

struct  AIFOConversionInfoCollector
 Specify as the info value in the AIFOConversionOptions passed to AIFOConversionSuite::ConvertToNative(), to provide information about the conversion process to a callback. More...
struct  AIFOConversionOptions
 Drawing options for AIFOConversionSuite::ConvertToNative(). More...
struct  AIFOConversionSuite
 These functions allows you to convert artwork and collect information about its contents. More...

Defines

#define kAIFOConversionSuite   "AI FO Conversion Suite"
#define kAIFOConversionSuiteVersion3   AIAPI_VERSION(3)
#define kAIFOConversionSuiteVersion   kAIFOConversionSuiteVersion3
#define kAIFOConversionVersion   kAIFOConversionSuiteVersion
#define kAIFOConversionErr   '!FOc'
 Error in foreign-object conversion; see AIFOConversionSuite.

Typedefs

typedef struct _AIAGMColorSpace * AIAGMColorSpaceHandle
 Wrap this AGMColorSpace* as a CAGMColorSpace or some baseclass in order to use it.
typedef ai::int32 AIFOConversionFlags
 Flags for conversion of a foreign object.
typedef void(* AIConversionInfoProc )(AIFOConversionInfoSelector selector, void *info, void *data)
 The prototype for a callback function from AIFOConversionSuite::ConvertToNative() that acts on information about the conversion.
typedef void(* AIVisitFontProc )(AIFontKey fontkey, void *data)
 The prototype for a callback function from AIFOConversionSuite::EnumerateFonts() that acts on fonts used by a foreign object.
typedef void(* AIVisitFontExtendedProc )(AIFontKey fontkey, AIBoolean wasEmbedded, void *data)
 For internal use only.
typedef void(* AIVisitContentProc )(AIFOContentInfoSelector selector, void *info, void *data)
 The prototype for a callback function from AIFOConversionSuite::EnumerateContents() that acts on information about the contents of a foreign object.

Enumerations

enum  AIFOConversionInfoSelector {
  kAIFOConversionInfoNone, kAIFOConversionInfoFauxedFont, kAIFOConversionInfoUnknownAxialShading, kAIFOConversionInfoUnknownRadialShading,
  kAIFOConversionInfoUnknownAIMConstruct, kAIFOConversionInfoTextOutlined, kAIFOConversionInfoTextRasterized
}
 

Types of errors that can occur during the conversion process, sent to a callback from AIFOConversionSuite::ConvertToNative(), Depending on the type, the callback can also receive additional information about as info, a void * which you must cast to an appropriate type as specified.

More...
enum  AIFOContentInfoSelector {
  kAIFOContentInfoNone, kAIFOContentInfoHasTransparency, kAIFOContentInfoMarksProcessPlates, kAIFOContentInfoMarksCMYKPlates,
  kAIFOContentInfoHasOverPrint, kAIFOContentInfoHasText, kAIFOContentInfoHasGradient, kAIFOContentInfoHasGradientMesh,
  kAIFOContentInfoSpotColor, kAIFOContentInfoRasterTransform, kAIFOContentInfoPaintServerRasterRecord, kAIFOContentInfoHasNonImage
}
 

Types of information about the contents of foreign object that can be collected and sent to a callback from AIFOConversionSuite::EnumerateContents(),.

More...
enum  AIFOConversionFlagValue {
  kAIFOConversionDefault = 0, kAIFOConversionFull = 1 << 0, kAIFOConversionStrokePaths = 1 << 1, kAIFOConversionSimplifyPaths = 1 << 2,
  kAIFOConversionSuppressAttributes = 1 << 3, kAIFOConversionNoColorizedGray = 1 << 4, kAIFOConversionUseNewellMixing = 1 << 5, kAIFOConversionNoNChannelIndexedImages = 1 << 6
}
 

Flag values that specify how the conversion of a foreign object to native artwork is performed.

More...

Detailed Description


Define Documentation

#define kAIFOConversionSuite   "AI FO Conversion Suite"
#define kAIFOConversionSuiteVersion   kAIFOConversionSuiteVersion3
#define kAIFOConversionSuiteVersion3   AIAPI_VERSION(3)
#define kAIFOConversionVersion   kAIFOConversionSuiteVersion

Typedef Documentation

typedef struct _AIAGMColorSpace* AIAGMColorSpaceHandle

Wrap this AGMColorSpace* as a CAGMColorSpace or some baseclass in order to use it.

typedef void(* AIConversionInfoProc)(AIFOConversionInfoSelector selector, void *info, void *data)

The prototype for a callback function from AIFOConversionSuite::ConvertToNative() that acts on information about the conversion.

Parameters:
selector Identifies the type of information being supplied.
info A pointer to information specific to the selector. To inspect its contents, cast it to an appropriate type, according to the selector.
data A pointer to developer-defined data, passed back from AIFOConversionSuite::ConvertToNative()

Flags for conversion of a foreign object.

A logical OR of AIFOConversionFlagValue bit flags.

typedef void(* AIVisitContentProc)(AIFOContentInfoSelector selector, void *info, void *data)

The prototype for a callback function from AIFOConversionSuite::EnumerateContents() that acts on information about the contents of a foreign object.

Parameters:
selector Identifies the type of information being supplied.
info A pointer to information specific to the selector. To inspect its contents, cast it to an appropriate type according to the selector.
data A pointer to developer-defined data, passed back from AIFOConversionSuite::EnumerateContents().
typedef void(* AIVisitFontExtendedProc)(AIFontKey fontkey, AIBoolean wasEmbedded, void *data)

For internal use only.

The prototype for a callback function from AIFOConversionSuite::EnumerateEmbeddedFonts() that acts on fonts used by a foreign object.

Parameters:
fontkey A font in the enumeration.
wasEmbedded set true if the font is embedded in PDF or EPS
data A pointer to developer-defined data, passed back from AIFOConversionSuite::EnumerateFonts().
typedef void(* AIVisitFontProc)(AIFontKey fontkey, void *data)

The prototype for a callback function from AIFOConversionSuite::EnumerateFonts() that acts on fonts used by a foreign object.

Parameters:
fontkey A font in the enumeration.
data A pointer to developer-defined data, passed back from AIFOConversionSuite::EnumerateFonts().

Enumeration Type Documentation

Types of information about the contents of foreign object that can be collected and sent to a callback from AIFOConversionSuite::EnumerateContents(),.

Enumerator:
kAIFOContentInfoNone 

No information is collected.

No info is passed; pointer is NULL.

kAIFOContentInfoHasTransparency 

Passes transparency state of contained art in info as const AIBoolean*.

kAIFOContentInfoMarksProcessPlates 

Collects information on marks process plate state of contained art in info as const AIBoolean*.

kAIFOContentInfoMarksCMYKPlates 

Passes marks CMYK plate state of contained art; info contains the value as const AIBoolean [4] c,m,y,k.

kAIFOContentInfoHasOverPrint 

Passes overprint state of contained art in info as const AIBoolean*.

kAIFOContentInfoHasText 

Passes text state of contained art in info as const AIBoolean*.

kAIFOContentInfoHasGradient 

Passes gradient state of contained art in info as const AIBoolean*.

kAIFOContentInfoHasGradientMesh 

Passes gradient mesh state of contained art in info as const AIBoolean*.

kAIFOContentInfoSpotColor 

Passes spot colors in contained art in info as AICustomColorHandle.

kAIFOContentInfoRasterTransform 

Each time a drawing operation involves an image as the source of color data, passes the transformation matrix applied in info as AIRealMatrix.

kAIFOContentInfoPaintServerRasterRecord 

Each time a drawing operation involves an image as the source of color data, passes image information in info as AIRasterRecord.

kAIFOContentInfoHasNonImage 

Passes true if the object contains anything other than images and clipping operations, false otherwise.

Value passed in info as const AIBoolean*

Flag values that specify how the conversion of a foreign object to native artwork is performed.

Enumerator:
kAIFOConversionDefault 

Preserves full visual fidelity and spot colors.

May create other foreign objects.

kAIFOConversionFull 

Performs full, but possibly lossy, conversion, converts spot colors to process colors.

Does not create other foreign objects. Rasterizes objects that cannot be represented as native art, including objects filled with PDF shading types, device-n (spot) rasters, and so on.

kAIFOConversionStrokePaths 

Replaces paths with stroked versions.

kAIFOConversionSimplifyPaths 

Simplifies paths so that no subpaths intersect.

kAIFOConversionSuppressAttributes 

Suppresses object-level attributes, such as visibility, Live Effects, transparency, and so on.

Use this to convert only the contents of the foreign object (such as the display list).

Specify only for AIFOConversionSuite::ConvertToNative(). This is the default behavior for AIFOConversionSuite::OutlineLegacyText().

kAIFOConversionNoColorizedGray 

Disallows colorized grayscale images in the output from conversion.

kAIFOConversionUseNewellMixing 

Forces use of Newell mixing to convert spot colors to process colors.

Newell mixing preserves the numbers of the spot color alternates.

kAIFOConversionNoNChannelIndexedImages 

Disallows NChannel/Separation/Indexed color space images in the output from conversion.

Types of errors that can occur during the conversion process, sent to a callback from AIFOConversionSuite::ConvertToNative(), Depending on the type, the callback can also receive additional information about as info, a void * which you must cast to an appropriate type as specified.

Enumerator:
kAIFOConversionInfoNone 

No problem occurred.

No info is passed; pointer is NULL.

kAIFOConversionInfoFauxedFont 

Conversion encountered a problem with fauxed fonts.

info contains the missing font name, as char *.

kAIFOConversionInfoUnknownAxialShading 

Conversion encountered a problem with axial shading.

No info is passed; pointer is NULL.

kAIFOConversionInfoUnknownRadialShading 

Conversion encountered a problem with radial shading.

No info is passed; pointer is NULL.

kAIFOConversionInfoUnknownAIMConstruct 

Conversion encountered a problem with an unknown AIM construct.

No info is passed; pointer is NULL.

kAIFOConversionInfoTextOutlined 

Conversion encountered a problem with outlined text.

No info is passed; pointer is NULL.

kAIFOConversionInfoTextRasterized 

Conversion encountered a problem with rasterized text.

No info is passed; pointer is NULL.



Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2016 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks