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

exporting select pages as separate PDF files

Community Beginner ,
Oct 13, 2009 Oct 13, 2009

Copy link to clipboard

Copied

Hello,

I'm looking for a script that takes a couple specific pages from a multi-page document and exports them as separate PDF files.  I'd like to be able to specify the PDF type (x-1a:2001) and give each one a unique filename.

I don't know how to script, but I used to do some programming and am pretty certain I could figure out where to edit the code.  Does anyone know of a similar script or write out a very basic script I could edit with the appropriate filenames and such?

Thanks!

TOPICS
Scripting

Views

1.2K

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
Contributor ,
Oct 14, 2009 Oct 14, 2009

Copy link to clipboard

Copied

The main problem will be to get the selected pages. (Filling the variable myPageName in the example). Maybe it is possible to get the selection of pages in CS4. I do not know.

var myPDFExportPreset = app.pdfExportPresets.item("mypreset") ;

app.pdfExportPreferences.pageRange = myPageName; 

var myFile = new File(myFilePath);

myDoc.exportFile(ExportFormat.pdfType, myFile, false, myPDFExportPreset);

Ralf

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
Guru ,
Oct 14, 2009 Oct 14, 2009

Copy link to clipboard

Copied

LATEST

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