Author: Carlos

2 hours ago, on March 12 2018 Adobe released CC2018 version 22.1. This new version may mark the end of Legendary Open Multipage PDF script, since Adobe finally caught up with times and now it allows us to open multipage pdf files.

https://helpx.adobe.com/illustrator/using/importing-pdf-files.html

As of today, my script has been downloaded 114,841 times on this site alone. I posted it on other venues but I don’t have stats for those.

Will this be the end?

If you’re one of those rebels that refuse to join the CC, you’re not left behind, keep enjoying the Legend.

Long live the King!!! https://aiscripts.com/open-multipage-pdf/

 

“How do I crop a Photo in Illustrator?” is the All-Time hottest topic in the Adobe Illustrator Forum, there’s a long thread with answers that go from “not possible”, to “use Photoshop”, to “use clipping masks”, to “use Artboards”. The thread also has the real answer to the question, cropping raster images in Illustrator is possible using a “cutter” path with a blending mode other than Normal, then Flattening Transparency. Great answer!! now this script tackles on the same principle as Flattening Transparency, it rasterizes the image within the bounds of the “cutter” path and discards what’s outside of the path bounds.

to use the script to Crop this image

imageCrop1

draw a rectangle on top of the image to use as “cutter” path

imageCrop2

select both, the image and the “cutter” path

imageCrop3

run the imageCrop script

imageCrop4

that’s all, the image gets cropped, embedded, unwanted pixels get discarded. If you don’t want your images to get destroyed, please use the other Masking methods.

 

Script Features

Press Shift Key before running the script to Rasterize using TypeOptimized option otherwise the script will use default ArtOptimized
Press Alt Key before running the script to Rasterize using custom Resolution, otherwise the script will use an average of the base image resolution.

Download imageCrop.jsx script

Tagged with: , ,

Scripting Adobe Illustrator is painful at times, we don’t have access to some of the most useful features available to us manually using the UI, and we also don’t have the luxury of major upgrades to the DOM as ID or PS users have enjoyed for years. With the release of CS6 some years back, Adobe surprised us with a couple of new, although undocumented commands that seemed to have great potential. One of them was  executeMenuCommand(menuCommandString), the string syntax was missing, but fortunately it was quickly found out by some talented scripters, proving its value, and becoming one of the most, if not the most powerful command available.

The other command released with CS6 was applyEffect(liveEffectXML), which also had its string syntax missing, till now…well, without further ado, here’s an example

// apply offset path live effect to selected path
var idoc = app.activeDocument;
var ipath = idoc.selection[0];
xmlstring = ‘<LiveEffect name=”Adobe Offset Path”><Dict data=”R mlim 4 R ofst 20 I jntp 2 “/></LiveEffect>’;
ipath.applyEffect(xmlstring);

 

the important part of the string is the data, mlim is the MiterLimit Value “4”, ofst is the Offset Value “20”, jntp is the Join Type “2” for Miter.

liveEffect1

 

How to get the XML string parameter

To get the right xml string for a particular Effect, fire up Illustrator CS5 or CS6, draw a rectangle, apply a Live Offset Path as show above, then save your file as FXG

liveEffect2

Make sure “Save Illustrator Private Data” is selected, then click on “Show Code…”, you’ll get the xfg text file generated.

liveEffect3

Look for the LiveEffect tag and get the name and the Dict data from it as shown below

<LiveEffect name=”Adobe Offset Path”><Dict data=”R mlim 4 R ofst 20 I jntp 2 “/></LiveEffect>

 

that’s all, that’s the xml string you need to add to your script.

 

I would like to thank Adobe’s Sanjay Kumar, without his input this command would have not seen the light of day.

Tagged with: ,
textBlock

This script creates a “Block” of text out of Selected Point Text Items, that is, it re-sizes each frame so they all have the same width. Back then when I wrote the script I didn’t know this layout style was called “SlabType”, otherwise I would have picked a more suitable name, anyway, here’s my “textBlock” script. Please note that the final Block of Text is converted to Outlines.

textBlock

 

Download textBlock.jsx

Font List

This script simply creates a list of all Fonts seen by Illustrator

fontList1

fontList2

Continue reading

Title Case

Illustrator’s Title Case function is…how do we say it nicely?…hmm…it is very straight forward, it capitalizes the first letter of every word. While it works on some scenarios, it simply doesn’t cut it for properly capitalizing titles.

 

Illustrator’s simple Title Case

  • The Quick Brown Fox Jumps Over The Lazy Dog

Proper Title Case

  • The Quick Brown Fox Jumps over the Lazy Dog

to use, select a portion of text (referred as text Range) or one or more text Frames before running the script.

Download: titleCase.zip

Fit Object to Artboard

In Illustrator there’s a Fit Artboard to Selected Art feature. The next script does exactly the opposite, it fits Selected Object(s) to the Artboard.

                            ↓

Download: fitObjectToArtboard_v2.zip

Insert Page Numbers v2

Artboards made their appearance in CS4, and ever since, users have asked the logical question “can I add page numbers to my Artboards?”. The Answers has been a quick “No”….until now, by way of a script.

// Illustrator Insert Page Numbers v2 Script

it’s primary use is to insert page numbers but it can insert anything you type in the input box.
there are a few keywords to use to insert date, time, full name, and file name.

to insert

  • page number – type – *page*
  • total pages – type –  *pages*
  • date – type –  *date*
  • time – type –  *time*
  • full name – type –  *fname*
  • file name – type –  *file*

for example to insert “page 1 of 12” type “page *page* of *pages*” (without quotes).

Note, in this version, pressing “Ok” does not dismiss the dialog. The idea is to be able to enter for example:
Pages on bottom right, and file name on bottom left without having to fire the script twice.

One more thing, press ESC to close the dialog.

Download: insertPageNumbersV2.zip

Open MultiPage PDF

Open Multi-Page PDF

Have you ever needed to edit a PDF in Illustrator? or maybe just open a PDF to copy a couple of elements? If you have, then you know that you have to open the PDF and choose the page you wish to open, close the file and if you need to work on a different page you have no choice but to repeat the process…as many times as needed. It gets annoying very quickly, there must be an easier way, right? Right, by way of a script, it will basically do all the tedious work for us.

 

 

 

 

 

Download: AI_openMultiPagePDF_CS4_CS5.v1.02.zip

Installing and Executing Scripts

In the coming days I’ll start posting most of the scripts I’ve posted over at the Illustrator forum…this is all new to me, so let’s see how comes along.

 

I’d like to show my gratitude to Paal, who offer to start the page and very patiently waited for me to come up with the name and the design. He ended up doing it all the work, kudos to him.

 

thanks Paal, I appreciate it.

CarlosCanto