Skip to main content
Inspiring
Nov 9, 2018 2:25 PM UTC
Question

Sections, how to export sections into individual pdf???

Hi

I have doc with 20 sections with some section prefix.

How to export this section into 20 individual pdfs, if possible, with section prefix as name of new pdf?

thanks

19 replies

Participant
Feb 26, 2025 8:36 AM UTC

You have to add teh prefix with the page number and it will pdf that specific section.

i.e. B1-B10, C2-C5 etc.

 

Translate
Participant
Jun 1, 2022 6:59 PM UTC

You can download the pdf_individuals.txt file attached below and change the txt extention to jsx (pdf_individuals.jsx), then copy to your Indesign script panel folder to install. This script was originally downloaded from https://creativepro.com/files/kahrel/indesign/pdf_individuals.html 

 

You can export sections named by the prefix, marker, etc. 

Translate
Peter Kahrel
Community Expert
Community Expert
Jun 2, 2022 7:21 AM UTC

Thank you for mentioning the script. But please include a link to the script rather than posting the script itself. Scripts are updated from time to time. Posted scripts are frozen.

P.

Translate
Participant
Jun 19, 2025 6:15 PM UTC

Why isn't this a standard feature in InDesign? It seems like it's needed quite often.

Translate
Willi Adelberger
Community Expert
Community Expert
Jan 16, 2022 4:43 PM UTC

Select them in the page panel, right mouse click and in the context menu you can export selected spreads.

Translate
Participant
Mar 24, 2023 5:07 PM UTC

Does anyone else see this feature? Because it doesn't show in my version.

Translate
Participant
Jan 14, 2022 6:42 PM UTC

This is a pretty old thread but I had the same question in 2022. My solution: select all the pages/spreads in the section you wish to export. (Pages can be out of sequence too if you use the CMD key to select.) Then right click and select > Print Spreads. In the resulting dialog box, set the Printer as "Postscript File" and then click Save. This will create a postscript file that you can open in Acrobat or Preview and then save again as a PDF. It sounds more complicated than it is. Seems the best option until Adobe decides to fix this odd bug. 

Translate
Peter Kahrel
Community Expert
Community Expert
Jan 16, 2022 4:07 PM UTC

If none of the scripts mentioned earlier in thread work, you can try this (free) one:

https://creativepro.com/files/kahrel/indesign/pdf_individuals.html

Translate
Participant
Jul 11, 2023 5:54 PM UTC

Hello, is there any chance that you have a script not for a book, but for a regular InDesign file divided into sections? Because when I put my file with sections into a book and run your script, it creates several pdf files (for example, 3 out of 7) and crashes.

Translate
Stefan Rakete
Inspiring
Dec 4, 2018 3:23 PM UTC

Hi kajzica,

you could iterate over all sections in your document and calculate the pageRange for the PDF export.

here is the key code snippet:

var curPageNameWithPrefix = getPageNameWithPrefix(curPage);

app.pdfExportPreferences.pageRange = curPageNameWithPrefix;           

app.activeDocument.exportFile(ExportFormat.PDF_TYPE, curPDFfile, false, curPDFJobOptions);

You may also need the property documentOffset:

firstPageIndex = curSection.pageStart.documentOffset;

Thanks Stefan

Translate
willcampbell7
Legend
Nov 25, 2018 4:37 AM UTC

Try this free script. I think it has what you need, at least close to it. Sections will be numbers, not actual section names (so they sort correctly). Let me know if it works. If not, I could tweak for actual section names, if it is a must.

https://www.marspremedia.com/software/indesign/pdf-export-single-pages

Translate
William Campbell
TᴀW
Legend
Nov 16, 2018 12:58 AM UTC

This can be done with my http://www.id-extras.com/products/extract-pages

(a commercial product).

Ariel

Translate
id-extras.com | InDesign tools & scripts for typesetters, form designers, and translators
FRIdNGE
Nov 16, 2018 12:20 AM UTC

Hi,

Have you found an answer?

Best,

Michel

Translate
kajzicaAuthor
Inspiring
Nov 16, 2018 7:32 AM UTC

no

Translate
Srishti_Bali
Legend
Nov 15, 2018 11:11 PM UTC

Moved to InDesign Scripting​

Translate
Steve Werner
Community Expert
Community Expert
Nov 9, 2018 3:26 PM UTC

I'm pretty sure that would require a script. You can now separate into individual pages in the File > Export > PDF (Print) dialog but not as you specify. You might ask in InDesign Scripting:

InDesign Scripting

Translate