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

Modify existing pdf setting

Participant ,
Jan 18, 2021 Jan 18, 2021

Copy link to clipboard

Copied

Hi,

How to add includeSlugWithPDF option in 

[Smallest File Size] pdf setting:

Sample Code:
var preset = app.pdfExportPresets.itemByName("[Smallest File Size]");
app.pdfExportPreferences.includeSlugWithPDF = true;
 
Thanks
TOPICS
Scripting

Views

220

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

correct answers 1 Correct answer

Community Expert , Jan 18, 2021 Jan 18, 2021

I don't think you can edit the system defined presets. Make a copy of this preset, load it and make the changes to the setting you want.

-Manan

Votes

Translate

Translate
Community Expert ,
Jan 18, 2021 Jan 18, 2021

Copy link to clipboard

Copied

I don't think you can edit the system defined presets. Make a copy of this preset, load it and make the changes to the setting you want.

-Manan

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
Enthusiast ,
Jan 19, 2021 Jan 19, 2021

Copy link to clipboard

Copied

LATEST

I don't think you can edit the system defined presets. 

Yes you can, but you need to move the joboptions file out of the application preset folder into the user preset folder.
Then you can edit it in InDesign and then move it back into the application folder (or edit the joboptions file directly if you're that geeky ;))

On macOS the paths are (for 2020) – for the default presets:
/Applications/Adobe InDesign 2020/Resources/Adobe PDF/settings/mul

and for the user created presets:
/Users/user/Library/Application Support/Adobe/Adobe PDF/Settings

Don't know about Windows.

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
Community Expert ,
Jan 18, 2021 Jan 18, 2021

Copy link to clipboard

Copied

Also, your sample code does not set the property for the preset, you are doing nothing with the preset variable. If you use the code

preset.includeSlugWithPDF = true;

You should get an error as I mentioned in the post above

-Manan

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