Value options for ACSwatchBook.
kPDFlattenerJpegCompression | |
kPDFlattenerZipCompression | |
kPDFlattenerJpeg2000Compression |
kPDFlattenerGrayJpegCompression | |
kPDFlattenerGrayZipCompression | |
kPDFlattenerGrayJpeg2000Compression |
kPDFlattenerMonoCCITTGroup3Compression | |
kPDFlattenerMonoCCITTGroup4Compression | |
kPDFlattenerMonoZipCompression | |
kPDFlattenerMonoRunLengthCompression |
kPDFlattenerMinimum = 0 | |
kPDFlattenerLow | |
kPDFlattenerMedium | |
kPDFlattenerHigh | |
kPDFlattenerMaximum | |
kPDFlattenerJpeg2000Lossless |
kPDFlattenerCompressColorImagesZIP = 0x01 | Setting this flag will choose the ZIP compression scheme (Flate encoding) for compressing the color images. Otherwise we will stick to the current default behavior and try to use JPEG compression wherever possible.
|
ASBool
FlattenProgressMonitor(
ASInt32
pageNum
,
ASInt32
totalPages
,
float
current
,
ASInt32
reserved
,
void
*
clientData
);
pageNum | The current page which is processed by the plug-in. Indexed at 0.
|
totalPages | The total number of pages which will be flattened.
|
current | The progress of the flattening process in percentage from 0-100.
|
reserved | Kept for future use. Default to 0.
|
clientData | The data which client registered while calling the PDFlattenerConvertEx API.
|
| |
size_t size ; | Set this to be the size of this
struct . |
Flatten Params Input parameters for flattening.
| |
float transQuality ; | Raster/Vector Balance.
|
Client registered progress monitor callback which will be called to report the progress.
| |
void * progressClientData ; | Client registered data send back along with the progress monitor callback.
|
Profile Descriptions for use with this parameter can be found with ACMakeProfileList and ACProfileListItemDescription. The best practice, however, is generally to leave this parameter as null so that defaults can be used. If this parameter is set, it overrides the values set by PDPageSetBlendingProfile and PDPresetDefaultBlendingProfile, and will be used as the blending space for each page prior to flattening. It will override any existing page blending spaces. This will be true regardless of how the existing page blending space was defined. If the parameter is null, the blending space for each page will be either the value previously set by PDPageSetBlendingSpace, or the value contained in the Group entry of the page, which defines it's Blending space. If neither of these has been used, it will be the value in PDPresefSetDefaultBlendingColorSpace if this is set. If none of the above are true, it will be the Working Space for CMYK. If that working space is not used, the profile for U.S. Web Coated SWOP (v2) will be used. Note that within a page, there may be transparency groups. These groups will contain their own blending profile, and their contents will blend via that profile. The group as a whole will then blend into the page using the page's blending profile.
| |
Color Compression Setting for Flattened color Images.
| |
Compression Setting for Flattened Grayscale Images.
| |
Compression Setting for Flattened Monochrome Images.
| |
Quality Setting for Flattened JPEG and JPEG2000 colored Images. This is valid only if the value of colorCompression is equal to kPDFlattenerJpegCompression or kPDFlattenerJpeg2000Compression
| |
Quality Setting for Flattened JPEG and JPEG2000 gray scale Images. This is valid only if the value of grayCompression is equal to kPDFlattenerGrayJpegCompression or kPDFlattenerGrayJpeg2000Compression
| |
|
ASBool
PDFlattenerConvert(
PDDoc
aPDDoc
,
PDFlatten
flattenParams
,
float
transQuality
,
ASUns32
firstPage
,
ASUns32
lastPage
,
ASUns32
*
numFlattenedPages
,
ASUns32
flags
);
aPDDoc | |
flattenParams | Input parameters for flattening.
|
firstPage | The first page of aPDDoc which we want to Flatten.
|
lastPage | The last page of aPDDoc which we want to Flatten.
|
flags | Kept for future use. Default to 0.
|
numFlattenedPages | set to the number of pages that are flattened.
|
ASBool
PDFlattenerConvertEx(
PDDoc
aPDDoc
,
PDFlatten
flattenParams
,
float
transQuality
,
ASUns32
firstPage
,
ASUns32
lastPage
,
ASUns32
*
numFlattenedPages
,
ASUns32
flags
,
FlattenProgressMonitor
FlattenProgress
,
void
*
progressClientData
);
aPDDoc | |
flattenParams | Input parameters for flattening.
|
firstPage | The first page of aPDDoc which we want to Flatten.
|
lastPage | The last page of aPDDoc which we want to Flatten.
|
flags | Kept for future use. Default to 0.
|
numFlattenedPages | set to the number of pages that are flattened.
|
FlattenProgress | the callback which we want to register with the plug-in.
|
progressClientData | any client data which client wants to get back with the callback for its own reference.
|
ASBool
PDFlattenerConvertEx2(
PDDoc
aPDDoc
,
ASUns32
firstPage
,
ASUns32
lastPage
,
ASUns32
*
numFlattenedPages
,
PDFlattenerUserParams
userParams
);
aPDDoc | |
firstPage | The first page of aPDDoc which we want to Flatten.
|
lastPage | The last page of aPDDoc which we want to Flatten.
|
numFlattenedPages | set to the number of pages that are flattened.
|
userParams | A structure object defined for user set parameters e.g flattenParams, transquality, Blending Colorspace profile, progress monitor and Compression Settings.
|
ASBool
PDFlattenerConvertEx3(
PDDoc
aPDDoc
,
ASUns32
firstPage
,
ASUns32
lastPage
,
ASUns32
*
numFlattenedPages
,
PDFlattenerUserParams
userParams
,
ASBool
embedFlattenerProfiles
);
aPDDoc | |
firstPage | The first page of aPDDoc which we want to Flatten.
|
lastPage | The last page of aPDDoc which we want to Flatten.
|
numFlattenedPages | set to the number of pages that are flattened.
|
userParams | A structure object defined for user set parameters e.g flattenParams, transquality, Blending Colorspace profile, progress monitor and Compression Settings.
|
embedFlattenerProfiles | embed Flattener color profiles.
|
ASBool
PDFlattenerInitialize(
void
);
void
PDFlattenerTerminate(
void
);