Javascript to open PDF files
Hi,
I am trying to open 2 PDFs in Photoshop using Applescript, but there is a huge delay before PS even attempts to open/rasterise the files.
Beyond "open thisItem as PDF with options..." i don't know what I could do differently.
A solution would be to use javascript. I have found a number of scripts to open PDF files and then do stuff with them, but they all rely on a folder as an input for batch processing. I have done a lot of Applescripting, but no Javascript, so I am not sure how to pass 2 filepaths to the javascript. Can anyone enlighten me?
I have tried using the javascript from ScriptListener, but even though I change the resolution to 200, it is still opening at 300. Is this a bug, or am I missing another piece of code?
I would be grateful for any ideas.
Ian
There is not normally a delay when I open the PDF usually. When the script is run, there is a delay of at least 1-2 minutes before you see Photoshop display a progress bar.
The PDFs have been converted to process, so contain no overprints, and in many cases are mostly rasterised already. They can be quite large but open up quickly in normal conditions.
This is a simplified version of the code:
on open (addeditems)
tell application "Adobe Photoshop CS3"
repeat with thisItem in addeditems
open thisItem as PDF with options {class:PDF open options, resolution:200}
--do stuff
end repeat
end tell
end open
Thanks
Ian
Similar Messages
-
How can I make chromium to open PDF files directly in okular?
Hi all,
I switched from firefox to chromium and there is one thing that I would like to have solved: At the moment, the only way to open PDF files from the web is to first save them locally and open them afterwards from the chromium statusbar or from the chromium downloads tab (chrome://downloads/). Is there a way to configure chromium to open PDF files directly from a remote URL in okular?
Thanks in advance & kind regards,
jamesbond007.Yes, I would like to know that as well. Here it tries to open pdf files with the adobe plugin but fails (grey window). It's especially annoying with javascript links that do not allow to use "save as".
David -
HelloThank's for your helpsI hope this document is helpfulBest Regards,
Date: Sun, 22 Jun 2014 17:10:17 -0700
From: [email protected]
To: [email protected]
Subject: when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
created by Anoop9178 in Adobe Reader - View the full discussion
Hi,
Would it be possible for you to share the document?
Regards,
Anoop
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6485431#6485431
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Adobe Reader by email or at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.thank's for reply and your help
i did the step's that you told me but i still have the same problem
i have the latest v.11.0.7
i
i disable the protected mode -
Error while opening .PDF files in document library sharepoint 2013
Hi
I am getting an error while opening a .pdf file,
Please help me find the solution.
Thanks
ParuLaunch IE -> Click on Gear (settings) -> Manage Add-ons -> Show: All Add-ons ->
There are 2 Adobe Add-ons:
Adobe PDF Reader & Adobe Acrobat Sharepoint Open Document
Double-click both and be sure to click the button "ALLOW ON ALL SITES"
(An * will appear in the field)
http://crowdsupport.telstra.com.au/t5/T-Suite-Applications/There-was-an-error-opening-this-document-The-filename-directory/td-p/197425
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ae2eea40-9fa6-46be-bca1-ac5eb5597d5e/sharepoint-2010-adobe-reader-error-opening-pdf-files?forum=sharepointgeneralprevious
http://community.office365.com/en-us/f/154/t/46204.aspx?PageIndex=2
disable the Mcafee Firewall Plug In. This is after of course I ran superantispyware to remove some malware. uninstalled and reinstalled the Adobe Reade
https://forums.adobe.com/message/1776202?tstart=0 -
I can not open PDF files in mail on iPhone 6plus
hhas anyone had a problem opening PDF files in mail. I get a grey screen
Try a reset, no data loss. Hold down the home/sleep button together until you see the apple logo and then release, then wait for the phone to boot back up.
then check again. -
I cannot open a pdf file with aol e-mail. I went to preferences in Adobe Reader but did not know what to enter for Incoming IMAP and outgoing SMTP. I can open pdf files from windows explorer as I have associated .pdf files with adobe reader. My operating system is windows 7.
When I try to open the pdf file within aol e-mail I get a message: 'Your security settings do not allow this file to be downloaded'. I have not changed my security settings (Tools, Internet Options, security).Or http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html
-
Hi. I have a Dell PC running Windows 7 64 bit. I have the latest version of Adobe Reader, It worked yesterday. Today I have job training to do that is due tomorrow morning and I can't open PDF files. I have to open a guide and read it and take a test tomorrow. I have deleted and reinstalled the application. I have rebooted. I have made sure my PDF's are associated with the program. Every PDF on my computer won't open and I get the same error message. It simply says Attempt to access invalid address. How can I fix this? Thanks.
Hi Don,
I have seen this issue fixed for some users by modifying the following registry key:
The key is "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management" MoveImages
Set the key to 1 instead of 0 then reboot the machine.
In case you still face the issue try the following registry key change:
The only thing you have to do is rename the following key at the REGEDIT, and everything will be fine !!
BEFORE:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplore.exe
AFTER:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplore.old
Note: Please take a backup of the registry before attempting this change.
Regards,
Rave -
I can no longer open pdf files when clicking on a link such as: shown in troubleshooting info.
It used to work on earlier version when I had XP, now I'm Win7Pro and using version 5.0.1 The links work fine with Internet Explorer. Help, please.Type in '''about:plugins''' into the location bar and press "Enter", at the the top is a line for plug-ins test pointing to [http://www.mozilla.com/plugincheck/ mozilla.com/plugincheck/]
You should have Version: 10.1.0.534 for adobe acrobat but you have two older versions instead. If the one does not replace both you may have to disable the really old one, or remove through the control panel. -
for example...i will go to a restaurant website that has a menu. to view the menu i first have to click on the downloadable menu pdf file...after i click on it, a window appears showing i have downloaded the file...but, when i go to open the pdf, i get that error message...completely unable to open pdf files that ive downloaded
See:
http://www.java.com/en/download/help/quickstarter.xml - What is Java Quick Starter (JQS)? What is the benefit of running JQS? - 6.0 -
I am not able to open PDF files or documents. Why?
Here is my assessment, Claudio. I know you are revered among your peers and it's very obvious that you live on these forums. You have undoubtedly helped a lot of people and you will be rewarded in your afterlife for your endeavors here but here's a reality check for both you and Pat:
What lesson did D.Call learn from you? Likely the lesson was, don't post here or you'll be treated as an imbecile by some hotshot bitwhiz named Claudio Gonzalez.
Did you not see that D.Call said s/he was an inexperienced computer user… and was obviously asking for elementary level assistance? You were blinded by your belief that your knowledge and expertise is being wasted on anyone who isn’t forthcoming to your expectations. I merely pointed out that if you think it's such a waste of your time, why dwell? You should have left Graffiti to work with D.Call and headed off to another thread. Surely there were other posts requiring your extreme level of higher intelligence.
Think about this: You don't like it when someone talks down to you as I have here, now do you? No one does. Right now as you read this my guess is you are fuming and likely trying to think of a way to smite me. You can respond to this post in whatever tone or language you choose but I won't take offense. I’ll be the bigger man… I promise I won't reply so you can have the last word.
When you respond, see if you can take it up a notch and maybe even admit you made a mistake with your corkscrew remark. I don't think you would ever risk being so disrespectful to D.Call, and most certainly, not to me or anyone else if we were face-to-face. If you worked in my company, you would be fired for disrespecting my customers.
By the way, do you and Pat have spell check ability? If you do, you should use it. -
I am trying to open PDF files from safari, but when I click on them they open in a separate window and the information is encrypted. Any ideas on how to get them to open them in Adobe? Any help please!
The pdf is loading as html code. If you save it, it will download as :
605124.pdf.html
Change the extension to .pdf
And it opens and works perfectly, I just tested it:
Use this link to download it automatically:
http://saladeaula.estacio.br/arquivo.asp?dir=00/1020624/605124.pdf&num_seq=59828 4 -
Opening pdf files on websites to fill them in on the website
With my iMac I can open and fill in all pdf files from websites using OSX 10.6.5. On my macbook pro using 10.7.5 or later safari will no longer open pdf files on websites and just gives you a blank black page. I use these all the time on sites from the IRS or other taxing agencies and fill in the forms and save them or print them. I have not upgraded my OS on my desktop because of this. Why is this happening and how do I fix it if it can be fixed. I talked to someone at applecare and they said the fuctionality was no longer in the operating system to do this and I can only download the pdf files. That is not sufficient because these are fillable forms on their websites. All businesses use this function and if apple really wants people to use their computers for business I would hope that their not so monumentally stupid as to write this out of the newer OS. HELP
Try another browser such as Firefox until this gets sorted out.
Firefox
Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
Feedback
Due to the way the support community web site has been working lately, your post may have dropped to where no one could access it. The "More" button at the bottom left of the page hasn't been too reliable. -
Unable to open .pdf files after installation of 9.1.3
Hiya. I'm using XP SP3 w/Firefox 3.5.3 and IE 8.
When I try to open a .pdf file from Firefox (and I assume IE, which I never touch with a 10 foot pole), Adobe Reader opens, but then a blank dialog box (with a graphic of a ? in a bubble) pops up and all I can do is click the "OK" button and it closes Reader completely.
I've restarted Firefox, rebooted my computer, no Adobe products were running when I did the installation, and no errors occured during the installation.
I can open .pdf files from my HDD just fine, only when I try to open them from a browser window does the problem occur.
Help?That's all it does.
Like I said, I can open .pdf files that I've saved to my HDD, but opening them from the web just does this. -
Transferred certain files to my new Mac from my old computer via memory stick.Can open PDF files but not xlr,aww or wps ones.The important ones are in xlr format.Is there a solution please?
My guess is they don't care. Most likely they're illiterate and don't know what a colon is for. They probably think it's a little-used character. Remember: these are the people who don't know the difference between "deprecate" and "depreciate".
I have the same colon problem as you do. But it's not the biggest problem I have encountered in Lion. If it was only that I'd be Mr. Delighted with Lion. There's worse than having a colon - uh - that won't cooperate. A lot worse, in Lion. -
I cannot open pdf files from one supplier when using Adobe Reader but I can using another Viewer
I cannot open pdf files from one supplier when using Adobe Reader but I can open it if using Google PDF viewer or another viewer. The Adobe reader gives the error "There was an error opening this document. The file is damaged and could not be repaired" when I try to open the file. The version of Adobe Reader is 10.1.7, however I have tried other versions and they all fail the same way. I have tested on a number of different PC's in different networks and all fail using Adobe Reader but work using alternate viewer. Also the PC's will open a PDF from any other source.
Newer Reader versions are more strict than older versions (and other PDF viewers). If certain minimum requirements are not met, Reader will tell you that the PDF is damaged. This can happen when a document was created with software that does not adhere to PDF standards, or when the file was damaged during a download or email transmission.
You should contact the creator of these PDFs.
Maybe you are looking for
-
missing masters in aperture , getting an yellow exclamation mark ,
-
Flash CS5, image from library in TLFTextField?
I cannot seem to embed an inline image in a TLFTextField from the library. Using the following snippet (with both a TLFTextField and a standard Dynamic TextField on the stage), the image appears ok in the Dynamic TextField, but no image in the TLFTe
-
I can only print 1 page can somebody help
I can only print 1 page can somebody help sl
-
Hi all, When I am trying to use the function module SSF_FUNCTION_MODULE_NAME, it is giving a runtime error that the generated function module is not found. please help me resolve this This is the code i used:- REPORT ZSSFFUNCTION. DATA: fname TYPE r
-
MacBook not booting up. SSD card not working. What to do?
I have been informed by a technical consultant that the SSD card for my MacBook Air is faulty and needs to be replaced. Does my warranty cover this replacement. I bought the system in may 2013. Also what is the process of replacement if it is covered