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

JPEGexport help (CS3 win JS)

New Here ,
Dec 16, 2008 Dec 16, 2008
Im trying to export a textframe to a jpeg - but when i run my script it resets to 72dpi...heres the code:

app.jpegExportPreferences.jpegRenderingStyle = JPEGOptionsFormat.BASELINE_ENCODING;
app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.MAXIMUM;
app.jpegExportPreferences.resolution = 600;
placeHolder.exportFile(ExportFormat.JPG,output_file,false);


any ideas?
TOPICS
Scripting
860
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
Community Expert ,
Dec 16, 2008 Dec 16, 2008
Try dropping the "s" from jpegExportPreferences. In the ID3 Object Model html reference it is listed as jpegExportPreference
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
New Here ,
Dec 16, 2008 Dec 16, 2008
No dice. With many preferences (and other objects) in ID3, the object is called as mutliple even though its a single object.
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
LEGEND ,
Dec 16, 2008 Dec 16, 2008
I never played with jpeg export, but chances are it's using a preset
which overrides the settings.
You can try creating a new preset instead.

What happens when you try (I don't know if it'll work...):
placeHolder.exportFile(ExportFormat.JPG,output_file,false,null);

--
Harbs
http://www.in-tools.com
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
Valorous Hero ,
Dec 17, 2008 Dec 17, 2008
Hi Pat,

I tried your script and it works for me as expected. The resolution of the exported jpeg-file is 600 dpi.

Kasyan
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
New Here ,
Jan 16, 2009 Jan 16, 2009
Still having this problem. It would appear that when exportFile is called, it resets everything to "Baseline, Medium, 72" instead of "Baseline, Maximum, 600". Ive tried closing all documents and running just the preferences part of the script, this works but stills gets overridden when exportFile is called! Ive tried giving it a pdfexportpreset but that seems to make no difference anyway. Any Ideas?
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
Guest
Mar 05, 2012 Mar 05, 2012
LATEST

I know it is a very late reply, but now only i have faced this same kind of problem. The solution is to update ur Indesign CS3(5.0) to Indesign CS3(5.0.4) and you will wonder ur same code works fine.

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