Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

PDF export problems with CS5

Return to Member Forum

  • Author
    Posts
    • #56262
      Easybourne
      Participant

      Just lately, I've been having issues exporting PDFs from InDesign CS5. Usually, the export progress bar will stall at 0%, and I have to force-quit ID. (Mac OS).

      Upon relaunch of ID, I can successfully export a PDF. But only once. If I try again, I get the same hang.

      Is this happening to anyone else here, if so, have you found a fix?

    • #56263

      There is an ongoing discussion about this on the Adobe user-to-user forum: Problems making a PDF from Indesign CS5

      I don't think a one-fix-to-rule-them-all has been agreed upon, even though there are almost a 100 posts in that thread.

    • #56264
      Easybourne
      Participant

      Thanks, Jongware.

      I've been over there too. Most perplexing.

      While I'm at it, can I ask what you think of the new 'background export' business? Personally, unless you have lots of docs open, it doesn't make any real difference. Also, I hate the Panel for it. The old progress bar was better. </rant>

    • #56265
      David Blatner
      Keymaster

      I like having stuff multi-threaded, so that I can keep working while it's exporting in the background. However, I get the feeling that the background export thing is a work in progress. For example, the fact that it doesn't work when exporting a pdf from a book panel is bizarre.

      Sorry to hear about your problem exporting pdfs. I do wonder if there's some oddity in using older pdf presets… does creating a new preset work any better? Or rebuilding preferences in ID? Or changing the pdf export settings? (Using Acrobat 9 compatibility vs. Acrobat 4, etc?)

    • #56269
      Easybourne
      Participant

      Thanks for the tip David.

      I've already tried the 'usual' things like throwing out the Application preferences and rebuilding them, but this didn't seem to work. I haven't done too much with the presets except for creating a new 'Test' preset which didn't help. I will try different flattening options next (PDF version etc).

      Some of the circumstantial evidence from the Adobe forum suggest that it may be something to do with documents that were created with or contain elements from earlier versions of ID. I'm not so sure… as it has happened to me with a brand new document as well.

      Also David, I'm curious about your workflow. Maybe I just don't get it… but how advantageous is it to be able to keep working on a document while you export it? I normally output a PDF as a proof of some kind or as a press-ready file, either way it represents a snapshot in time. If you are working on the document while exporting, surely there's a possibility of going out of sync with your versions? I suspect it's just me being unwilling to embrace the new!

    • #56270
      David Blatner
      Keymaster

      My workflow is usually: Once I've exported a pdf of a document, I'm off to work on a different document. I like being able to close what I've done and get on with work.

    • #56273
      Easybourne
      Participant

      Oh, yes indeed, it's nice to be able to open and work on another document – I appreciate the time-saving there, but the way the new 'background feature' was launched by Adobe was a bit odd if you look at some of the videos – they all seem to say things along the lines of 'you can carry on editing your document while you're exporting' or words to that effect. Apologies, having re-read my post, it seems I accused you of the saying same thing!

      Thing thing I get a little hung up with is the Background tasks panel. I usually forget to have it open and then I try and close my document while it's still exporting only to be told I can't close it because it's exporting. Or I have the background tasks panel tucked away tidily so that I can't read it. I just think it's a all bit more clunky somehow. I do like cueing up a load of PDFs though, that's cool and like the old days when I used a watched folder to distil postscript files from QuarkXPress.

      Don't even get me started on the way that selection tool changes to the direct selection tool every time I click too close to the centre of a small image!!!!! Grrr.

      I think I need to have a day working in Quark, and I'm sure I'll shut up….

    • #56299

      @Easybourne:

      I've written a scripting solution for exporting PDFs in “foreground”. Please test it with care, no guarantee that it will work in every case. There is a very basic UI for setting up the location where to save the pdf and to name it. After that the usual PDF preset dialog of InDesign will pop up where you can do your usual stuff like setting up page ranges etc.

      A little error handling is also present, so the script will check if a given file is already present and you can decide to overwrite it or not. Further on the script errors out smoothly if you decide to overwrite a pdf and that particular pdf is already open in an pdf viewer app.

      I hope the following lines of code are not messed up by the forum software (if so I will write a follow-up or try to edit the html-code):

      //ExportPDF_in_Foreground_CS5.jsx
      //Uwe Laubender
      /**
      * @@@BUILDINFO@@@ ExportPDF_in_Foreground_CS5.jsx !Version! Thu Jul 08 2010 10:51:10 GMT+0200
      */
      //DESCRIPTION:PDF-Export in foreground (old school) for InDesign CS5 only!

      if(app.documents.length>0){
      var d=app.activeDocument;
      };
      else{
      alert(“Please open a document to execute Export to PDF. Script will be aborted.”);
      exit();
      }
      if(d.saved == false){
      alert(“Save your document first before executing Export to PDF. Script will be aborted.”);
      exit();
      };

      var pdfPath = Folder.selectDialog(“Folder to save PDF:”);
      var pdfName = d.name+”.pdf”;

      var userDefFileName = prompt(“File name:”,pdfName,undefined);

      if(userDefFileName == null){
      exit();
      };

      var pdfFullName = pdfPath+”/”+userDefFileName;

      if(File(pdfFullName).exists){
      c=confirm(“The PDF-file “+userDefFileName+” is already existing. Do you want to overwrite it?”,true,undefined);
      if (c==0){exit()};
      };
      //Error-handling if PDF file override is on and PDF is already opened in PDF reader app:
      try{
      d.exportFile(ExportFormat.PDF_TYPE,File(pdfFullName),true,undefined,undefined);
      }catch(e){
      alert(“Error: “+e.message+” (Line “+ e.line+” in script code.)”);
      exit();
      };

      Uwe

    • #56426
      markatwrk
      Member

      Uwe,

      how can I thank you enough for this javascript?

      You save my day!

      Shame on you Adobe!

    • #56496
      Bob Levine
      Participant

      Another quick fix if you're experiencing this issue is create a new book and bring your InDesign document into it. Export the PDF from the book panel which doesn't work in the background.

    • #58011
      mikayle
      Member

      Uwe Laubender said:

      @Easybourne:

      I've written a scripting solution for exporting PDFs in “foreground”. Please test it with care, no guarantee that it will work in every case. There is a very basic UI for setting up the location where to save the pdf and to name it. After that the usual PDF preset dialog of InDesign will pop up where you can do your usual stuff like setting up page ranges etc.

      A little error handling is also present, so the script will check if a given file is already present and you can decide to overwrite it or not. Further on the script errors out smoothly if you decide to overwrite a pdf and that particular pdf is already open in an pdf viewer app.

      I hope the following lines of code are not messed up by the forum software (if so I will write a follow-up or try to edit the html-code):

      //ExportPDF_in_Foreground_CS5.jsx
      //Uwe Laubender
      /**
      * @@@BUILDINFO@@@ ExportPDF_in_Foreground_CS5.jsx !Version! Thu Jul 08 2010 10:51:10 GMT+0200
      */
      //DESCRIPTION:PDF-Export in foreground (old school) for InDesign CS5 only!

      if(app.documents.length>0){
      var d=app.activeDocument;
      };
      else{
      alert("Please open a document to execute Export to PDF. Script will be aborted.");
      exit();
      }
      if(d.saved == false){
      alert("Save your document first before executing Export to PDF. Script will be aborted.");
      exit();
      };

      var pdfPath = Folder.selectDialog("Folder to save PDF:");
      var pdfName = d.name+".pdf";

      var userDefFileName = prompt("File name:",pdfName,undefined);

      if(userDefFileName == null){
      exit();
      };

      var pdfFullName = pdfPath+"/"+userDefFileName;

      if(File(pdfFullName).exists){
      c=confirm("The PDF-file "+userDefFileName+" is already existing. Do you want to overwrite it?",true,undefined);
      if (c==0){exit()};
      };
      //Error-handling if PDF file override is on and PDF is already opened in PDF reader app:
      try{
      d.exportFile(ExportFormat.PDF_TYPE,File(pdfFullName),true,undefined,undefined);
      }catch(e){
      alert("Error: "+e.message+" (Line "+ e.line+" in script code.)");
      exit();
      };

      Uwe


      Uwe, how do I apply this code exactly?

    • #58104
      ElTee
      Member

      Just copy and paste the code into a text document and save it as ExportPDF_Foreground.jsx and then put the .jsx-file in the scripts folder in InDesign.

      To access the script you need to pull up the Scripts panel and then just click the script to run it.

    • #59009
      paperink
      Member

      I am sure there are few reasons for this, but here was my solution…

      At my job I have to use Windows, but when I take my work home I use my Mac. I was having this problem when I was working on a doc I created at work, at home on my Mac.

      I just recreated the doc and copied and pasted in place from the old doc to the new. I think this would also work if the doc is just an old one.

      It works fine. Hope this helps some.

    • #59062
      flydog
      Member

      I Apologise if this is really obvious, but I am just new to this forum, and am having issues saving out PDFs in Indesign CS5 with the background tasks status bar stalling at 0% and having to force quit InDesign and try again, each time. V frustrating, I see was mentioned in the second post in this thread, that there was an Adobe user-to-user forum: Problems making a PDF from Indesign CS5

      Unfortunately, when I click on this link, it says “unknown content” and there is nothing, could someone point me in the right direction to this? Many thanks.

    • #59064

      Alas, the goold old Adobe Forum seems to be on the verge of a total breakdown. Attachments, login system, editor, search function, and even its own internal referring system (“More like this: Unable to retrieve content from the server” …) are all broken. It's sad.

      Try this new link: https://forums.adobe.com/thread&#8230;..?tstart=60

      I wonder how long that will stay valid.

    • #59065
      Anonymous
      Inactive

      Always make sure you've updated the software. Accessed through Help>Updates

    • #59066
      David Blatner
      Keymaster

      As I said earlier, try rebuilding preferences. Also, you might try different PDF presets.

    • #59075
      ickledot
      Member

      Bob Levine said:Another quick fix if you're experiencing this issue is create a new book and bring your InDesign document into it. Export the PDF from the book panel which doesn't work in the background.


      For me, a great bit of advice. Worked like a charm thanks. I'm using a Mac and often the export doesn't run at all in the Background Task mode. I read elsewhere that one should try having the Utility open and run the Export through the Adobe pdf preset drop-down. This only seems to work with one export. Come the next one I have to Force Quit and start again. Bob's advice has helped me to avoid all that.

    • #59512
      Anonymous
      Inactive

      Uwe Laubender said:

      @Easybourne:

      I've written a scripting solution for exporting PDFs in “foreground”. Please test it with care, no guarantee that it will work in every case. There is a very basic UI for setting up the location where to save the pdf and to name it. After that the usual PDF preset dialog of InDesign will pop up where you can do your usual stuff like setting up page ranges etc.

      A little error handling is also present, so the script will check if a given file is already present and you can decide to overwrite it or not. Further on the script errors out smoothly if you decide to overwrite a pdf and that particular pdf is already open in an pdf viewer app.

      I hope the following lines of code are not messed up by the forum software (if so I will write a follow-up or try to edit the html-code):

      //ExportPDF_in_Foreground_CS5.jsx
      //Uwe Laubender
      /**
      * @@@BUILDINFO@@@ ExportPDF_in_Foreground_CS5.jsx !Version! Thu Jul 08 2010 10:51:10 GMT+0200
      */
      //DESCRIPTION:PDF-Export in foreground (old school) for InDesign CS5 only!

      if(app.documents.length>0){
      var d=app.activeDocument;
      };
      else{
      alert("Please open a document to execute Export to PDF. Script will be aborted.");
      exit();
      }
      if(d.saved == false){
      alert("Save your document first before executing Export to PDF. Script will be aborted.");
      exit();
      };

      var pdfPath = Folder.selectDialog("Folder to save PDF:");
      var pdfName = d.name+".pdf";

      var userDefFileName = prompt("File name:",pdfName,undefined);

      if(userDefFileName == null){
      exit();
      };

      var pdfFullName = pdfPath+"/"+userDefFileName;

      if(File(pdfFullName).exists){
      c=confirm("The PDF-file "+userDefFileName+" is already existing. Do you want to overwrite it?",true,undefined);
      if (c==0){exit()};
      };
      //Error-handling if PDF file override is on and PDF is already opened in PDF reader app:
      try{
      d.exportFile(ExportFormat.PDF_TYPE,File(pdfFullName),true,undefined,undefined);
      }catch(e){
      alert("Error: "+e.message+" (Line "+ e.line+" in script code.)");
      exit();
      };

      Help.


    • #59513
      Anonymous
      Inactive

      what I meant to say is I was wondering if there is a script I can download… I have been unable to get this script to work in AppleScript and am crashing every time I make a pdf now… even with reseting my preferences. Help me please! CS3 was so much more reliable… I am a book designer and need to send multipage documents for approval and am stalled at the moment

    • #59625

      ElTee said:

      Just copy and paste the code into a text document and save it as ExportPDF_Foreground.jsx and then put the .jsx-file in the scripts folder in InDesign.

      To access the script you need to pull up the Scripts panel and then just click the script to run it.


      Hi vickyvaughn!

      The script in NOT an Apple Script. it is the Adobe flavour of JavaScript called ExtendScript. The file ending is “.jsx”.

      Just do like ElTee already said. The script is plain text, so copy it to TextEdit. Make sure that you press cmd+shift+t to get plain text. Save it with the name “ExportPDF_in_Foreground_CS5.jsx” even if TextEdit will recommend a .txt suffix. To use the script copy the file to the folder “Scripts Panel” which resides in “applications/Adobe InDesign CS5/Scripts”. Now it should show in the InDesign Scripts panel.

      Uwe

    • #59638
      mrartist
      Member

      Hi, just thought I ought to share my solution to the problem I had with an InDesign file that stopped exporting to PDF.

      I was getting the background task throwing up an error towards the end saying there was a problem and that it couldn't finish. The file I had been working on had been doing a few odd things and I have had one or two crashes which I think had slightly corrupted the file.

      I checked I could still export from a known to work file and yes, I could still export that, so I suspected it was the current file being corrupt causing the problem rather than an InDesign/Acrobat issue.

      What I did, and useful I think for whenever you suspect file corruption, is to File/Export the file as an 'InDesign Markup (IDML)' file. After that's done, close the current file and then File/Open that new IDML file and it will reimport everything and this will hopefully fix your corruption. All styles, colours, etc., are still intact, all exactly the same as before.

      Not exactly sure how it works, but the IDML export obviously cleans up the file along the way. It just worked for me and the file will now export to PDF again.

      Hope that helps someone, regards to all.

    • #59657

      Matthew Laun of Adobe just posted another hack for terminating export to background. A more radical method. It will affect ALL export processes, not only PDF export. He says: “Note that this affects all background exporting, which includes PDF, IDML, and, I believe, InCopy Assignments.” And it will work for InDesign CS5.5 as well.

      See here:

      https://forums.adobe.com/messag&#8230;..90#3689090

      P.S. btw, my script will work for InDesign CS5 & CS5.5

      Uwe

    • #114010
      Scott Rudy
      Participant

      Uwe,
      in your script…on line 31

      d.exportFile(ExportFormat.PDF_TYPE,File(pdfFullName),true,undefined,undefined);

      what do the two ” undefined” on this line refer to?

      scott

    • #114081
      Scott Rudy
      Participant

      i have been using this script fairly regularly and was wondering what would be involved in setting the PDF preset that is selected when the script is run. currently it defaults to whatever was the most recently run preset.

      scott

Viewing 24 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads