Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

IDCS5 Win/Mac PDF Export preset options

Explorer ,
Oct 11, 2010 Oct 11, 2010

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

TOPICS
SDK
516
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Oct 11, 2010 Oct 11, 2010

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;

and so forth.

The equivalent would be

kSetPDFExportPrefsCmdBoss

IID_IPDFEXPORTPREFS=>SetPDFExCompressColorImages()

Maximum is mapped to kExportCompressImagesAutoLZWJPEGHigh,

Minimum is mapped to kExportCompressImagesAutoLZWJPEGLow

IID_IPDFEXPORTPREFS=>SetPDFExColorSpace()

kExportPDFColorSpacePassthru

Dirk

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 11, 2010 Oct 11, 2010
LATEST

Thanks, Dirk.  I appreciate the information.  This is going to make a certain management type very happy.

R,

John

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines