Scripts, Ouverture de plusieurs pdfs avec export

Bonjour à tous,
Je viens chercher une solution a mon problème qui est le suivant :
Je souhaite ouvrir plusieurs PDFs les uns après les autres dans le but de les transformer en CMJN puis de les exporter au format TIFF j'ai très bien réalisé le script de cette deuxième partie (aplatir, changement de mode, export puis fermer) mais mon problème se situe avant ces étapes, au début de la création de mon script j'avais inséré une commande qui se chargeait d'ouvrir un pdf avec les bons paramètres mais lorsque j'utilise les traitement par lot il réagit de cette façon : Ouverture du PDF1, Aplatir l'image, Changement de Mode, Export en Tiff, Fermer (jusque là tout va bien pour le 1er pdf) Ouverture du PDF2, Aplatir l'image, Changement de Mode, Export en Tiff, Fermer... Le problème survient lors de l'écriture du deuxième tiff, Photoshop enregistre le deuxième tiff avec le nom du premier pdf (désigné dans le script).
J'ai testé beaucoup de possibilité, essayé d'enlever l'ouverture du pdf de mon script et de laisser le traitement par lot l'effectuer mais le traitement par lot ouvre seulement les pdf les uns après les autres sans appliquer mon script...
Ma question est donc la suivante : Quelle commande a ajouter à mon script pour que celui-ci ouvre les X fichiers présents sous un dossier avec tels et tels paramètres d'ouverture? ( ou sans forcément de paramètre d'ouverture précis )
Je vous remercie d'avance de vos réponses,
PS: Actuellement dans le but d'obtenir le même résultat je suis passé via le processeur d'image mais celui ci n'exporte pas réellement au format TIFF si je n'avais pas l'export tiff dans mon script (Il créé un dossier TIFF mis à jour à chaque export mais sans toutefois créer les tiffs et en renvoyant une erreur à la fin des traitements).

En fait il ne faut pas gérer les instructions d'ouverture et de fermeture au niveau du script, mais dans la boîte de dialogue Automatisation>Traitement par lot.
Un dossier de départ (avec éventuellement des sous dossiers)
Un dossier d'arrivée
Bien cocher les 4 cases : Priorité, Inclure etc
Comme ça les fichiers qui seront traités seront tous ceux présents dans le dossier source.
Tu peux faire pareil pour la destination à condition de cocher aussi Priorité…
Et surtout ne pas oublier de choisir le script  à appliquer dans le menu déroulant Action
En espérant avoir aidé
Didier

