-
1. Re: Introducing: Open Multi-Page PDF win/mac
[scott] Jan 8, 2012 12:53 AM (in response to CarlosCanto)Thanks Carlos!
Doesn't seem to ever acknowledge a PDF is selected with AI15.1.0/MacOS 10.7.2. So can't ever get past the select PDF stage.
It does open and work with AI15.1.0 and Mac OS10.6.8 but after the script finishes running it opens the ExtendScript ToolKit as well. It's a minor thing to quit the Toolkit and switch back to AI where all the pages are there.
Nice work!
-
2. Re: Introducing: Open Multi-Page PDF win/mac
Muppet Mark Jan 8, 2012 2:29 AM (in response to [scott])Scott, its not Carlos's script as such… Illustrator has a bug/problem with LIon it will no longer take a File Object or String with the '~' OS tilde…
-
3. Re: Introducing: Open Multi-Page PDF win/mac
CarlosCanto Jan 8, 2012 10:45 AM (in response to [scott])Hi Scott, thanks for checking and reporting back, the ESTK opening was my bad, I always have it open and never thought of testing with it switched off...anyway I fixed it, I'll post another link shortly...I'll wait for Mark to see if there's a way to fix the Lion issue...
thanks
-
4. Re: Introducing: Open Multi-Page PDF win/mac
CarlosCanto Jan 8, 2012 10:44 AM (in response to Muppet Mark)Hi Mark, thanks for coming to the rescue, I wouldn't have got a clue how deal with that on a mac...now, why would Lion add a tilde to the file name? is there a way to get rid of it? perhaps turning the path to absolute URI?
thanks for helping out
-
5. Re: Introducing: Open Multi-Page PDF win/mac
Muppet Mark Jan 8, 2012 11:46 AM (in response to CarlosCanto)Carlos, my Lion kitty is still in the box… Won't be getting installed any time soon… I can't try or test… only pass on what issues I've seen posted in the scripting forum… Lion did not add a tilde to mac file specification OSX has always been like that its just the user home… thus far I have only seen issues reported in the Illustrator scripting forum so I think the choking on '~' is an Illustrator + Lion issue… May be using .fsName for a full string would fix I can't really say…
-
6. Re: Introducing: Open Multi-Page PDF win/mac
Sluggo_at_work! Jan 10, 2012 9:37 AM (in response to CarlosCanto)I was looking for something to enable this about a month ago, and today I found another use for it and went searching... You rock, Carlos! Thanks!
-
7. Re: Introducing: Open Multi-Page PDF win/mac
CarlosCanto Jan 11, 2012 8:12 AM (in response to Sluggo_at_work!)you're welcome, here's the next version, this one won't open the ESTK at the end of the run. It still doesn't work with Lion ...we're looking into it.
http://www.fileswap.com/dl/MD3MqpHzIv/AI_openMultiPagePDF_CS4_CS5.V1.01.zip.html
-
8. Re: Introducing: Open Multi-Page PDF win/mac
John Hawkinson Jan 15, 2012 4:34 PM (in response to CarlosCanto)Carlos:
It still doesn't work with Lion ...we're looking into it.
Is this bug written up somewhere? It appears that File.openDialog() returns a File object with an fsName starting with file:// which confuses the rest of the machinery, which is existing a POSIX path. The solution is to strip any leading file:// and create a new File object. So add the second of these two lines on line 61:
var fileRef = File.openDialog ("Select PDF...", "*.pdf"); // get the file fileRef = new File(fileRef.fsName.replace("file://",""));
This seems to fix it for me on 10.7.2.
-
9. Re: Introducing: Open Multi-Page PDF win/mac
CarlosCanto Jan 15, 2012 8:14 PM (in response to John Hawkinson)Hi John, thanks for checking, I had no idea it was a bug til Scott posted it wasn't working on Lion...I would have loved to do the testing myself but I'm on Windoze
I'll add the line, test it on windows, and post a revision to the script...
thanks for your input.
-
10. Re: Introducing: Open Multi-Page PDF win/mac
CarlosCanto Jan 15, 2012 11:04 PM (in response to CarlosCanto)here's the new one, I added the fix posted by John, it didn't affect Windows. Can someone test it on Lion? also can you please try to open a file by typing in the box instead of using the File...button? and also after selecting a valid file, can you please edit the file name typing a non valid file name...I'm trying to find out if the "Open" button gets disabled.
thanks in advance
http://www.fileswap.com/dl/ZER81f4HRb/AI_openMultiPagePDF_CS4_CS5.v1.02.zip.html
thanks John
-
11. Re: Introducing: Open Multi-Page PDF win/mac
Paal Joachim Feb 9, 2012 4:45 AM (in response to CarlosCanto)Hey Carlos!
Thanks...:)
I am using my Macbook Pro running Lion 10.7.2.
I downloaded the script and added it to the JavaScript folder (is this the right folder?)
Opened Illustrator -> File -> Scripts -> Other Scripts -> (browsed for the script)
Opened the pdf file in preview and noticed the amount of pages. Can the script have an autodetect so it selects all the pages in the pdf?
Went back to the script dialog box and changed the To area to the amount of pages. Clicked Open.
(I have a few 16 page pdf files that I need to change the logo for each page)
Gradually it opened seemingly on top of each other. Clicked ok. 14 artboards from left to right. 2 artboards below on the left. Hmm I forgot how to adjust the layout of the artboards, can anyone give me the hint on doing so?
I tested the script with 2 16 page pdf files and it looks good!
Now if only you could add the script to Indesign as well...:) As I noticed that Indesign can not open pdf files.
Have a great day!
-
12. Re: Introducing: Open Multi-Page PDF win/mac
Muppet Mark Feb 9, 2012 5:16 AM (in response to Paal Joachim)You place PDF's in indesign… Anyhows a script…
http://indesignsecrets.com/placing-all-the-pages-of-a-pdf-inside-indesign.php
-
13. Re: Introducing: Open Multi-Page PDF win/mac
Paal Joachim Feb 9, 2012 5:51 AM (in response to Muppet Mark)Thanks Mark!
I am also looking for ways to have the pdf files editable inside Indesign.
Adobe really should improve the pdf editing features in Illustrator and Indesign. I find it weird that Indesign can not even bring in pdf files. Since Indesign and Illustrator both can save out to pdf files it seems natural that both programs can open these kinds of files and also edit them.
-
14. Re: Introducing: Open Multi-Page PDF win/mac
Monika Gause Feb 9, 2012 9:18 AM (in response to Paal Joachim)1 person found this helpfulPDF is not intended for editing.
On top of that: those apps that can create PDFs (like CorelDraw, Keynote, AutoCAD, Scribus, InDesign, Photoshop, OpenOffice) are different, have different functions and options - so making a PDF fully editable would be like creating the universal file format.
-
15. Re: Introducing: Open Multi-Page PDF win/mac
CarlosCanto Feb 9, 2012 11:47 AM (in response to Paal Joachim)Hi Paal, to rearrange artboards, grab the Artboard Tool, then you can freely move your artboards around with it, make sure the Move/Copy Artwork with Artboard option is selected.
as Monika mentioned, PDF files are meant to be "viewed", not to be edited. I guess minor modifications/additions are ok though, don't expect to have full control.
-
16. Re: Introducing: Open Multi-Page PDF win/mac
CarlosCanto Feb 9, 2012 11:50 AM (in response to Monika Gause)UFF...now that would be cool, a Universal File Format
-
17. Re: Introducing: Open Multi-Page PDF win/mac
CarlosCanto Feb 9, 2012 11:52 AM (in response to CarlosCanto)how does attempting to get total PageCount and arrange artboards Options sound for a Version 2?
-
18. Re: Introducing: Open Multi-Page PDF win/mac
Monika Gause Feb 9, 2012 12:07 PM (in response to CarlosCanto)Total page count sounds really nice.
-
19. Re: Introducing: Open Multi-Page PDF win/mac
MW Design Feb 9, 2012 12:37 PM (in response to Monika Gause)While certainly not a universal file format, several applications can open and use PDF content pretty darn well. For the flier or small brochure type of PDFs, I use Xara Designer Pro (use it quite a lot anyway). For "publication" types of PDFs I need to redo, I use Serif's PagePlus with the text setting set to "Flow" (versus "Tight").
Depending on how the PDF is constructed and by what originating app, the contents are editable in most all respects in either of the two above applications.
As for a so-called universal graphic format, well, SVG is one such attempt.
Take care, Mike
-
20. Re: Introducing: Open Multi-Page PDF win/mac
Muppet Mark Feb 9, 2012 1:13 PM (in response to CarlosCanto)Carlos, arranging artboards can be done at new document creation… Rearrange artboards can be used when ever… Your PDF page count can be a bit tricky…
-
21. Re: Introducing: Open Multi-Page PDF win/mac
CarlosCanto Feb 9, 2012 2:50 PM (in response to Muppet Mark)Hi Mark, that's correct, getting page count is tricky...in next version I will try, the PDFs I can get the page count I will display it and the ones that don't have that info, I'll just do page 1 as default, like in the original version.
-
22. Re: Introducing: Open Multi-Page PDF win/mac
Paal Joachim Feb 10, 2012 12:30 AM (in response to CarlosCanto)This is a reply to Monika:
Even though there is no universal standard it is better to have the opportunity to open a pdf and edit in Illustrator and Indesign then no chance at all. Of course if needed there can be a warning that the contents might look different then expected or the pdf not even be editable at all during the opening of a pdf file. Trying is better then not trying.
Carlos:
Yeah I know that I can move each individual artboard around. But I find it cumbersome with having to move around 16 or more into a position that works for me.
Mark:
Yes arranging the arboards can be done at new document creation but since we are not creating a new document but opening a pdf file in Illustrator there is no option on arranging the artboards.
Carlos:
It would be great with having the arrange artboards in your next version of the file! Thank you...:)
Perhaps an options button that opens a tab or slides out to show arrange artboards etc.
Total page count of a pdf is also very good. Then I do not need to check the pdf beforehand to see how many pages it contains.
-
23. Re: Introducing: Open Multi-Page PDF win/mac
Muppet Mark Feb 10, 2012 1:19 AM (in response to Paal Joachim)Yes arranging the arboards can be done at new document creation but since we are not creating a new document but opening a pdf file in Illustrator there is no option on arranging the artboards.
This is simply NOT true… I read the syntax… If you count the *.pdf pages then the artboard arrangement can be set up when creating the new doc… Carlos will know what I meant…
-
24. Re: Introducing: Open Multi-Page PDF win/mac
Paal Joachim Feb 10, 2012 1:49 AM (in response to Muppet Mark)(Mark it seems I missed something somewhere please correct me but this is what I meant) After opening the multipage pdf file and going into Document Setup there is no option on how the artboards should be laid out (atleast what I can notice) I look forward to when Carlos adds it into the options of his script.
-
25. Re: Introducing: Open Multi-Page PDF win/mac
CarlosCanto Feb 10, 2012 10:09 AM (in response to Paal Joachim)Paal, Mark is right about that, I simply did not supply options for arranging the artboards. I decided to arrange them in rows until the drawing area limits were reached, then loop back to start new row.
It seems to me by what you're posting that you need a "special" arrangement, if that's the case, then it won't be possible. I can only do rows, columns and a grid or rows and columns, just like the options the UI offers. Other types of arrangements could be theoretically possible, but it wouldn't be practical to gather the data from the user. The best way would be to use the artboard tool and drag them to a position that works for you.
-
26. Re: Introducing: Open Multi-Page PDF win/mac
Paal Joachim Feb 16, 2012 3:53 AM (in response to CarlosCanto)I am just thinking the default artboard layout options could be available on import of the pdf file.
Thanks for creating the script Carlos...:)
-
27. Re: Introducing: Open Multi-Page PDF win/mac
tromboniator Mar 14, 2012 9:33 PM (in response to CarlosCanto)Carlos,
I downloaded your script on a whim, thinking I'd never really have a use for it. Just finished modifying 60 pages of music in four documents for a concert emergency, just in time, thanks to your script. Much obliged.
Peter
-
28. Re: Introducing: Open Multi-Page PDF win/mac
bjgough Mar 15, 2012 7:44 AM (in response to CarlosCanto)This has been a very cool thread to read. I just downloaded and ran the script on my Macbook Pro - OS Lion. Seems to work great, and, the page count request is a relevant one. Staying tuned !
-
29. Re: Introducing: Open Multi-Page PDF win/mac
CarlosCanto Mar 15, 2012 10:45 AM (in response to tromboniator)Hi Peter, glad to hear you found a use for it.
-
30. Re: Introducing: Open Multi-Page PDF win/mac
CarlosCanto Mar 15, 2012 10:47 AM (in response to bjgough)bj...stay tuned, I'm working on another cool project, but later I will definitely be back at this one, thanks for participating.
-
31. Re: Introducing: Open Multi-Page PDF win/mac
Natesroom1 Apr 24, 2012 5:01 AM (in response to CarlosCanto)Carlos, I just found this and it is a great Script ...one of the awesome things i have found since using illustrator.
I have one issue when i am opening an 8 page PDF it duplicates page 1 for 7 and 8 and skips 4 and 5?
Have you experianced this?
-
32. Re: Introducing: Open Multi-Page PDF win/mac
Natesroom1 Apr 24, 2012 5:04 AM (in response to CarlosCanto)Ok i found a workaround i just resave the pdf from Adobe Reader and changed the name it worked thanks! If you had a website i def would donate some money for your time.
-
33. Re: Introducing: Open Multi-Page PDF win/mac
Muppet Mark Apr 24, 2012 11:35 AM (in response to Natesroom1)ER hello… he does… You can adopt and get a photo… ! signed thou…
http://www.worldwildlife.org/gift-center/gifts/Species-Adoptions/Chimpanzee.aspx
-
34. Re: Introducing: Open Multi-Page PDF win/mac
CarlosCanto Apr 24, 2012 2:50 PM (in response to Muppet Mark)no, for real, I think it is time to get a page...I wish I knew how to make one myself, that's at the bottom of my to do list.
thanks for offering Nate, writing those scripts does take many many many hours.
-
35. Re: Introducing: Open Multi-Page PDF win/mac
duhwellhuh Apr 25, 2012 3:22 AM (in response to CarlosCanto)You could create one with no problem Carlos and make some cash on the side. The coding you do here is much more advanced than HTML and CSS and you already know alot of the Javascript root. I agree with you Nate! I would pay as well. You could even purchase one of the those premade template sites and make a killing. Sort of like a coding doctor that gets paid by diagnosis.
-
36. Re: Introducing: Open Multi-Page PDF win/mac
Natesroom1 Apr 25, 2012 4:03 AM (in response to CarlosCanto)I agree especially for PC scripts because it seems that most of the good ones are coded in applesript for mac..
-
37. Re: Introducing: Open Multi-Page PDF win/mac
duhwellhuh Apr 25, 2012 5:04 AM (in response to Natesroom1)Very true and I’m a PC guy!
-
38. Re: Introducing: Open Multi-Page PDF win/mac
CarlosCanto Apr 25, 2012 10:34 AM (in response to duhwellhuh)thanks guys, I'll look into it, I'm not aiming at making a killing but if in the future Scripting becomes my day job, I'll gladly take it. I just wonder how one would make a living making free products...well, unless you're Instagram
-
39. Re: Introducing: Open Multi-Page PDF win/mac
duhwellhuh Apr 25, 2012 11:02 AM (in response to CarlosCanto)The same way people make a living building websites. The basic code is already there, but someone has to put it together, make sense of it and make it work. Because of you and Mark, I’ve became pretty valuable at work with my new knowledge, and I really appreciate it. You don’t realize how much money your knowledge saves people, given it is using Adobe products, but you would be more a less a consultant like a lot of those guys who write add-ins for Excel. The code is already there, but they make sense of it.
And no different than when you call Microsoft and they charge you 69.95 to help you fix your PC. Help is valuable!