Copy link to clipboard
Copied
I am writing a plugin that is required to set 27 PDF Export presets prior to exporting a single page to a PDF document. I have tracked down 25 of these presets ( a couple, thanks to this forum) but I have no idea what I should use to set the final two options. I have searched IPDFExportPrefs, searching for key words that might give me a hint to no avail. The options are:
1.) On the Output page of the PDF Presets dialog, in the Color box I am required to set Color Conversion to "No Color Conversion." I have searched for "kNoConversion", "Conversion", "Destination" and "Convert" (the last two are key words in the options a user might choose in the dropdown control). I get hits but none of them are remotely related to color conversion, as far as I can tell.
2.) On the Compression page in the Color and Grayscale Images group boxes, each has a dropdown control to select "Image Quality." I am required to set it at Maximum. Again, I have searched on "ImageQuality", "Maximum", "Quality" and "Medium" the latter a keyword in one of the dropdown choices. I find enums that use "Maximum" and "Medium" in their definition lists, but I can find no function that actually uses these values (after finding these enums I searched for one of the values in the list...in this particular header the author kindly lists the values available for use with each member function).
I would greatly appreciate any assistance the forum could render.
R,
John
Copy link to clipboard
Copied
I've given up to hard wire all those PDF export values, instead I run an embedded script.
You'd need
app.pdfExportPreferences.colorBitmapQuality = CompressionQuality.MAXIMUM;
app.pdfExportPreferences.colorBitmapQuality = CompressionQuality.MINIMUM;
app.pdfExportPreferences.pdfColorSpace = PDFColorSpace.UNCHANGED_COLOR_SPACE;
The equivalent would be
kSetPDFExportPrefsCmdBoss
IID_IPDFEXPORTPREFS=>SetPDFExCompressColorImages()
Maximum is mapped to kExportCompressImagesAutoLZWJPEGHigh,
Minimum is mapped to kExportCompressImagesAutoLZWJPEGLow
IID_IPDFEXPORTPREFS=>SetPDFExColorSpace()
kExportPDFColorSpacePassthru
Dirk
Copy link to clipboard
Copied
Thanks, Dirk. I appreciate the information. This is going to make a certain management type very happy.
R,
John
Find more inspiration, events, and resources on the new Adobe Community
Explore Now