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

Export as JPG and combine to single PDF Script

Explorer ,
Feb 25, 2020 Feb 25, 2020

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!!! 

TOPICS
Import and export , Scripting
910
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
Community Expert ,
Feb 25, 2020 Feb 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

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
Explorer ,
Mar 04, 2020 Mar 04, 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)
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
Community Expert ,
Mar 04, 2020 Mar 04, 2020
LATEST

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:

 

Screen Shot 24.png

 

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

 

Screen Shot 25.png

 

Screen Shot 26.png

 

Screen Shot 27.png

 

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

 

Screen Shot 28.png

 

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