pdfSetPSLevel
Set the PostScript level.
void pdfSetPSLevel(PDFPostScriptLevel level)
This function sets the PostScript level to one of the following:
pdfPSLevel1
: Level 1 PostScript - uncompresses all images and converts them to black-and-white (generally not a good idea, unless you need to print on a Level 1 printer)pdfPSLevel1Sep
: Level 1 separable PostScript - all colors are converted to CMYK, and images are written with separate stream data for the four componentspdfPSLevel2
: Level 2 PostScript - supports color images and image compression (this is the default level)pdfPSLevel2Gray
: grayscale Level 2 PostScript - all colors, including images, are converted to grayscalepdfPSLevel2Sep
: Level 2 separable PostScript - all colors are converted to CMYK, and the PostScript separation convention operators are used to handle custom (spot) colorspdfPSLevel3
: Level 3 PostScript - similar tolevel2
, but enables some Level 3 featurespdfPSLevel3Gray
: grayscale Level 3 PostScript - all colors, including images, are converted to grayscalepdfPSLevel3Sep
: Level 3 separable PostScript - similar topdfPSLevel2Sep
, but enables some Level 3 features
C:
/* generate Level 3 PostScript files */
pdfSetPSLevel(pdfPSLevel3);