Skip to main content
aaronf31067511
Known Participant
February 25, 2020
Question

Export as JPG and combine to single PDF Script

  • February 25, 2020
  • 2 replies
  • 957 views

Hello Scripting Gurus!

 

I'm looking for a script that exports a JPG PDF or otherwise flat un-editable PDF.  Preferably, it exports the JPGs, combines them into a single PDF and then deletes the JPGs (PDF password protection does not work as it is too easy to bypass). 

 

Functional Needs:

  • Image: Control quality, DPI, Color Space
  • Export: Selection, Page Range, All 
  • Page Name: Use InDesign Page number. Option to include prefix or suffix text. 
  • Default Name File Same as InDesign or option to change. Locate file in same location as InDesign File.

Any help would be much appreciated!!! 

This topic has been closed for replies.

2 replies

rob day
Community Expert
Community Expert
March 4, 2020

I don’t think you need a script. You can use a Transparency Flattener preset to force a PDF Export to rasterize the pages. Check Create Separate PDF Files to export individual pages.

 

If you include any transparent object on the spreads—it could be a background rectangle on the masters set to 0% Opacity— and export to PDF 1.3, the page will be flattened using the Advanced>Flattener Preset, which can be set to all rasters:

 

 

You can then control the color space of the page via the Output tab, and the Resolution of the rasters via the Compression tab:

 

 

 

 

Inspecting the exported page shows the entire page has been rasterized to 150ppi, with the color space as sRGB:

 

 

brian_p_dts
Community Expert
Community Expert
February 25, 2020

Have you checked out Peter Kahrel's BatchExport script? Might be able to help for your needs. If you need a custom solution developed and don't get any other help here, feel free to PM for a quote. 

 

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

aaronf31067511
Known Participant
March 4, 2020

Unless I'm misunderstanding (which is entirely possible) I don't think this script accomplishes what I am looking for. 

 

To further simplify my current process is this:

  1. From InDesign > Export pages as JPGs (this exports each page as a separate JPG)
  2. Combine JPGs in Acrobat
  3. Save as PDF with same name as InDesign File
  4. Delete separate JPGs (as they are now combined in a single PDF)