[LIKE CS5] Export a PDF file in the background

Then CS5 has background export to PDF files. If I have a script that exports several PDFs or JPGs etc, as each page individually or several parameters in the order (or at the same time now?), how know when it is done? AppleScript normally "expects" that the process is done. But now what happens? How can I know that exporting is done and I can close the file, or PDFs are made successfully?

In my view, that there is now a "background task" class and a command ' wait for task. Examples on how to work with who? (Sorry I have not had time to work on it right now, working on other things IDCS5/Snow Leopard yet.)

TIA, Chris

If your script still uses the document. exportFile(), nothing will change. For example, the following code always works:

t = app.activeDocument.exportFile(ExportFormat.pdfType, File("~/Desktop/Test.pdf"));
alert("Task is done")

If you want to use the "background" feature, you will need to use document.asynchronousExportFile ().  AsynchronousExportFile returns a background task, which is the waitForTask() method.  You can use something like this:

t = app.activeDocument.asynchronousExportFile(ExportFormat.pdfType, File("~/Desktop/Test.pdf"));
t.waitForTask();
alert("Task is done")

This export your document to PDF using a background task, wait for export to fill and then displays an alert.  The problem is that you lose the benefits of a background task (that is, you can do other things while the file export in the background).

The backgroundTask object has a status property, which returns the status of the task, including TaskState.COMPLETED.  You could probably add an event listener to check the change of State of TaskState.RUNNING to TaskState.COMPLETED.  When I get a little more time later, I'll check and try to provide a code example.

Once again, if your concern is the behavior of scripts you already have, then nothing should change.  If you are looking to take advantage of the new substantive tasks, there is work to do.

/Dan

Tags: InDesign

