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

Create PDF Export Preset via Applescript

Explorer ,
Mar 22, 2013 Mar 22, 2013

Copy link to clipboard

Copied

I have created an InDesign Applescript to export InDesign files with a specific preset name. However, since this is used across a large team, I need to make sure I have something in place if they don't have that preset installed. I have figured out a way to detect if the preset name is installed. So now I need a way to create the PDF export preset. I need something like:

save PDF export preset "Preset Name"

Does something like this exist? Have been searching documentation and forums, but haven't come up with anything. Thanks!

TOPICS
Scripting

Views

4.7K

Translate

Translate

Report

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
Enthusiast ,
Mar 22, 2013 Mar 22, 2013

Copy link to clipboard

Copied

Hi,

here's how to check for and  create a pdf export preset.

Set three sample properties but all properties are attached as comment too.

tell application "Adobe InDesign CS6"

    if PDF export preset "someName" exists then

    else

        make new PDF export preset with properties ¬

            {acrobat compatibility:acrobat 4, export layers:true, name:"someName"}

    end if

end tell

(*acrobat compatibility(acrobat 4/‌acrobat 5/‌acrobat 6/‌acrobat 7/‌acrobat 8) : The exported PDF document's Acrobat compatibility.

applied flattener preset (flattener preset) : The transparency flattener preset to use.

bleed bottom (number or text) : The height of the bleed area at the bottom of the page. Note: Valid only when use document bleed to print is true. Can return: number or string (0 - 432 points).

bleed inside (number or text) : The width of the bleed area at the inside of the page. Note: Valid only when use document bleed to print is true. Can return: number or string (0 - 432 points).

bleed marks (boolean) : If true, print bleed marks.

bleed outside (number or text) : The width of the bleed area at the outside of the page. Note: Valid only when use document bleed to print is true. . Can return: number or string (0 - 432 points).

bleed top (number or text) : The height of the bleed area at the top of the page. Note: Valid only when use document bleed to print is true. Can return: number or string (0 - 432 points).

class (type, r/o) : The class descriptor type.

color bars (boolean) : If true, add small squares of color representing the CMYK inks and tints of gray in 10% increments.

color bitmap compression (none/‌auto compression/‌JPEG/‌zip/‌JPEG 2000/‌Automatic JPEG 2000) : The amount of bitmap compression to use.

color bitmap quality (minimum/‌low/‌medium/‌high/‌maximum/‌four bit/‌eight bit) : The compression option to apply to color images.

color bitmap sampling (none/‌downsample/‌subsample/‌bicubic downsample) : The sampling option to apply to color bitmap images in the PDF document.

color bitmap sampling DPI (integer) : The ppi of the resampled image. (Range: 9 to 2400). Can return: integer (9 - 2400).

color tile size (integer) : The tile size for color images. Valid only when color bitmap compression is JPEG 2000. (Range: 128 to 2048). Can return: integer (128 - 2048).

compress text and line art (boolean) : If true, compresses text and line art using ZIP compression.

compression type (Compress None/‌Compress Structure/‌Compress Objects) : The objects to compress in the PDF document.

crop images to frames (boolean) : If true, image data that falls outside the visible portion of an image's frame is not exported to the PDF document.

crop marks (boolean) : Prints crop marks that define where the page should be trimmed.

effective OC Registry (text, r/o) : Effective PDF/X OC Registry.

effective output condition (text, r/o) : Effective PDF/X output condition.

effective PDF destination profile (any, r/o) : Effective destination color profile. Can return: use no profile/use monitor profile/use document/working or string.

effective PDF X profile (any, r/o) : Effective PDF X color profile. Can return: use no profile/use monitor profile/use document/working or string.

export guides and grids (boolean) : If true, includes visible guides and baseline grids in the PDF document.

export layers (boolean) : If true, saves each layer as an Acrobat layer within the PDF document.

export nonprinting objects (boolean) : If true, makes non-printing objects visible in the PDF document.

export reader spreads (boolean) : If true, each spread in the exported document is combined into a single page that has spread's original width.

export which layers (export all layers/‌export visible layers/‌export visible printable layers) : Which layers to export.

full name (alias or text, r/o) : The full path to the PDF export preset, including the name of the PDF export preset.

generate thumbnails (boolean) : If true, generates thumbnail images for each page or spread.

Gray tile size (integer) : The tile size for grayscale images. Valid only when grayscale bitmap compression is JPEG 2000. (Range: 128 to 2048). Can return: integer (128 - 2048).

grayscale bitmap compression (none/‌auto compression/‌JPEG/‌zip/‌JPEG 2000/‌Automatic JPEG 2000) : The bitmap compression option to apply to grayscale bitmap images.

grayscale bitmap quality (minimum/‌low/‌medium/‌high/‌maximum/‌four bit/‌eight bit) : The compression option to apply to grayscale bitmap images.

grayscale bitmap sampling (none/‌downsample/‌subsample/‌bicubic downsample) : The sampling option to apply to grayscale bitmap images.

grayscale bitmap sampling DPI (integer) : The ppi of the resampled image. (Range: 9 to 2400). Can return: integer (9 - 2400).

ignore spread overrides (boolean) : If true, ignores flattener spread overrides.

include bookmarks (boolean) : If true, displays bookmarks and table of contents entries as links in the bookmarks pane in the PDF document. If false, no bookmarks are exported.

include hyperlinks (boolean) : If true, includes hyperlinks when exporting the document.

include ICC profiles (Include None/‌Include All/‌Include Tagged/‌Include RGB And Tagged) : The ICC Profiles to include in the exported PDF document. Can also accept: boolean.

include slug with PDF (boolean) : If true, includes the document's slug area in the PDF document.

include structure (boolean) : If true, creates a tagged PDF file. Note: If acrobat compatibility is acrobat 6 or higher, tags are visible only when the PDF is opened in Acrobat 6 or higher.

index (integer, r/o) : The index of the PDF export preset within its containing object.

interactive elements option (do not include/‌appearance only) : How to draw interactive elements.

monochrome bitmap compression (none/‌CCIT3/‌CCIT4/‌zip/‌run length) : The bitmap compression option to apply to monochrome bitmap images.

monochrome bitmap sampling (none/‌downsample/‌subsample/‌bicubic downsample) : The sampling option to apply to monochrome bitmap images.

monochrome bitmap sampling DPI (integer) : The ppi of the resampled image. (Range: 9 to 2400). Can return: integer (9 - 2400).

name (text) : The name of the PDF export preset.

object reference (PDF export preset, r/o) : An object reference for the object.

OC Registry (text) : The web address for the output condition registry. Not valid when PDF/X-3 is the compliance standard or PDF export preset.

omit bitmaps (boolean) : If true, replaces bitmap images with OPI links.

omit EPS (boolean) : If true, replaces EPS images with OPI links.

omit PDF (boolean) : If true, replaces PDF images with OPI links.

optimize PDF (boolean) : If true, optimizes the exported PDF document for faster viewing in a web browser. Note: Compresses text and line art, regardless of specified compression settings.

output condition (text) : The name of the intended printing condition. Valid only when a PDF/X compliance standard has been defined for the document. Not valid when PDF/X-3 is the compliance standard or PDF export preset. For information on compliance standards, see standards c...

output condition name (text) : The name of the output condition. Valid only when a PDF/X standard has been defined for the document.

page information marks (boolean) : If true, prints the filename, page number, current date and time, and color separation name.

page marks offset (number or text) : The offset from the edge of the page for page marks. Can return: number or string (0 - 72 points).

parent (specifier, r/o) : The parent of the PDF export preset (a application).

PDF color space (RGB/‌CMYK/‌unchanged color space/‌Repurpose RGB/‌Repurpose CMYK/‌gray) : The color space to use to represent color information in the exported PDF document.

PDF destination profile (any) : The gamut of the final RGB or CMYK device. Can return: use no profile/use monitor profile/use document/working or string.

PDF mark type (any) : The type of printer marks, either an enum value or the name of a custom marks file. Can return: default/J mark with circle/J mark without circle or string.

PDF X profile (any) : The PDF X color profile to use for the PDF document. . Can return: use no profile/use monitor profile/use document/working or string.

printer mark weight (p125pt/‌p25pt/‌p50pt) : The stroke weight for printer's marks.

properties (record) : A property that allows setting of several properties at the same time.

registration marks (boolean) : If true, prints small targets outside the page area for aligning color separations.

simulate overprint (boolean) : If true, simulates the effects of overprinting spot inks with different neutral density values by converting spot colors to process colors for printing. Note: Not valid when the color output mode is defined to leave color profiles unchanged.

standards compliance (none/‌PDFX1a2001 standard/‌PDFX32002 standard/‌PDFX1a2003 standard/‌PDFX32003 standard/‌PDFX42010 standard) : The PDF/X standards compliance to test against.

subset fonts below (integer) : Sets the threshold for embedding complete fonts based on how many of the fonts' characters are used in the document. If the percentage of characters used in the document for any given font exceeds the specified value, the font is completely embedded; o...

threshold to compress color (integer) : The minimum dpi at which color compression is applied. (Range: 1 to 10 times the value specified for color bitmap sampling DPI.)

threshold to compress gray (integer) : The minimum dpi at which grayscale compression is applied. (Range: 1 to 10 times the value specified for grayscale bitmap sampling DPI.)

threshold to compress monochrome (integer) : The minimum dpi at which monochrome compression is applied. (Range: 1 to 10 times the value specified for monochrome bitmap sampling DPI.)

use document bleed with PDF (boolean) : If true, uses the document's bleed settings in the PDF document.*)

Votes

Translate

Translate

Report

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 ,
Mar 22, 2013 Mar 22, 2013

Copy link to clipboard

Copied

LATEST

Oh wow! I've been searching for this forever. This is very, very helpful. Thank you!!

Votes

Translate

Translate

Report

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