Placing a PDF in CS5 – was working in CS4!

Hi
Below is an extract from a script that places a PDF in to a frame on a page, it was working in CS4 but it has broke in CS5. It all works up to the placing of the PDF – The error message reads Error: -1708 Error String "insert:File path to the PDF" doesn't understand the place message.
Heres the script…
tell active document
               –make layers
               set myLayer to make layer with properties {name:"impo-PDF", layer color:red, visible:true}
           end tell
           repeat with x from 1 to pageCountPDF
               set myPage to page x of active document
               –set the pdf import options
               set page number of PDF place preferences to x
               set PDF crop of PDF place preferences to crop media
               set transparent background of PDF place preferences to false
               – start placing the PDF
               – set frame size
               set lhboxBounds to {0, 0, 312, 111}
               tell myPage
                   set myRectangle to make rectangle with properties {geometric bounds:lhboxBounds, fill color:"None", stroke color:"None", stroke weight:0}
                   –Rotate pdf ?
                   set myPlacedPDF1 to place thePDF with properties {rotation angle:myPDFrotation + 90} on myRectangle
                   set myPlacedPDF1 to item 1 of myPlacedPDF1
                   –re-position PDF within frame
                   fit myRectangle given center content
                   – dupe up frame
                   move (duplicate myRectangle) by {111, 0}
                   move (duplicate myRectangle) by {222, 0}
                   move (duplicate myRectangle) by {333, 0}
               end tell
Any help would be great as I can't find anything on this
many thanks
LJ

Hi
This is only an extract of a bigger script, thePDF is set earlier…
set theFilePath to file path of document 1
set myFileName to myDocName & ".pdf"
set thePDF to (theFilePath & myFileName) as string
thanks
LJ