Similar Questions

  • How to export a PDF file where the PDF thumbnails?

    I know not how to print photos from InDesign... but in the PDF export options, there is no options for thumbnails. How to do this?

    File > print. Printer: PostScript File.

  • How to export a PDF file without bleed him feel extra "stuff" on the edges?

    I know that my question wording sucks, but I didn't know how else to put it.

    I created a document ID for printing with a bleeding.  When I export to PDF format, the image is not cropped to the final size of the page, but includes the excess background images that I have extended beyond the limits of the page for a bleeding.  I am now trying to export a PDF file that can be sent by e-mail and will not be printed, and so I would like to export a PDF file that has none of these extra stuff (I disabled the printing marks) on the edges.  But my PDF has the makings of excess and a red outline around the dimensions of the actual page.  How to export a PDF file which is cropped to the correct page size (8.5 "x 11")?

    I have attached the PDF I created with the stuff in excess and the red outline around the size of the page so you can see what I mean.

    Thank you!

    Bryan

    When exporting, make sure that the ' marks and bleeds options looks like don't like this (no boxes checked):

  • When I export a PDF to JPEG, the margins are screwed to the top, but not in the PDF file. Why?

    I did a series of layouts landscape 8.5 x 11 in Illustrator, they all had the same instructions in the PDF file, aligning the different elements of text and vector itself. When I saved and print PDF files, they look good and printed as expected.

    However, when I go to file-> export... and save another version in JPEG format, they are all out either a little cut on the left margin or right margin. It is not consistent that confuses me, also because they look all uniforms in PDF format. Anyone know what I can do in the document or export the setting to prevent this from happening in Illustrator?

    When we realized that what was going on, we just open the PDF files in Acrobat Reader and saved in JPEG format, which takes more time, but is not screw up left or right margins. Any ideas what's happening? Thank you!

    You have to draw everything in alignment with pixels in Illustrator. Otherwise, a line may fall between 2 rows of pixels and you get this effect.

    But let's be honest, I think that JPG is not the best type of file to export from Illustrator. Why you do this?

    If you need to print, use HAVE or PDF/X-4, if you need it for the web or MS Office use PNG, if you need it on MS Office on Windows, use EMF.

    JPG has some kind of lossy compression that makes very visible spotty areas with drawings line Illustrator produces, so I would not recommend to export HAVE them in JPG format at all, unless you have a priority of photography and the work of art is not the object of your file.

  • How to export a PDF file to make nonprinting objects show but don't print not AND hyperlinks on the top of the page work at the same time?

    Firstly - I work in InDesign CC 2015.

    My problem is, I had this 10 page document, which, on every page, shows an object that must be in PDF format - but do not print. I made this object into a button and unchecked "Printable". On top of this object, I made 10 hyperlinks (separate layer) that point to the page 1-10.

    When you export the document and I use the interactive PDF format , works ' show nonprinting object but do not print ' well, BUT hyperlinks don't. If I uncheck the "layer of nonprinting objects" in the file PDF, then hyperlinks work, but the problem now is that the nonprinting objects are invisible...

    When you export the document and I use a PDF to print the "unprintable object show but do not print" does not work BUT the hyperlinks don't...

    I put hyperlinks to post a link to pages and also tried the link to the anchor text. No difference.

    So my question is: How to export a PDF file to make nonprinting objects show but don't print not AND hyperlinks on the top of the page work at the same time?

    Thank you

    Mette from Denmark

    I swapped my links to the buttons - AND NOW IT WORKS; (o)

  • Some hyperslinks in the exported PDF file takes the Viewer to the pages "broken/missing. For example, the hyperlinks to specific of Youtube videos does not work, they brought to a youtube page is missing.

    Some hyperslinks in the exported PDF file takes the Viewer to the pages "broken/missing. For example, the hyperlinks to specific of Youtube videos does not work, they brought to a youtube page is missing.

    Hi Sarah!

    I solved it! I had to use the original URL shorter links to create

    functional hyperlinks or try to short the links using Google URL Shortener.

    I don't know why it worked by doing this, but he did!

    With the friendly and happy greetings!

    Sonny. A

    2015-11-24 9:32 GMT + 01:00 aadeshs76610910 [email protected]>:

    You talked

    by aadeshs76610910

    https://forums.Adobe.com/people/aadeshs76610910?et=notification.mention> * in

    Re: A few hyperslinks in the exported PDF file takes the Viewer to

    pages "broken/missing. For example specific Hypertext to Youtube videos links

    does not work, they will bring to a youtube page is missing. in Adobe

    Community *-view aadeshs76610910 you reference

    https://forums.Adobe.com/message/8209923?et=notification.mention#8209923>

  • I can't export a PDF file to Word, there is an error in access to the service

    I can't export a PDF file to Word, there is an error in access to the service

    !

    Hi florac81095806,

    If you use ExportPDF go in drive, please make sure you have Acrobat Reader DC, as you can no longer access the service of earlier versions of the player. You can download the CD from this page: https://get.adobe.com/reader.

    Best,

    Sara

  • I have created a multi-page document in inDesign and exported in PDF format.  The original file size is 13.27 mb.  I used the command size reduced to 2.86 to the file to download on the internet.  However, one of the images in the original pdf file does n

    I have created a multi-page document in inDesign and exported in PDF format.  The original file size is 13.27 mb.  I used the command size reduced to 2.86 to the file to download on the internet.  However, one of the images in the original pdf file does not appear in the smaller file.  Can someone help me?

    Try the PDF tool optimize.

  • How to export a video file of the pdf presentation?

    I have the PDF presentation, when I open it, in the 1st video of slide set. How can I export this video file in the video?

    You should contact the creator of the file and ask for the original video. People tend to integrate things into PDFs to stop during the extraction, so we are not about to help someone get around that.

  • When I export my PDF file to Word, I lose the formatting?

    Why am I losing my page/font formats and spacing when I export my PDF file to Word?

    It would be useful to know the operating system and the version of Acrobat. When you export, the registration screen has a settings option that includes retain format (creates a lot of text boxes) or flow. There are also options for OCR and graphics in the settings. If the PDF has strange fonts (or non-system), they will be not recorded and Acrobat will try a better idea on an appropriate policy.

  • Problem of color with pdf from Indesign. I have a special mix CMYK for a bcard in Indesign. When I export the pdf file that the CMYK mix has changed just started today 1.13.15 Running Yosemite 10.10.1 all help to what to look for would be greatly apprecia

    I have a special mix CMYK for a bcard in Indesign. When I export the pdf file that the CMYK mix has changed just started today 1.13.15 Running Yosemite 10.10.1 all help to what to look for would be greatly appreciated.

    You are mixing color profiles a-place, or document workspace does not match the destination to export space is incompatible.

  • get the conversion failed on the export of PDF files.

    get the conversion failed on the export of PDF files.

    Hi jfcobb999,

    I'm sorry that you are having problems, file conversion. You convert the web interface, or through Adobe Reader? You have a large number of files in the folder root of your list of files on Acrobat.com?

    Try to start these things:

    • Empty the cache of the browser, and then try again.
    • Use another browser.
    • Make sure the drive is up-to-date by selecting help > check for updates.
    • If you have a large number of files on Acrobat.com, some of them move in a subfolder.

    Please let us know how it goes.

    Best,

    Sara

  • Define the quality of compression for individual images to export a PDF file?

    When is export a PDF in the ID file, you are given an option to downsample and compress images. My problem is, I want to compress images more than others. For example, a photo in the paper could be much more than a sous-echantillonnees png logo. Of course, I could go and pre-sous - sample each image to the right size in photoshop, but it may involve sort of. Is there a way I could exclude at least one particular image of compression?

    Hi Graham,

    If this is all for a PDF file, which should be light for web downloads and not for print jobs we can do the following:

    1. export a PDF file with different settings Downsample

    2 merge PDFs with Acrobat Pro

    Using the functionality of layers:
    A. import as layer
    B. flatten layers

    To get the different resolutions of individual images, configure the images that you do not want to see with a separate export for re - print.

    If this idea will work or not work depends on the structure of your page layout. And it might be a little automated through scripts. The extent of automation can be low or high. If images that shouldn't be downsampled can be identified by certain rules, legal regimes may or other means such as styles of object applied to the container used frames per etc., it could be high. And also individual export can be done by the script.

    Kind regards
    Uwe

  • How to open a PDF file using the built-in Viewer? (Windows 8.1)

    When I try to open a PDF file I have the pop-up dialogue "you have chosen to open *.pdf Firefox do with this file? And display in Firefox is not one of the options. I am sure that what is happening is that there is no dialogue, and the PDF has just opened in the integrated Viewer pdf.js. If something is wrong with my profile I guess.

    I tried the instructions here: https://support.mozilla.org/en-US/kb/view-pdf-files-firefox-without-downloading-them

    I checked through all my extensions and you do not have open a PDF (I have uBlock, NoScript and Zotero).
    I completely uninstalled Adobe Reader.
    I checked that in preferences/Applications, PDF is set to "Preview in Firefox.
    I did as I went through: config and change all settings with 'pdf' on their return to their default values
    But none of these things work.

    Is there anything else I can try to get this working?

    I think the problem I had was that some of the PDF files is served by Web sites with a "header" (I don't really know what that means) called "Content-Disposition: attachment", and when this happens, Firefox refuses to load them into the integrated PDF Viewer. (I don't know why Web sites this.)

    It is very helpful, especially because Firefox gives no indication as to what is happening (why the user preference for a PDF file is not respected). I just thought that the PDF Viewer was broken and spent hours trying to fix it.

    If anyone runs into this problem, there is an extension that fixes it: https://addons.mozilla.org/en-us/firefox/addon/inlinedisposition/

    There is a Bugzilla bug open about it: https://bugzilla.mozilla.org/show_bug.cgi?id=773942

    As far as I can see, it would be trivial reflect changes the extension above in Firefox. In the bug of no claim that it would be a bad thing to do for safety reasons. But Firefox should at least present the user the ability to open the PDF file in the integrated Viewer or even more at least have explanations on why the PDF is not currently open in the Viewer, for example "this PDF file was marked for download, so for safety reasons it has not been opened in the integrated Viewer. Who would save people like me, who don't know the HTTP headers that are complicated, just think that Firefox is broken.

  • Cannot open PDF files in the browser. I tried every fix mentioned and it still does not work!

    I have Windows XP. Using firefox as my browser. All of a sudden, I can't open the PDF files in the browser. I tried all the mentioned patches. Nothing works! Check the configuration of the plugin, checked the settings Adobe Reader.

    Is the problem that Firefox opens a blank tab, or that it requires you to download the file?

    I guess you tried switching spectators between the internal viewer and the Adobe plugin. If this article does not, steps: How to disable the built-in PDF Viewer and use another Viewer. Sometimes behind switching will allow to correct an error in the settings file.

    You can rename or delete the settings file that stores these associations and have Firefox regenerate. If the file is corrupt, this could be the only option that works. Here's how:

    Open your current Firefox settings (AKA Firefox profile) folder using

    Help > troubleshooting information > "view file" button.

    Leave this window open, activate any Firefox window and quit the program (for example, the file menu > exit or Firefox menu > Exit)

    Pause while Firefox finishing his cleaning, then rename the mimeTypes.rdf to something like mimeTypes.old

    Restart Firefox. Your likely PDF preferences will be reset to the internal PDF Viewer, but you can activate the Adobe plugin as described in the above-linked article.

    Any improvement?

Maybe you are looking for