Skip to main content
Participant
April 13, 2023
Question

InDesign not exporting

  • April 13, 2023
  • 3 replies
  • 972 views

Hi everyone,

Of course this is time-sensitive...I've exported hundreds of documents over the years and now have an extinction-level event occuring.  

 

It just won't export.  At first, it was just getting hung up in exporting (no spinning circle, which was a red flag)...the file was just Zero Bytes forever.

 

So took a look at troubleshooting and found it might be the file so I created a new one and copy & pasted a page to it and it exported.  Thought I'd just C&P everything to the new one but when I added 2 more pages it had the same error - the message is "PDF export Failed" (thanks...) Also, the pages I C&Ped over lost some of the graphics, which was weird.  I've had unlinked images many times and pages exported anyways.

 

So I created a new doc with the C&P of one page and ensured that all of the links were good.  Same error (export failed).

 

I rebooted my Mac.  Same error.

 

I uninstalled InDesign, rebooted, re-installed...same error.

 

The one page that did export earlier seems to be an outlier, as doing the same thing later has the same failed export problem.

 

Sort of have to get this out for proofing/approval today.  Any ideas?

 

JB

 

 

This topic has been closed for replies.

3 replies

Peter Kahrel
Community Expert
Community Expert
April 13, 2023

500 graphics -- right. . .

 

Another method I just thoughtof is to export the document page by page. It will stop at the page with the corrupt image -- if of course there is a corrupt image, but it does sound like it.

 

The below script does that: open the document and run the script. If it can't find the [Smallest File Size] preset you'll have to enter a valid preset name in the script in the second line. The script exports the document page by page, the PDFs are named 'test-' + the page number + 'pdf'.

 

If the script finishes without any problem, then all images are fine and the problem lies elsewhere.

 

If the export stops, look for the last exported file. The page number after that contains a corrupt image. So if test-33.pdf is the last exported file, the problem is on page 33.

 

(function () {
  var preset = app.pdfExportPresets.item ('[Smallest File Size]');
  if (!preset.isValid) {
    alert ('Change the preset name in the script to something valid');
    exit();
  }

  app.pdfExportPreferences.viewPDF = false;
  var d = app.documents[0];
  var pages = d.pages.everyItem().getElements();
  var folder = d.filePath + '/';

  for (var i = 0; i < pages.length; i++) {
    app.pdfExportPreferences.pageRange = pages[i].name;
    d.exportFile (
      ExportFormat.PDF_TYPE, 
      File (folder + '/test-' + pages[i].name + '.pdf'),
      false, 
      preset,
    );
  }
}());
Community Expert
April 13, 2023

Divide and conquer.

Export 50% of pages (like 1-50) then try 51-100 etc.

Whatever side it falls on is the culprit.

You can continue to divide and conquer to find the faulty page(s).

 

It could be a graphic, it could be a text frame, it could be a graphical element, it could be a paragraph/character style, or a rogue font.

 

Just keep hacking away at the pages until you find it.

Peter Kahrel
Community Expert
Community Expert
April 13, 2023

If there's a corrupt graphic in your file, InDesign can't export the document to PDF. (It should report that, but it doesn't.) You'll have to figure out which graphic is the culprit. Remove all links/graphics, then export to make sure that the document without the graphics can be exported. Then add one graphic and export. If it works, add another graphic, and export. And so forth.

 

P.

Participant
April 13, 2023
Omg. I have about 500 graphics in this doc.

James Burron, CAIA
Co-Founder & Partner

CAASA - Canadian Association of Alternative Strategies & Assets

+1 647 525 5174
Willi Adelberger
Community Expert
Community Expert
April 13, 2023

What file types are they?