Similar Messages

  • My AI program (CS5 Illustrator 15.1.0) will not open some PDFs. It was working just yesterday, but now will only open a PDF if the graphics of the PDF is visible in the box that appears in the lower left corner of the dialog box after you click Open. The

    My AI program (CS5 Illustrator 15.1.0) will not open some PDFs. It was working just yesterday, but now will only open a PDF if the graphics of the PDF is visible in the box that appears in the lower left corner of the dialog box after you click Open. The file size does not seem to matter. Any ideas?

    Hello Kathie,
    Sorry for the inconvenience that has caused to you.
    Please let me know if you have tried converting any other PDF to word with Reader.
    Alos, please sign up at "https://cloud.acrobat.com/" using your Adobe ID credentials. Click on 'ExportPDF' tab and upload the PDF that you want to convert to Word.
    Let me know if this converts fine.
    Hope to hear from you.
    regards,
    Anubha

  • Dreamweaver CS5 not working with CS4 templates?

    I upgraded from CS4 to CS5 of Dreamweaver today and so I opened a template up in CS5 that I made for my site in CS4. So everytime that I make a new page from the CS4 template it will look good in the editing view and I can edit everything I'm supposed to like it should. But whenever I test the page in my browser or the Live View it won't use JavaScript or it won't show me AdBrite ads in the page and it messes up my CSS. I have no clue why its doing that because the new pages from this template in CS4 work fine but new pages in CS5 from the template wont show up correctly. Oh and every other page that I made in CS4 works very well in the CS5 but the new pages in CS5 just won't seem to preview well. Do you guys know of any solution for this or how I can solve this annoying problem?
    Any answers are greatly appreciated!!!

    One thing to note if you attempt JulesN's solution of moving the DIV tag inside the editable region... since this move is to a "non-template" area.. on many pages of your site it will simply mean the removal of the DIV tag outside the editable region.  You will need to manually go into each page and add the DIV tag back into the editable region as Template updates do not modify the content of those regions.. I tried this today and had hundreds of pages instantly stop displaying correctly before I realized the logic behind it.. I was able to recover.  However if you are using nested DIV tags as containers.. they are all either one big editable region or you need to wait till Adobe fixes this and use CS4 as I'm being forced to.  I have submitted as a bug as well.

  • JSFL - PNG export bug in CS5.5, works in CS4 - 8000px limit

    We have a series of JSL scripts that export our ad banners in both SWG and GIF format. The GIFs are compiled by exporting each of the 3 frames of the SWF as PNG images then a .jsx script runs in Photoshop and compiles them into a GIF.
    This all worked fine in Flash CS4. Running the script on FLAs in FLash CS5.5 produces this error at the PNG export stage:
    The bitmap is too large. The largest bitmap that can be created is 8000x8000 pixels.
    The line of code that triggers this error is:
    fl.getDocumentDOM().exportPNG((pngPath+resName+".png"), true, false);
    The path variables are fine and produce a valid path (see below). As you know the first boolean states whether to 'use current PNG export settings' (true) or to show the settings dialog on export (false). The second Boolean states whether to export only the current frame (true) or all frames in the SWF (false).
    If I change the 'use current PNG export settings' to false and show the export dialog and OK the default values the export runs fine (which is how I know there is no issue with the export path).
    Showing the dialog box on each export is not acceptable because we have over 10,000 of these banners to export over the next couple of months.
    I'd like to know:
    [1] Is this an actual bug?
    [2] Can anyone suggest a workaround?

    To reproduce this behaviour create an FLA in CS4, make 3 keyframes, draw a filled rectangle (or whatever) on each frame then save it somewhere (ie C:\test.fla)
    Then create a Flash JavaScript file, paste the following code into it and save it in the same location as the FLA. (ie C:\script.jsfl)
    exportPath = fl.scriptURI.substr(0,fl.scriptURI.lastIndexOf("/"))+"/";
    fl.getDocumentDOM().exportPNG(exportPath+"Frame.png", TRUE, FALSE);
    The first line of code here just gets the location of the jsfl file and removes the filename to give an export path.
    The second line export each frame to the same location as the FLA and JSFL files.
    This should run fine in CS4 and you will see the following in your save location:
    test.fla
    script.jsl
    Frame0001.png
    Frame0002.png
    Frame0003.png
    If you change the first boolean in the export command to FALSE and run the script again you should see the PNG export settings dialog box and when you OK it you will get the same export result.
    Now open the FLA and JSFL files in CS5.5 and run the JSFL. With the boolean set to TRUE you should get an error (the 8000px error), however if you set it to FALSE so that you get the settings dialog when you OK it the export will run fine.
    Change it back to TRUE and you will get an error again.

  • Something strange happened while I was working with CS4

    I'm not sure whether I accidentally hit a keyboard shortcut or clicked on anything without knowing, but for whatever reason, my clips on the timeline weren't "snapping" into place when I move them around like they were before. Does anyone know why this is happening, and how I can reset it back to the way it previously was?
    Another strange thing that happened: I was resizing some footage to remove something from the side of the frame, but when I resized it, it didn't ask if I wanted to confirm this change and no box came up showing progress on rending the frames, like it normally does when I do this. I'm a little worried that it hasn't rendered them right.

    Resize where. Timeline, Effect Controls, AME? Be more precise.

  • Placing a PDF in InDesign CS5

    Hello,
         I am new to these forums and new to forums as a whole. I have a question about InDesign CS5. I recently upgraded from CS3 to CS5. In InDesign CS3 when I placed a PDF file (or other Adobe file for that matter) once I selected a crop option if I then placed another PDF (or other Adobe file) the Place command remembered my last crop selection and made that the first option. I find that when I place PDFs now in CS5 that I have to select my crop option every time. The default seems to be Bounding Box (visible layers only), and no matter how many times I select another crop option, say media, and then place the item, I always have to reselect the crop option to media when I again place another PDF. Is there and option for changing this default? Or is there a way of turning on a option that will cause InDesign CS5 to remember my last crop selection under the Place command? If so, how do I do it? It would save my lots of time if I could figure this out.
    Thank you.
    CB

    Stix wrote:
    Welcome to the forum Charles, I hope your first experience is a positive one.
    I've had exactly this problem, which was solved in a forum on Indesign Secrets, another great Indesign resource.  The thread is here, but let me know if you have any problems implementing the scripts in it.  I've adapted them and made my own list so for example I can easily just click on one to place page 7 of a PDF to it's trim box, which not only means you don't have to have "show options" ticked when placing but if you drag and drop (which is often a lot quicker) you get what you want to.
    Thank you Stix, for the welcome and the information as well.
    I believe I have a working understanding of how to edit and place scripts in InDesign. (Now that is scary!) Now I have a new challenge; related to my original challenge. The PDFs that I am placing are not just single page PDFs; some of them can be 50 - 100 pages. That being said, one of my favorite things to do is to take a existing InDesign file, where I have already placed and sized the PDFs, rename it and then go in and select the previously placed PDF and replace it with page xxx; all throughout the document. Perhaps I am doing something wrong with the script information because I do not see away for me to choose the page I want without using the "show import options*. Using this option of course kicks out the script I have selected; does it not? Is there a option in one of example scripts that would help me with this?
    CB

  • PDF files not being displayed correctly, instead I get a blank screen with some sort of small pinned icon in the centre.  It was working fine until today HELP!

    PDF files not being displayed correctly, instead I get a blank screen with some sort of small pinned icon in the centre.  It was working fine until today HELP!

    What is your operating system?  Reader version?  Are these local or online PDFs?  If online, in what browser?
    Can you post a screenshot: https://forums.adobe.com/thread/1070933

  • While in Lightroom, i press command e to edit in cs5, however my picture won't open in cs5. It was working just fine, then just stopped.

    while in Lightroom, i press command e to edit in cs5, however my picture won't open in cs5. It was working just fine, then just stopped.

    Please do not post questions more than once. It makes it difficult for you as well as those who will try to answer. I don't have an answer for you. However:
    What operating system?
    What version of Lightroom?
    How much RAM?
    Did you install anything new?
    What version of Camera Raw are using in Photoshop CS5?
    If you can provide more details, it might make it easier for someone to provide you with an answer.

  • I have CS5 and LR5. they will not talk anymore. Everything was working 5 days ago. I can no longer access CS5 from LR5 edit, then drop it back into LR5. Need support

    I have CS5 and LR5. they will not talk anymore. Everything was working 5 days ago. I can no longer access CS5 from LR5 edit, then drop it back into LR5. Need support

    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 ("CS5" won't do for instance; we would need CS5 vers 12.0.2 or whatever) and of Bridge, machine specs, such as total installed RAM, scratch file HDs, video card 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.
    A screen shot could be very helpful too.
    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!

  • Hi, I was working on a PDF writing comments using Adobe Reader on a Mac.  I clicked save and got a 'cannot save' message.  I then clicked save as instead, Reader froze and my PDF disappeared.  The only version saved has only my first comment.  Does Adobe

    Hi, I was working on a PDF writing comments using Adobe Reader on a Mac.  I clicked save and got a 'cannot save' message.  I then clicked save as instead, Reader froze and my PDF disappeared.  The only version saved has only my first comment.  Does Adobe Reader save to temporary files that I can access in order to recover my work?  Is there any other way to recover it?  Thanks!

    Hi @Pat Willener,
    since I got the same problem as pdfprincess I hope you can help me. The 'Automatically save document changes to temporary file...' is enabled in my adobe reader.
    A file I worked (commented) on a lot crashed. When I reopened the file, adobe reader didn't ask if I want to restore my changes in this file, as it is written on the help.adobe.com page. Is there any possibility to restore the changes manually from the temporary file?
    Thanks in advance - it is really important for me to restore these changes!!

  • Interactive pdf from CS5 won't work on Adobe Digitial Editions

    I am an ebook publisher creating enhanced ebooks with video, using CS5 to produce interactive pdfs. These work fine on Reader 9, but why won't they work on Digital Editions? This is crucial if they are to be delivered online.

    I totally agree with vivrainbow. there is absolutely no point at all in creating an ebook reader if it is not going to display an ebook correctly. It's a complete debacle.
    I've just started experimenting with pdf from CS5.5 and found that a pdf which displays and works perfectly in Adobe Reader, does not do so in ADE (and i hate the way ADE displays a watermark which is set to only show at print).
    And writing off this complaint as "actually rather special" is actually rather ridiculous. ebook publishers are not in control of the software their end users choose. if someone has a bad experience reading an ebook in ADE they are just as likely to blame it on a crappy ebook file rather than ****** software.

  • I have hp 1018 laser printer and windows 7 ,all was working fine, suddenly it stop printing all PDFs

    i have hp 1018 laser printer and windows 7 ,all was working fine, suddenly it stop printing all PDFs.i have adobe acrobat X pro installed and adobe X1 reader installed, i searched a lot, nothing i found when i send command to print a PDF it just do nothing , but rest of images or word doc and webpages are beings printed, can any one help me whats going on ?

    well i have found that i needed to not just uninstall itunes, but also apple mobile device support, bonjour apple software update and apple application support - uninstall all these and then install itunes - that seesm to have fixed it, though now i am sync fail - that's a different matter perhaps

  • CS5 Premiere was working perfectly until last night... Now not responding. Any solutions?

    Hey all,
    So, for the past month I've had no problems editing with premiere. Then last night while editing on a much smaller project than normal, (same file types) the program started slowing down, considerably. Now, any keystroke puts the program into "not responding" and it takes minutes to select clips. I've restarted the computer, program, and looked at my cpu usage in the task manager. While the program is running, and then not responding, the computer is not stressing at all, 14% cpu, 31% memory. 
    Im running an i7 [email protected], 8gb ram, with ati hd 5770.
    What i dont understand is why I've had no issues until last night, and now I cant use the product at all. My After Effects still works fine at least.
    Any one else have this issue or know of a fix?

    Along with TClark's questions, try doing a New Project, and test it out.
    There have been reports of Project files bloating, and then not working properly. Adobe is working on that. Seems that many/most/all of those came with CS4 Projects converting to CS5. Was there any CS4 to CS5 conversion anywhere in this workflow?
    Good luck,
    Hunt

  • Hi, my illustrator CS5 freezes at startup. It was working properly till last friday, now i cannot open it. ¿can somebody help me?

    Hi, my illustrator CS5 freezes at startup. It was working properly till last friday, now i cannot open it. ¿can somebody help me?

    Leo,
    You may try the list (5) being less likely).
    The following is a general list of things you may try when the issue is not in a specific file, and when it is not caused by issues with opening a file from external media. You may have tried/done some of them already; 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible), for CS3 - CC you may find the folder here:
    https://helpx.adobe.com/illustrator/kb/preference-file-location-illustrator.html
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall (ticking the box to delete the preferences), run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • I'm running Indesign CS5 & it appears my Adobe PDF presesets have stopped working. Can you help?

    I'm running Indesign CS5 & it appears my Adobe PDF presesets have stopped working. Can you help?

    It's under utilities in the window menu.
    If the simple PDF works, that may indicate a problem with the file after all, but one way to to force the export to the foreground is to create a new Book (File > New > Book), then add the file that's giving you trouble to that book. (a Book is just a container format used to combine multiple .indd files into a single output)
    From the Book panel flyout menu you can export to PDF and see what that does. Failure indicates a file problem, success a background task problem.
    It's a little odd that you aren't getting an error message....
    Anyway, if the problem is the file, try export in two halves. If both halves export, it's a system resources problem and not much you can do other than attempt to see what is using all the memory (probably some large complex vector object, or many vector objects) or just do the export in chunks that work and combine them in Acrobat Pro. If one half fails, try exporting half  fo the failing half at a time. Keep dividing the failing half until you isolate a page with the problem.

Maybe you are looking for

  • Error message when starting OC4J after deploying

    Hi, I hope someone can help me. I've been developing a J2EE project in JBuilder9 and OC4J 9.0.3. The problem occurs when starting OC4J after the application has been deployed. I'm using two MDBs and two Session Beans, one Stateless and the other one

  • Fotostream

    I cant use photostream on my IMAC - no problem with the iphone or Ipad. When I login on ICloud, open Iphoto and ask to connect to photostream I am told: " Iphoto could not connect to Photostream" What is wrong ?

  • VGA cable adapters

    i have an HP pavilion dv6000 laptop and i recieved a VGA cable to connect it to my sylvania LCD tv (model number LC200SL8) but i noticed that the tv only has an outlet available for an s-video cable. Is there any way that i can find an adapter that c

  • Palm TX find function stopped working

    When i tap the find icon on my Palm TX does a reset when i tap the find icon on my Palm TX. Has anyone experienced the same problem. Any suggestions welcome. Thanks. Post relates to: Palm TX

  • Profile does not activated (it shows an error backup is not possible)

    Dear Experts , please solve my problem here i changed one parameter by RZ10 in DEFAULT profile  and i saved it then it prompts for Activate or not i said yes but the profile is not activated and it shows an error that is backup is not possible parame