Stop export to PDF after alert message;

Hi forum,
my task is:
If i get alert message while pressing. CMD+E in indesign..... the alert message will display and say "your document has some problem"..
and there after conforming alert message, the export to print should exit; (if the document doesn't get alert message, then export to pdf should work);
so.. i assigned exit(); command between the something to find and alert and then export to pdf programme...
var mydoc = app.activeDocument;
var myerror=mydoc.stories.everyItem().paragraphs.everyItem().characters.everyItem().getElemen ts();
for (i=0; i<myerrors.length; i++)
    myerror = myerrors[i];
     if (myerror.fillColor.colorValue.join() == "0,0,0,0"){
             alert("doc has some problem please fix:");
exit ();
var myPresets = app.pdfExportPresets.everyItem().name;
myPresets.unshift("- Select Preset - ");
var myWin = new Window('dialog', 'PDF Export Presets');
thanks..
shil....

The forum for ExportPDF is here:
http://forums.adobe.com/community/exportpdf
Please post there with the exact text of the error meassge.

Similar Messages

  • How to redirect the page to home after alert message in APEX

    Hi All,
    I have 4 tab and home page APEX report in that home page I have organization to select as parameter for all the page which is mandatory column so without select the organization in home page I can move to other 4 page but some time users directly pressing the tab for this I have create the ORG_ALERT in each 4 page which this we are able to see the pop-up message when we directly hitting on tab but after select the OK to alert message the page is run for long time and it show all the organization data which I don't want so how can I modify the alert so that after pop-up message it will go to home page.
    Declare Output VARCHAR2 (20);
    begin 
    Output := 1;
    Output := NVL( :AI_ORGANIZATION_ID , 0);
    IF Output  = '0'  THEN
       APEX_UTIL.SET_SESSION_STATE('AI_ORGANIZATION_CODE','');
       HTP.p ('<script type="text/javascript">');
       HTP.p ('alert("No Organization selected.\n Please select an Organization");' );
       HTP.p ('</script>');  
    END IF; 
    END;
    Regards,
    Sushant

    Hi Kiran,
    I have created two process -- On Load - After Header
    1)  Sequence=10
    Declare Output VARCHAR2 (20);
    begin
    Output := 1;
    Output := NVL( :AI_ORGANIZATION_ID , 0);
    IF Output  = '0'  THEN
       APEX_UTIL.SET_SESSION_STATE('AI_ORGANIZATION_CODE','');
       HTP.p ('<script type="text/javascript">');
       HTP.p ('alert("No Organization selected.\n Please select an Organization");' );
       HTP.p ('</script>'); 
    END IF;
    END;
    2) Sequence=20
    Declare Output VARCHAR2 (20);
    begin 
    Output := 1;
    Output := NVL( :AI_ORGANIZATION_ID , 0);
    IF Output  = '0'  THEN
       htp.init;
        owa_util.redirect_url('f?p=&APP_ID.:1:&APP_SESSION.');
    ELSE
    htp.init;
    owa_util.redirect_url('f?p=&APP_ID.:4:&APP_SESSION.');
    END IF;
      END;
    but after click on tab directly it is not showing the pop-up message and directly going to home page. I want when I click on pop-up message to OK then it need to redirect the home page also from home page when I am selecting any organization and trying to go on tab it is not going maybe due to owa_util.redirect_url. Please advise.
    Regards,
    Sushant

  • IO Error exporting to PDF after deployment to WAS 6 (using RAD7)

    <p>Hello,</p><p>I have been using the new CR4E that I downloaded and installed to IBM&#39;s RAD 7  - My reports export to PDF and display beautifully from my local WAS 6 test server - but no luck after deploying to my production WAS 6 server.  I&#39;ve published both from inside RAD7 and exported the entire EAR.  Both methods result in this error when I run my test report (only one text field).:  <table border="0" cellspacing="0" cellpadding="5"><tbody><tr><td><span class="crExceptionText">"An error occured while exporting the report" </span></td></tr></tbody></table></p><p>  I&#39;m stuck!  </p><p>jpe.log bits for the Test.rpt show:</p><p>10 Apr 2007 14:41:59 [WebContainer : 1] DEBUG com.crystaldecisions.reports.exporters.format.page.pdf.b - PdfExporter: PdfDocumentModeller.finishJob<br />10 Apr 2007 14:41:59 [WebContainer : 1] INFO  com.crystaldecisions.reports.exporters.destination.disk.c - Disk Exporter: verifying export to destination<br />10 Apr 2007 14:41:59 [WebContainer : 1] INFO  com.crystaldecisions.reports.exporters.destination.disk.c - Disk Exporter: verifying export to destination<br />10 Apr 2007 14:41:59 [WebContainer : 1] ERROR com.crystaldecisions.reports.exporters.destination.disk.c - Disk Exporter: no output file was created by an exporter<br />10 Apr 2007 14:41:59 [WebContainer : 1] ERROR com.crystaldecisions.reports.exporters.destination.disk.c - Disk Exporter: no output file was created by an exporter<br />10 Apr 2007 14:41:59 [WebContainer : 1] ERROR com.crystaldecisions.reports.exporters.format.page.pdf.b - PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob (from destination?); aborting export<br />java.lang.IllegalArgumentException<br /> at java.lang.Throwable.<init>(Throwable.java:180)<br /> at java.lang.Exception.<init>(Exception.java:29)<br /> at java.lang.RuntimeException.<init>(RuntimeException.java:32)<br /> at java.lang.IllegalArgumentException.<init>(IllegalArgumentException.java:26)<br /> at com.crystaldecisions.reports.exporters.destination.disk.c.a(Unknown Source)<br /> at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)<br /> at com.crystaldecisions.reports.a.e.if(Unknown Source)<br /> at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)<br /> at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)<br /> at com.businessobjects.reports.sdk.b.b.int(Unknown Source)<br /> at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)<br /> at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)<br /> at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)<br /> at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)<br /> at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)<br /> at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)<br /> at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(Unknown Source)<br /> at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)<br /> at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.export(Unknown Source)<br /> at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.export(Unknown Source)<br /> at com.crystaldecisions.report.web.event.br.a(Unknown Source)<br /> at com.crystaldecisions.report.web.event.w.a(Unknown Source)<br /> at com.crystaldecisions.report.web.event.b7.broadcast(Unknown Source)<br /> at com.crystaldecisions.report.web.event.av.a(Unknown Source)<br /> at com.crystaldecisions.report.web.WorkflowController.do(Unknown Source)<br /> at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)<br /> at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)<br /> at com.crystaldecisions.report.web.viewer.ReportExportControl.a(Unknown Source)<br /> at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)<br /> at com.businessobjects.samples.JRCHelperSample.exportPDF(JRCHelperSample.java:471)<br /> at com.ibm._jsp._TestViewer._jspService(_TestViewer.java:101)<br /> at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)<br /> at javax.servlet.http.HttpServlet.service(HttpServlet.java:851)<br /> at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1248)<br /> at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:381)<br /> at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)<br /> at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:125)<br /> at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:264)<br /> at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3003)<br /> at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:221)<br /> at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)<br /> at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1761)<br /> at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:83)<br /> at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:422)<br /> at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:319)<br /> at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)<br /> at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)<br /> at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)<br /> at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:537)<br /> at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:593)<br /> at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:946)<br /> at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1038)<br /> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1470)<br />10 Apr 2007 14:41:59 [WebContainer : 1] ERROR com.crystaldecisions.reports.exporters.format.page.pdf.b - PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob (from destination?); aborting export</p><p>Thanks!  Terese</p>

    <p>Yes, I checked the permissions and the process does have write permission.u00C2  Just to be sure, I then changed the Temp directory to the process&#39; home directoryu00C2 and had the same result.u00C2  When the report is run on the TEST platform the log shows this:</p><p>DEBUG com.crystaldecisions.reports.formatter.formatter.objectformatter.containerformatter - ADDING FORMATTED OBJECT TO CONTAINER : Formatted section object (ReportHeaderSection1 : Report Headeru00C2  : section = SectionCode:<kind=reportAreaPair><groupN=0><isHeader=true><sectionN=0>, printRecordNumber = 0, pageN = 1</p><p>"ADDING FORMATTED OBJECT TO CONTAINER" never occurs on my development server - but there is no error inu00C2 the log, and an .ssd file appears in the temp directory, and then I get the error described above.u00C2  u00C2 What else should I try?</p><p>u00C2 Terese</p>

  • Trying the stop the "Adobe PDF – Security" popup message

    I'm using MS-Access to create multiple PDF reports, occasionally the whole process stops because of the “Adobe PDF – Security” popup message asking to “Select Document Components to Encrypt”.  We do not encrypt any of the PDF documents, and always hit the Cancel button.  It’s a pain when we run reports during the night as the whole process stops waiting for a reply to the encryption message.  Does anyone know how to stop the popup message ???

    You are correct, it is Distiller question.  I moved the question to the Adobe Windows discussion forum.
    Thanks,
    BWilliams

  • Cant export to PDF after buying export to pdf

    Hi All i am in dire straights i bought export to pdf however it wont work, ive tried doing it several times and it comes up with an error at the end of the upload. Some people say you have a 100mb limit for this my file is only 87mb. some people also say split the document however i dont know how to do this nor should i have too as i paid for the ability to export pdf to word. I am doing this as i need to edit the file in MS Publisher as the orginal file was lost when my previous pc crashed. Please help

    The forum for ExportPDF is here:
    http://forums.adobe.com/community/exportpdf
    Please post there with the exact text of the error meassge.

  • InDesign cannot export to pdf after corrupt file crash. Mac 10.6.8, CS5 7.0.4

    Last Friday when opening an InDesign file that had become corrupt on the server, it crashed InDesign and since then hasn't been able to export to PDF. I've done a complete uninstall/reinstall of Creative Suite, ran Disk Utility on the MAC and still no luck. My next step is a complete wipe of the MAC and reinstall everything unless someone has another idea. Thanks, Ed

    see Adobe Forums: InDesign crashes at startup for John's list of additional user files you can delete. If that doesn't work, try renaming the Adobe folders inthe bad account, then copy the ones from the admin account that works.

  • Indesign crashes exporting to pdf after upgrading to windows 7

    I recently upgraded to windows 7. Indesign cs4 worked fine...until i tried to export my 16-page document to a pdf. I got the message: Adobe Indesign CS4 has stopped working. A problem caused the program to stop working correclty. Windows will close the program and notify you if a solution is available. (And it hasn't notified me, ha ha ha...) I tried with a one page document, and it was able to export it. Then i tried six pages of the doc and it won't export. ANy help out there?

    hi thanks peter spier
    I did a system restore, but that didn't help.
    I tried exporting the indesign file page by page, since it could do a single page. I discovered only page 5 was causing the problem.
    I will recreate page 5 from scratch and see how that goes. Something could be corrupt on it, but it had not presented a problem when I was using Windows XP and had exported the exact same entire 16 page file befor upgrading to windows 7 last month.
    Mysteries....
    Elizabeth

  • Keynote 09 crashes when I try to export in pdf after update. Solution?

    The title says everything. Worked perfectly before OS update. Anyone has the same problem? Anyone has a solution?
    Thank you
    Federico

    other users have reported that microsoft safety scanner catches & removes this malware - so try to run a scan with it too: http://www.microsoft.com/security/scanner/default.aspx

  • InDesign 6: When exporting to PDF - error message fix a pixels/picas

    InDesign 6: When exporting to PDF - get error message to go into Preferences and fix a pixels/picas issue - I've been working in the same project for two days and exporting pages all along without this trouble - just started all of a sudden.  Haven't changed any settings...  How can I fix this?

  • Fail to Export to PDF

    Running BOXI release 1 here, and I am trying to export to a PDF and get the Fail to Export error message. I believe the problem is in my use of a sub-report. The main body, w/o the subreport will export just fine, so I know that the issue is not a font issue. It will export correctly if I export it as a work document. Errors are Failed to export the report. Not supported. And sometime file not found.
    Any thoughts?
    -Dennis-

    Hi Dennis
    As per the description, the report fails to export to PDF after adding the subreport to the main report.
    Please let us know the following information:
    1) Exact version of Crystal Reports Designer.
    2) In which section of the main report have you inserted the subreport?
    3) What happens if you export the subreport to PDF format?
    4) Create a new section in the main report, insert the subreport and then try to export the report to PDF format.
    Hope this helps.
    Thanks

  • Pages Missing During Export as PDF

    I've been working on a long document in InDesign. It is a book that is comprised of about +200 documents. Each of these documents includes photos and text, along with a header and summary paragraph style. These paragraph styles are used to create a table of contents. The table of contents gives me the correct page numbers for each of the files, but when I export the PDF, after a certain chapter, the table of contents no longer links directly to those articles. It appears that 1-2 pages is missing from each of the documents after a certain document. I only have 1 layer, I have used the same 1 master slide for each document. I originally created the document using 1 default style and then re-saving that file as different file names as each document was created. The end result is that the page count for the document at the bottom corner is in the neighborhood of 1200 pages but the actual PDF file is only 1016 pages.
    Any suggestions on how to fix this? I have absolutely no clue where to look for a solution. (As per Adobe's customer support, I did remove a folder in the App Data section)
    Edit: I forgot to include; when I export the individual documents to PDF that have missing pages, they export without missing pages. The issue only happens when exporting the documents as a book.
    Message was edited by: ccarline711

    Hi Lukas
    You can quickly test this by creating a document with bit of text. Then move (you don't want to delete it) the selected font away from system's font repository. When you open the document again, you will be warned about the missing font.
    So InDesign already does checkings for you. The default Export tool also checks for missing fonts for you. If you are doing a custome export, you might need to implement your own.

  • I can't get InDesign CS3 to export a pdf properly

    Hi all,
    Actually I have resolved the problem but I thought I share with you all.
    I have done up a booklet in CS2, containing 70 over TIFF images, all of them with clipping path done in Photoshop. In between this project, I upgraded to CS3 from CS2. After I amended and saved the .indd file to CS3 version, I encountered problem exporting the booklet to pdf. The pathed text and images were missing from the pdf.
    1. I tried export the pages to JPG, everything looks fine.
    2. Thinking probably the .indd file size is too big. I deleted some pages and export to pdf again. Same problem.
    3. Then I read in the forum that some users encounter problem with TIFF images with clipping paths done up in Photoshop. BUT since I have 70 over images to re-save to psd as some suggested, I decide to put it aside first, hoping it's not clipping path that causes the problem.
    4. Fed up and desperate. I started troubleshooting by deleting one element at a time and try export to pdf. Elements like path text, rounded corners boxes, color-filled boxes, etc.
    5. FINALLY, I found out it was the dotted outline that causes the problem. I successfully exported the pdf after I remove the dotted outline! But client has approved the design and layout, so I can't simply remove the dotted outline! Luckily, I still able to export to pdf without error after I re-applied the dotted lines to the boxes.
    If you encounter the same problem as me, probably you want to try re-apply all the dotted or any fancy line by setting it to 0pt, then to your desire thickness again. =)
    Please share how you resolve your PDF error too!

    Hi Ron ,
    Please refer to the following link and see if this helps.
    https://helpx.adobe.com/acrobat/kb/warning-20225-pdf-printer-missing.html
    Regards
    Sukrit Dhingra

  • Alert messages from Notification Center hang after using close button

    After opening my MacBook in the morning, Notification Center displays the alerts from my Calender (I realy like this new feature!).
    Problem
    When I click the Close Button on an Alert Message the Alert Message does not close but stops responding and stays displayed.
    The only way to get rid of it is to logout and login to OSX.
    Does anyone have the same problem?
    I am looking for a solution.
    All suggestions are welcome!
    Thanks,
      Chris

    Hi,
    Uploaded with Skitch!
    As you can see the System Preferences > Notification Pane talks about "Alerts" in a general way first
    Then it offers options on how the Notifications are displayed.
    I was presuming you were talking about the Notifications in the same general way and I was asking which option you were using
    Since my first post in this thread I have changes my Mail Notifications to Alerts (It seems to be the one with more issue)
    It does hang around until I deal with it
    It then send me to Mail but the Incoming mail item(s) is(are) no longer marked  as unread.
    This makes it a little difficult to check the generic Inbox rthat has five Accounts set up.
    I am not getting a spinning beach Ball and the Alert Style Notification goes away.
    10:18 PM      Saturday; September 8, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Failed to display CR after export to PDF in Browser

    Post Author: asnila
    CA Forum: Exporting
    Hi,
    I had a problem to display CR after export to PDF in browser. No message error displayed except the browser is blank.
    Below is the code that i had been used.
    Dim RptFilePath As StringDim RptExportOpt As CrystalDecisions.Shared.ExportOptionsDim ExportLocation As New CrystalDecisions.Shared.DiskFileDestinationOptionsDim ExportPath As StringRptFilePath = "C:\Project\reportPro.rpt"myReport.Refresh()myReport.SetDatabaseLogon("root", "", "localhost", "dbpro")ExportPath = "C:\Project\reportPro.pdf"ExportLocation.DiskFileName = ExportPathRptExportOpt = myReport.ExportOptionsWith RptExportOpt.DestinationOptions = ExportLocation.ExportDestinationType = ExportDestinationType.DiskFile.ExportFormatType = ExportFormatType.PortableDocFormatEnd WithmyReport.Export()Response.ClearContent()Response.ClearHeaders()Response.ContentType = "application/pdf"Response.WriteFile(ExportPath)Response.Flush()Response.Close()MyConnection.Close()
    Fyi, i'm using Crystal Report 10 embedded with VS 2005. Please help me.

    It looks like the 2 DLLs you mentioned, are getting corrupted or modified due to some operation that might have been performed on them. Can you please try the below mentioned instructions and see if that gets your application to install without any errors:
    1. Try installing your business app.
    2. When you see the error message as stated, try running the below mentioned commands: (Start | Run | Type cmd and hit Enter)
        regsvr32 LTKRN11n.dll /i /s
        regsvr32 LTKRN11n.dll /s
        regsvr32 LTDIS11n.dll /i /s
        regsvr32 LTDIS11n.dll /s
    3. The above commands should fix the issues in the mentioned DLLs and allow normal installation of your business app.
    Hope this gets your app to work and install properly.

  • After I exported a PDF to a Word doc and downloaded it, I can't get the pointer tool to work.

    After I exported a PDF to a Word doc and downloaded it, I can't get the pointer tool to work. When I click on the document text, the only tool is the "move" tool. I can't edit or select text. Please advise.

    Version of Adobe: Adobe ExportPDF (not Pro)
    Operating system:  Windows 8.1
    Steps I am taking: When the PDF file is selected and opened, I clicked on Tools menu on right side of the screen; then I clicked on Select PDF file; then under Convert To, I selected Microsoft Word (*.docx); then I hit the box below that; and clicked Convert. I then see the message that says it is Converting to Export PDF Online. Then I see a link below that, that says Download Converted File. This takes me online to Adobe Acrobat .com, where, I see the command, Export PDF, and see a blue box on the same screen that says Select PDF Files to Export. I click on the thumbnail of the file I want to export. This brings up, online, a screen containing the file I wanted to convert to Word. Then, on the same screen, I click on the icon on the right hand of the screen that says Download. then I click on the box on the bottom the screen that contains the Word document I had wanted to convert. This brings up the Word doc. in Compatibility Mode the latest Word version, which I am unfamiliar with and which has a Picture Tools tab that I cannot escape from and I cannot get any selection tool other that the Move pointer, and I cannot find the Select text pointer to select any text on the page. I don't want this Word version and do not know how to return to the old version of Word that I am familiar with.
    Can you help me, please?
    Theresa Julia Schuer

Maybe you are looking for