Similar Messages

  • Problème d'ouverture de fichiers PDF avec Acrobat professionnel 8.2.4

    Bonjour,
    Pour une raison qui m'échappe, il m'est impossible d'ouvrir certains fichiers PDF avec Acrobat Professionel 8.2.4, alors que mes colègues arrivent à le faire avec la version 8.1.4. Cela ne concerne pas tous les fichiers, seulement quelques-uns. C'est incompréhensible. Je travaille sur PC avec Windows XP SP 3. Les miniatures de certains fichiers s'affichent et ceux-la, je peux les ouvrir; pour d'autres fichiers, les miniatures ne s'affichent pas et je ne peux rien en faire. Ces fichiers ne semblent pas défectueux, puisque mes collègues peuvent les lire.
    J'ai le contrôle total des droits d'accès à tous les fichiers, tant sur le réseau que sur ma propre machine. Avant d'installer cette mise à jour, je pouvais lire ces fichiers.
    Existe-t-il un correctif? ou bien dois-je tout réinstaller? 
    Help!!!
    Merci de vos réponses

    Peut-être vous avez besoin de mettre à jour Acrobat 8.2.5?
    En dehors de ce forum, vous beaucoup être intéressé par "Le Sud-France Acrobat groupe d'utilisateur" comme une ressource.
    http://acrobatusers.com/user_groups/southern-france
    Be well...

  • Ouverture de fichier PDF avec Acrobat X Pro/Adobe Reader

    Bonjour,
    J'ai un petit problème :
    Depuis que j'ai installé Acrobat X Pro, tout mes fichiers PDF veulent s'ouvrir avec ce logiciel.
    Le problème est qu'il ne démarre pas, parfois j'ai de la chance et 1-2 minutes plus tard il se lance
    Quand je lance Acrobat X Pro depuis l'éxecutable, sans passer par un fichier, ça ne marche pas non plus. Et Distiller X non plus.
    Je peux donc faire clic droit sur le .pdf et faire "ouvrir dans adobe reader 10" et le logiciel gratuit adobe reader s'ouvre en moins de 2secondes.
    Alors j'ai voulu mettre que les fichiers .pdf s'ouvraient par défaut avec Adobe Reader quand je double-clique sur ces fichiers.
    Mais là, l'image du fichier a changé en une icône toute moche :
    Comment puis-je remédier au fichier moche de droite, mais en l'ouvrant avec Adobe Reader ?
    Ou alors en faisant en sorte de Acrobat X Pro arrive à se lancer
    Je suis en Windows 7 Familiale Premium (un ordi en 32x et un autre en 64x)
    Merci d'avance de votre aide
    PS : ah et pendant que j'y suis, est-ce que je peux enlever les :
    "Convertir au format pdf" et "combiner les fichiers pris en charge dans Acrobat..."
    du menu contextuel du clique droit ?
    Comme sur cette image : http://i47.servimg.com/u/f47/16/47/71/46/contex10.jpg

    Salut,
    - Cela fait bientôt 10 ans que Acrobat Reader n'existe plus : http://abracadabrapdf.net/articles.php?lng=fr&pg=8
    - Pour moi, le problème des lenteurs à l'ouverture a été résolu avec la mise-à-jour 10.1.4

  • Erreur d'ouverture document pdf avec adobe reader X

    Bonjour,
    J'essaie d'ouvrir un document pdf avec adobe X et j'obtient le message d'erreur suivant : "l'un des nombres spécifiés n'est pas compris dans l'intervalle autorisé", et la première page ne s'affice pas.
    Avec foxite reader le document s'affiche correctement.
    Quelqu'un a t-il déjà rencontré ce soucis?
    Merci de votre aide.

    Lorsque j'ouvre un fichier " .pdf " et j'essaie de le sauvegarder sur le disque dur, j'ai un msg d'erreur dans Safari:
    Document X.PDF peut etre exporter sous le nom x.pdf".
    Même en changeant le name , ca donne le même msg .
    Lorsque j'ouvre cette même page avec Firefox, la fin de l'adresse de la page est grisonner, et une page avec rien d'ecrit , lorsque la recherche de Firefox a fini .
    Alors est t'il possible de rapatrier le moindre fichier .PDF , aussi avec Safari que  Firefox.
    Je suis avec Mac OS X 10.7.4.
    Etienne

  • Comment convertir un lot de fichiers Illustrator au format PDF (avec "impressions prédéfinies-") avec un SCRIPT ?

    Comment convertir un lot de fichiers Illustrator au format PDF (avec "impressions prédéfinies…")
    avec un SCRIPT ?

    In the Sample Scripts is one called Save as PDF. Use that.

  • Advanced "Save as PDF" script that saves 2 PDF presets with 2 different Names

    HI Everyone,
    I am looking to improve a save as pdf workflow and was hoping to get some direction. Here is the background...
    I routinely have to save numerous files as 2 separate PDFs with different settings (a high res printable version and a low res email version). Each file has to be renamed as follows...
    Original filename = MikesPDF.ai
    High Res PDF Filename = MikesPDF_HR.pdf
    Low Res PDF Filename = MikesPDF_LR.pdf
    I was able to alter the default "SaveAsPDF" script to save the files to my desired settings and to add the suffix to the name. So with these scripts here is how the workflow operates...
    1. Open all files I wish to save as pdfs
    2. Select script to save files as high res pdfs
    3. Illustrator asks me to choose a destination.
    4. Illustrator adds the appropriate suffix and saves each file as a pdf to my desired setting. ("Save As" not "Save a Copy").
    5. Now all of the open windows are the new pdfs, not the original ai files.
    6. Now I have to close each window. For some reason Illustrator asks me if I want to save each document when I tell it to close window, even though the file was just saved. I tell it to not save and everything seems to be fine.
    7. Reopen all the files I just saved as high res pdfs.
    8. Repeat the entire process except I run the script specifically designed for the low res pdfs.
    What I would like to do is to combine these two processes so that there will be one script that saves both pdfs. From what I understand, the script can't support "Save A Copy" so the workflow would go as follows...
    1. Open all files I wish to save as pdfs
    2. Select single script to save files as both high res and low res pdfs
    3. Illustrator asks me to choose a destination.
    4. Illustrator saves each file as a High Res PDF and adds the the "_HR" suffix.
    5. Illustrator then re-saves the open windows as a Low Res PDF and replaces the "_HR" suffix with "_LR".
    Here is the code for the High Res script, The Low Res script is pretty much the same except for a different preset name and different suffix. Any pointer that anyone could give me would be most appreciated. I am pretty much a noob to this stuff so please keep that in mind.
    Thanks!
    Mike
    ---------------------------CODE----------------------------
    /** Saves every document open in Illustrator
      as a PDF file in a user specified folder.
    // Main Code [Execution of script begins here]
    try {
      // uncomment to suppress Illustrator warning dialogs
      // app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
      if (app.documents.length > 0 ) {
      // Get the folder to save the files into
      var destFolder = null;
      destFolder = Folder.selectDialog( 'Select folder for PDF files.', '~' );
      if (destFolder != null) {
      var options, i, sourceDoc, targetFile;
      // Get the PDF options to be used
      options = this.getOptions();
      // You can tune these by changing the code in the getOptions() function.
      for ( i = 0; i < app.documents.length; i++ ) {
      sourceDoc = app.documents[i]; // returns the document object
      // Get the file to save the document as pdf into
      targetFile = this.getTargetFile(sourceDoc.name, '.pdf', destFolder);
      // Save as pdf
      sourceDoc.saveAs( targetFile, options );
      alert( 'Documents saved as PDF' );
      else{
      throw new Error('There are no document open!');
    catch(e) {
      alert( e.message, "Script Alert", true);
    /** Returns the options to be used for the generated files. --------------------CHANGE PDF PRESET BELOW, var NamePreset = ----------------
      @return PDFSaveOptions object
    function getOptions()
    {var NamePreset = 'Proof High Res PDF';
      // Create the required options object
      var options = new PDFSaveOptions();
         options.pDFPreset="High Res PDF";
      // See PDFSaveOptions in the JavaScript Reference for available options
      // Set the options you want below:
      // For example, uncomment to set the compatibility of the generated pdf to Acrobat 7 (PDF 1.6)
      // options.compatibility = PDFCompatibility.ACROBAT7;
      // For example, uncomment to view the pdfs in Acrobat after conversion
      // options.viewAfterSaving = true;
      return options;
    /** Returns the file to save or export the document into.----------------CHANGE FILE SUFFIX ON LINE BELOW, var newName = ------------------
      @param docName the name of the document
      @param ext the extension the file extension to be applied
      @param destFolder the output folder
      @return File object
    function getTargetFile(docName, ext, destFolder) {
      var newName = "_HR";
      // if name has no dot (and hence no extension),
      // just append the extension
      if (docName.indexOf('.') < 0) {
      newName = docName + ext;
      } else {
      var dot = docName.lastIndexOf('.');
      newName = docName.substring(0, dot)+newName;
      newName += ext;
      // Create the file object to save to
      var myFile = new File( destFolder + '/' + newName );
      // Preflight access rights
      if (myFile.open("w")) {
      myFile.close();
      else {
      throw new Error('Access is denied');
      return myFile;

    Thank you for the reply Bob!
    Am I correct in assuming that these few lines of code replace all of the lines that I posted above?
    Also, When populating the PDFSaveOptions lines, would the end result look like this? FYI, LowRes preset name = "Proof Low Res PDF - CMYK". HighRes preset name = "Proof High Res PDF"
    #target illustrator
    #targetengine "main"
    for (x=0;x<app.documents.length;x++)
         var workingDoc = app.documents[x];
         var workingDocFile = workingDoc.fullName;
    // populate these with your settings
         var lowResOpts = new PDFSaveOptions(Proof Low Res PDF - CMYK);
         var highResOpts = new PDFSaveOptions(Proof High Res PDF);
         var lowResFile = new File(workingDocFile.toString().replace(".ai","_LR.pdf"));
         workingDoc.saveAs(lowResFile,lowResOpts);
         var highResFile = new File(workingDocFile.toString().replace(".ai","_HR.pdf"));
         workingDoc.saveAs(highResFile,highResOpts);
         workingDoc.close(SaveOptions.DONOTSAVECHANGES);

  • Scripting to load all pdfs in a month into the place command?

    Hello, I was wondering if anyone knows of a script that allows for you to place all pdfs within a set date range from a folder into an InDesign document? I am looking to do my monthly report and each month I have to go out and get each one, would be nice to load the place tool with all the pdfs I have done with a set date range and then just place them accordingly. Is there something out there like this and/or am I missing something obvious?
    Thanks!
    B

    IM Sorry tomaxxi, am I suppose to be inputting something somewhere here in
    regard to the dates? I would need an example like for lets say the month of
    Nov. I try to paste this and save it in the script editor but it keep
    saying that the file cannot be saved. Any ideas? Please bear in mind your
    speaking to a guy who has like zero knowledge when it comes to scripts.
    Best regards,
    Robert
                                                                                    From:       tomaxxi <[email protected]>                                                                               
    To:         Robert Borchardt <[email protected]>                                                                               
    Date:       11/08/2010 03:29 PM                                                                               
    Subject:    Scripting to load all pdfs in a month into the place command?                                                                               
    Sorry for delay...
    I just tested script and it's working fine for me here.
    I created 4 sample PDF-s with just one page, then started script,
    selected exported PDF-s, script sorts them by creation date and loads
    placegun.
    So, all you need to do, is to start script and select documents you want to
    place.
    I changed script little, so make sure you use this one:
    if(app.documents.length != 0){
        var myFiles = File.openDialog("Select Files:", "*.pdf", true);
        if(myFiles != null){
            myFiles.sort(function ( a, b )
                    if ( a.created < b.created )
                        return -1;
                    if ( a.created > b.created )
                        return 1;
                    return 0;
            app.activeDocument.place(myFiles);
        }else{
            alert("No files selected!");
    }else{
        alert("No documents opened!");
    tomaxxi
    http://indisnip.wordpress.com/

  • How can I digitalize a document text in PDF and export it to WORD?

    Anthony
    How can I digitalize a document text in PDF and export it to WORD?

    If you already have a PDF document, ExportPDF can help you with this task. https://www.acrobat.com/exportpdf/en/convert-pdf-to-word.html
    On the other hand, if you have a physical document, you'll need to scan it into a PDF document first.
    Depending on what you need to do you may require different tools & services, so please help us out with more details.
    Vlad

  • Why Acrobat x professional is changing the text formatting specifically the font family  and the font size of the text in my pdf on exporting it to Microsoft word file format ?How should i stop Acrobat x professional from doing that so that i get an exact

    Why Acrobat x professional is changing the text formatting specifically the font family  and the font size of the text in my pdf on exporting it to Microsoft word file format ?How should i stop Acrobat x professional from doing that so that i get an exactly same word file on exporting it from its pdf counterpart?

    I was testing the preciseness & efficiency of Adobe acrobat x professional's doc conversion capabilities. As i have to take a document editing project in future which is going to need lot of pdf to word and vice versa conversions . What I did was I created a test word document converted into a pdf using a pdf maker in my word 2007 , Acrobat did convert the document from word to pdf keeping everything in the source file intact , However when i tried the other way round and attempted to convert the same pdf to word 2007 file format I lost my formatting ?So the font that I used to create the pdf are the ones taken from word 2007 which i believe is using the fonts that are installed in my computer. Any suggestions on how to preserve the formatting of the document after converting it from pdf to word file format?
    Regards
    Mike

  • Converting Script from OTF to PDF format

    Hi Experts,
    Using FM CONVERT_OTF in SAP Script print program I am converting data of Script from OTF to PDF format but the data in PDF document srinks and looks like slightly overlapping one leter on the other, can any ony please tell me that how can I avaoid this.
    Thanks in Advance
    Best Regards
    Venkat

    Dear Venkatesh,
    I have the same scenario. I have to convert Script to PDF and then write it to FTP Server.
    Could you please provide me the code which you have used?
    Regards,
    Chaitanya A

  • How do i create a PDF, or convert a jpeg to PDF for export?

    How do i create a PDF, or convert a jpeg to PDF for export?

    Oped the .jpg image in Preview    HD > Applications > Preview
    Then from the Preview menu bar click > File > Export
    Select PDF from the Format pop up menu then click Save.

  • Why do vector lines appear different in my Photoshop document compared to the PDF that was created using "Scripts Layer Comps to PDF"? And how do I get them to look the same?

    Why do vector lines appear different in my Photoshop document compared to the PDF that was created using "Scripts > Layer Comps to PDF"? And how do I get them to look the same?

    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, what troubleshooting steps you have taken so far, what error message(s) you receive, if having issues opening raw files also the exact camera make and model that generated them, etc., someone may be able to help you.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Getting message while opening PDF file exported from InDesign

    Hi,
    We have created an interactive PDF in InDesign. In this PDF we have created 15-20 pages which are link together and next previous button is provided.
    We are using InDesign CS3 and PDF reader 9. PDF is exported for version 8 onwards. Exported PDF is working properly on our machine but our client is receving the following message on their machine if they try to open this PDF (they have PDF reader 8):
    "Please Note: You cannot save a completed copy of this form on your computer. If you would like a copy for your records, Please fill it in and print it"
    We have not used any kind of form in my PDF only internal page hyperlinks are given.
    Attached screen shot is given for your reference.
    Is there as way for remove this message so it doen not appear? I would really appriciate if anybody can help me out.
    Thanks a lot in advance.
    Regards,
    Deepika

    Deepika,
    The alert dialog your screen shot depicts will only display if there is some kind of form annotation present in a PDF that is not "Reader Enabled".
    Look closer at your 'final' PDF.
    A PDF, not "Reader Enabled", that contains any form annotations will, when opened by Adobe Reader,
    result in the alert dialog that you mention. A "hard wired" default.
    Note that the forms document message bar can be "off" by a selection in Adobe Reader / Acrobat Preferences.
    Select the 'Forms' category. Select "Always hide forms document message bar".
    Be well...

  • Why won't Acrobat X Pro honor the margin (art box) from PDF's exported from InDesign CS6?

    Why won't Acrobat X Pro honor the margin (art box) from PDF's exported from InDesign CS6?
    When I export a PDF from InDesign CS6 with specific margins, Acrobat does not recognize the Art box. (I have PitStop Pro 11 for page box view)

    Thanks Steve,
    We are exporting PDF's as you indicate. I see the same thing. The boxes are all the size of the original InDesign document. The PDF art box should be predicated by the margins in InDesign. When we had CS3, this worked great. Now, it seems that there is a disconnect between the two Adobe products honoring the page box size. I have contacted the Adobe techs via chat, and they had no clue what I was referring to. I find it mystifying that Acrobat can not interpret the art box set in InDesign as margins.

  • Sending SAP Script output as a PDF attachment through mail

    Dear Guru,
    I am using SAP 4.0B version, DATABASE Oracle 8i, OS is sun solaris 7.5.
    I want to send SAP script output as a
    PDF attachement through mail.Please suggest a solution.
    Regards,
    Rajesh

    Hi Rajesh,
    In your print program, while calling OPEN_FORM, pass options-TDGETOTF = 'X'. This is used for returning print output in OTF format.
    Then in CLOSE_FORM, get the table OTFDATA returned from the function module. for example
    DATA: OTF_DATA LIKE ITCOO OCCURS 0 WITH HEADER LINE.
        CALL FUNCTION 'CLOSE_FORM'
          IMPORTING
            RESULT  = RESULT
          TABLES
            OTFDATA = OTF_DATA.
    now you can convert this OTF data to PDF using function module CONVERT_OTF
    Then send this data as attachment to a mail using function module SO_NEW_DOCUMENT_ATT_SEND_API1
    Regards,
    Komal.

Maybe you are looking for

  • Podcast not showing up in itunes search after 1 week

    i submitted my podcast with one episode and it was accepted on 17 july. i am able to get to it in the itunes store by using the url as provided in the email. iTunes Store Welcome Dear Podcast Owner Your podcast, located at [ http://feeds.feedburner.c

  • Simple Stop and Play

    I have been trying to create a very simple slideshow for a friends site I done for him to advertise his business. The photos, I suggested would be better if they were done as a slideshow and the idea was to have each picture fade in, stop, click to p

  • I'm getting this error message.

    Every time I load firefox 3.6, a dozen javascript message pops out. This is the first one: Exception: asyncLoad :: {"message":"$.getJSON is not a function","fileName":"chrome://browser/content/browser.xul -> http://mntr.babcdn.com/mntr/1.0.6.1/mtffxc

  • My Giffgaff SIM works in my phone but my O2 has No Service.... why?

    Giffgaff runs off O2.... No other SIMS get service on my phone. Just Giffgaff. It's an iPhone 4 32 gig. It's a replacement from Apple. It was origionally bloked to O2.

  • Some websites are downloaded very slowly from a user account but they are OK at admin in Win XP.

    In my Win XP computer I have an administrator account and a normal user account. Since a few days, certain websites (e.g. mail.yahoo.com) are very slow. Same websites are OK when I am in administrator account. Found and removed a few viruses but noth