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

export PDF options

Explorer ,
Oct 12, 2018 Oct 12, 2018

Copy link to clipboard

Copied

Hi everybody,

Im working on a script that I am saving in .pdf format. I want to get the lightest file possible but even if I tick all the possible options to reduce the files weight, the file I get with script in the end is much heavier than the file I can get when saving manually. I think I have missed options

Here is options of my script :

saveOpts.compatibility = PDFCompatibility.ACROBAT6;

saveOpts.preserveEditability = false;

//saveOpts.bleedLink = false;

//=======================  COMPRESSION =========================== 

saveOpts.colorCompression = CompressionQuality.AUTOMATICJPEGMINIMUM;

saveOpts.colorDownsamplingMethod = DownsampleMethod.BICUBICDOWNSAMPLE; 

saveOpts.colorDownsampling = 100; 

saveOpts.colorDownsamplingImageThreshold = 150; 

//----------------------------------------------------------------------------------------------------------- 

saveOpts.grayscaleCompression = CompressionQuality.AUTOMATICJPEGMINIMUM;

saveOpts.grayscaleDownsamplingMethod = DownsampleMethod.BICUBICDOWNSAMPLE; 

saveOpts.grayscaleDownsampling = 150; 

saveOpts.grayscaleDownsamplingImageThreshold = 225; 

//----------------------------------------------------------------------------------------------------------- 

saveOpts.monochromeCompression = MonochromeCompression.CCIT4; 

saveOpts.monochromeDownsamplingMethod = DownsampleMethod.BICUBICDOWNSAMPLE; 

saveOpts.monochromeDownsampling = 300; 

saveOpts.monochromeDownsamplingImageThreshold = 450; 

   

saveOpts.saveMultipleArtboards = true;

saveOpts.artboardRange = myRange;

  

saveOpts.generateThumbnails = false;   

saveOpts.optimization = true;

saveOpts.preserveEditability = true;

saveOpts.compressArt = true;

saveOpts.pDFAllowPrinting = PDFPrintAllowedEnum.PRINT128HIGHRESOLUTION;

I want to export with this options: (sorry it is French)

0.png

1.png2.png3.png4.png5.png

Thank you very much for your answer and help !

Have a nice day,

Miyano

TOPICS
Scripting

Views

516

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 , Oct 12, 2018 Oct 12, 2018

Save a pdf preset with all the options of your choice, then use the preset name in your script

var preset = 'myPDFpreset';

saveOpts.pDFPreset = preset;

Votes

Translate

Translate
Adobe
Community Expert ,
Oct 12, 2018 Oct 12, 2018

Copy link to clipboard

Copied

Save a pdf preset with all the options of your choice, then use the preset name in your script

var preset = 'myPDFpreset';

saveOpts.pDFPreset = preset;

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 ,
Oct 15, 2018 Oct 15, 2018

Copy link to clipboard

Copied

LATEST

THANK YOU VERY MUCH ! You are a genius ! ^^

Have a nice day !

Miyano

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