Skip to main content
Participant
May 25, 2017
Question

Export selected pages to pdf

  • May 25, 2017
  • 3 replies
  • 8685 views

Is there an solution to automatically fill out the number of selected pages from the page palette to the export dialog? I often export only few selected pages of the document as a PDF alone and have to list them.

This topic has been closed for replies.

3 replies

Inspiring
January 1, 2018

Perhaps a more direct approach: Use ScriptUI to build a simple choose-from-list dialog and populate it with the names of the pages in the active document. The user selects pages using click, shift-click or control-click and the export script takes it from there.

lfcorullon13651490
Legend
January 1, 2018

Why not?

http://lf.corullon.com.br/scripts_id_lfc/assets/bylfc_print_selected_pages2.rar

PS: using the export functions made by SmartMix​ and available in the shared script.

Participant
December 31, 2017

Recently I needed the feature you are searching for, but I did’t not find anything doing this. So I created a script that do exactly this action.

This script exports to PDF, JPG or PNG the pages marked with a color label, you can mark with more label and select what you need to export .

You can download it from https://smartmix.it/grafica-design/labeled-pages-exporter-indesign/

Community Expert
May 26, 2017

Hi Jirka,

since you asked in the scripting forum:
Depending on your version of InDesign you can build your own script doing this.

Recently I showed, that it is possible to detect selected pages in the Pages panel by scripting.

For CS6 there is a flawless solution even to detect selected pages of the masters section.

For all other versions of InDesign that support property pageColor it is possible to detect all selected document pages.

Details for the dection mechanism can be found here in the forum.

You can build on that implementing a pre-defined range of selected pages for the PDF export dialog.

See:

active page vs selected page

Regards,
Uwe

Colin Flashman
Community Expert
Community Expert
January 1, 2018

I thought I had seen something similar recently:

a similar script to the one presented by smartmix: https://forums.adobe.com/thread/2173129

another use of the script to gather statistics based on colored pages by ozalto: https://forums.adobe.com/thread/2362324

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!
Community Expert
January 2, 2018

Hi Colin,

exporting pages that are using a disctinct color label? No problem.

But the question of the OP was a bit different:

Can selected pages in the Pages panel be detected for export to PDF?

I answered this with a clear yes.

If you follow the link I gave in answer #1 you can see how this can be done.

With InDesign CS6 this is possible without a trace exploiting the value of optionalPage.

For CC and above we can exploit the value of pageColor.

That will leave traces, that should be made undone.

Regards,
Uwe