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

exporting select pages as separate PDF files

Community Beginner ,
Oct 13, 2009 Oct 13, 2009

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

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

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