Illustrator Scripting :: Batch Converting AI To PNG
Jul 24, 2013
i'm totally new to scripting. i have a bunch of illustrator cs5 files (actually some of them might be older cs versions). they all have an artboard size of 200 x 200. i need to resize them to 700 x 700 and save them as png24 preserving transparency and keeping the same file name. is this possible? if so, any examples?
View 1 Replies
ADVERTISEMENT
Jul 27, 2012
I wrote the following AppleScript to open a PDF file and export is as PNG. I am using Illustrator CS5.
The export command gets an error: Adobe Illustrator got an error: Can't get current document.
when it encounters the export command.
set inputFile to (choose file with prompt "Open PDF file to convert to PNG:") as text
set exportFile to inputFile & ".png"
tell application "Adobe Illustrator"
if not frontmost then activate
open inputFile as alias without dialogs
export current document to exportFile as PNG24 ¬
with options {class:PNG24 export options ¬
, resolution:300 ¬
, matte color:{red:0, green:0, blue:0}}
close current document saving no
end tell
View 5 Replies
View Related
Oct 1, 2012
We create hundreds of large .AI-files (ranging from 10-100 MB in size) every few months, and before we can send them to our suppliers, we have to save them as PDF-files (both in order to reduce the size, but also to make sure our suppliers can open them). Now, the straight-forward answer is of course to open each file and export it to PDF manually.. But that takes way to long.
The files are saved on a server in a folder with several subfolders all containing ai-files.Is there a smart way to convert all the files from AI to PDF?
View 1 Replies
View Related
Sep 26, 2013
i can´t get any Batch script to run.For example a PDF making Batch with a folder selection.I always get the alert, no matching files found.I use cs 5 on a g 5 with osx 10.8.2..why does no file fit in the "mask" ?
Adobe permits you to use, modify, and distribute this file in accordance with the terms of the Adobe license agreement accompanying it. If you have received this file from a source other than Adobe, then your use, modification,or distribution of it requires the prior written permission of Adobe.
Export to PDFs.jsx
DESCRIPTION
This sample gets files specified by the user from the selected folder and batch processes them and saves them as PDFs.Edits by Patrick Mineault:
- only .ai files processed
- files saved in same folder as the input files
- export files have name (oldname)_export.pdf
- PDF settings: non-editable / acrobatLayers=false
for maximum compatibility with Preview
// Main Code [Execution of script begins here]
// uncomment to suppress Illustrator warning dialogs
// app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
var destFolder, sourceFolder, files, fileType, sourceDoc, targetFile, pdfSaveOpts;
// Select the source folder.
sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator .ai files you want to convert to PDF');
[code...
View 9 Replies
View Related
Jan 27, 2013
I am trying to write a script that can batch EPS to high res JPG (20 MP and over). I can set this up basically, but I have run in to a few problems.
The maximum scaling in jpeg export options is 776%, but some of my EPS files are very small in size - so 776% does not create 20MP rasters.
So, I need to find a way to enlarge both the vector and the artboard to a larger size before exporting for jpeg.
View 6 Replies
View Related
Oct 16, 2013
I'm looking for a script that can convert .ai/.eps to PNG from subfolders or multiple level of subfolders. i found this awesome script posted a year ago here by Larry G. Schneider [URL] however it doesn't get the files from subfolders, just the one folder you specify.
View 2 Replies
View Related
Nov 25, 2012
I found a script that does the job, export tones of ai files to pdf, but I have some files which are in sub folders, and I was trying to find a way to modify this script to include subfolder, but no luck.
Adobe permits you to use, modify, and distribute this file in accordance with the termsof the Adobe license agreement accompanying it. if you have received this file from a source other than Adobe, then your use, modification,or distribution of it requires the prior written permission of Adobe.
This sample gets files specified by the user from the selected folder and batch processes them and saves them as PDFs.
Edits by Patrick Mineault:
- only .ai files processed
- files saved in same folder as the input files
- export files have name (oldname).pdf
- PDF settings: editable / acrobatLayers=true for maximum compatibility with Preview
// Main Code [Execution of script begins here]
// uncomment to suppress Illustrator warning dialogs
// app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
var destFolder, sourceFolder, files, fileType, sourceDoc, targetFile, pdfSaveOpts;
// Select the source folder.
sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator .ai files you want to convert to PDF');
[code]...
View 11 Replies
View Related
Nov 20, 2012
I need to find a way to convert a LOT of ai files, individually, to low res pdf's. Preferably with the presets I want, not some defaults. I'm not interested in an action. I was hoping for a droplet, script, or something similar.
I did find this and it looked promising... [URL] ....
That almost worked. Ultimately, for some reason, it couldn't see the ai files sitting in the specified folder.
Running CS5 with MacOS 10.8.2
View 2 Replies
View Related
Nov 29, 2011
I'm looking for a script/program that if you run it, all the .eps files in a folder will batch convert to a png-24 with 250% scale.
View 20 Replies
View Related
Mar 20, 2012
I have a couple thousand AI authored EPS files with a specific swatch name (SpotBlack) that I would like to rename (black) -- is there any method to do this en masse, preferrably outside of Illy using a text editor?
View 7 Replies
View Related
Feb 15, 2010
is there a quick way how to renumber or batch rename all layers in a file so they would be named in consequent numbers? Doesn't have to start from exact number, I was wondering if maybe there is some sort of script that would work?
View 24 Replies
View Related
Nov 1, 2013
I have a couple of thousand old cliparts in .wmf format that I have to convert to .ai. What I need to do is simply open the .wmf, store it as .ai in exactly the same location.
Actions didn´t work because the files are in mutliple folders and subfolders. "Actions" keeped saving all the ai-files in the same folder. Which is kinda weird since this doesn´t happen when using the same action in PS.
Sure, there are some quality issues with converting wmf to ai - but for what we´re plannning the quality is sufficient.
CarlosCantos script at [URL]..... looked like the thing to do. Loaded it in apple script, patched the lines to open .wmf and saved it in the Illustrator script folder, but all I got was a bunch of error messages.
View 10 Replies
View Related
Oct 3, 2011
I created an Action to batch export a folder of .ai files to create 300dpi .png's of the .ai file's artboard. I did this by simply recording "Export...as png" with my desired settings then Batch running the Action on desired folder of .ai files. The files were successfully exported, the trouble is that the exported files lack a .png file extension. My intent is to take these PNG files and merge them into a single PDF using Acrobat Pro. Unfortunatly, without the .PNG extension, Acrobat Pro does not recognize the file types and does not let me use the Combine Files feature on them. Going back and manually adding a .png at the end of the exported files defeats the time-saving purpose of Batch Processing all together. Is there something I am missing or doing incorrectly? I have included screenshots of 1) My Batch Action settings 2) folders showing files without .png extension and 3) visual of what I see when I am trying to combine PNGs into a PDF.
View 4 Replies
View Related
Dec 2, 2007
I'm not sure it's possible but I'm trying to batch convert a bunch of RAW (NEF) files to JPG. Altering the file extension in bridge doesn't seem to work. Although it does convert the file name, photoshop does not recognise the file format when trying to open the jpg.
Is this process possible or is there a way I should be doing this? I have 300 RAW files and don't really want to open each one up individually and convert to jpg.
View 4 Replies
View Related
May 23, 2006
I am trying to convert a batch of psd's to jpg's and I can't figure it out.
View 1 Replies
View Related
Jun 20, 2001
Is there any way of running a batch process to convert a number of AutoCad drawings into Tiff format, at once? Also, if a batch process is not available, can we save our plot settings for conversion to Tiff so that they can be recalled at a later stage? We would like to be able to transfer the same plot settings to other PCs so that we are all producing the same formatted files. Are the plot settings transferable?
View 5 Replies
View Related
Feb 8, 2013
I've over 400 old AutoCAD 14 files that I want to batch process into pdf's at an "C" sized landscape layout.
I've tried tools in Adobe and CAD but can't seam to find the one that will open each file and export out a C print at the extents of each file.
View 9 Replies
View Related
Dec 18, 2012
I'm try to automate the importing of the Varaible and datasets into my graphs via Scripting, but the ImportVaraibles() function doesn't seem to work. Here is my Script, mostly copied from the example script provided with Illustrator (CS5). And, this works manually, using the file names in the script, via Load Variable Library
Set appRef = CreateObject(strIllistratorVersion)
'Open the file and import the datasets
Set docRef = appRef.Open(strTemplate & "200-500.ai")
'docRef.Datasets.RemoveAll
docRef.Variables("Yearbook").Delete
Here is the problem, after I delete the previous library, then this next line, right from the example, does nothing
The script then exits with 'No Datasets in this document'
docRef.ImportVariables (strXMLFolder & "Lumber_200-500.xml")
'appRef.DoJavaScript "alert('Template:" & strTemplate & strRange & ".ai | XML file:" & strXMLFolder & "" & objFile.Name & "^')"
If (appRef.Documents.Count > 0) Then
Set docRef = appRef.Documents(1)
[Code]....
If I remove that delete line, the script runs, but just uses whatever Variables I had last loaded, not the XML file.
It's simply not loading. What do I need to do to get it to load?
View 8 Replies
View Related
Mar 26, 2012
Why I get a process error batch converting these drawings? The command line says could not bind xrefs but I clearly checked the option not to bind.
View 2 Replies
View Related
Sep 20, 2012
Is there a way to do batch process of converting .jpg or .tif images from RGB to CMYK?
View 2 Replies
View Related
Feb 27, 2014
I want to batch convert the above. I know i can convert one image at a time. If not can one recommend a batch conversion program which is safe to use and free from viri and malware.
View 2 Replies
View Related
May 6, 2012
Can you access graph data through the scripting DOM?
View 3 Replies
View Related
Mar 16, 2013
the Script of creating mirror text and stroke text in Adobe illustrator scripting.
View 4 Replies
View Related
Nov 19, 2009
As an organization, we have opted to go with STB as we have some complicated requirements that CTB doesn't accommodate. The wisdom of that decision is a moot point and I'm aware of the vast array of opinion.
We have a legacy of CTB drawings that occassionally need to be brought forward when projects get resurrected (state government highway designs are prone to getting shelved).
Up to AutoCAD 2009, I've had a VBA routine that performed a few operations on a list of files stored in a text file:
- Open the file
- Convert to STB using "CONVERTPSTYLES" with a specified STB file.
- Run a script to load a layer state file to change the plot styles from Style1, Style2 etc, to their correct named plot styles.
- Manage a recalcitrant layer that refused to play ball.
- Save and close the document
- Get the next file........
This was all fine until 2010 came along with the announcement that VBA was to be phased out. 2010 is OK with the VBA enablers, but now I've got some work to do.
Our organisation's development language is C# and I'm using Visual Studio 2008 Professional Edition to develop my C# .NET code.
Is there another mechanism than "SendStringToExecute" for sending a command such as convertpstyles to AutoCAD and getting .NET to wait for it to finish before proceeding.
I've got CommandEnded code that handles waiting for MTEXT and DTEXT commands to finish and I've tried constructing a CommandEnded for CONVERTPSTYLES, but it seems to me that commands that throw dialogue boxes such as CONVERTPSTYLESand SCRIPT aren't handled the same way.
I've tried setting FILEDIA to 0 prior to running the CONVERTPSTYLES command, however the message box that CONVERTPSTYLES presents before asking for the STB file appears to be getting in the way.
View 1 Replies
View Related
Jul 25, 2013
I recently designed a logo for a client that included both a gradient and transparency. I flattened the transparency, expanded the strokes and embedded the text before saving a copy of it in .eps and another in .pdf (PDF/x-1a:2003)
When I opened both files in Preview, I found these two problems:
I didn't have this problem when I saved the file in other formats (.jpg, .png) Also, while I'm here, is PDF/x-1a:2003 preset optimized specifically for printing?
View 2 Replies
View Related
Aug 17, 2013
I'd like to purchase a website template online which denotes that I'd have to use Adobe Illustrator, Freehand, or CorelDRAW to implement it. There's just one problem - I can't use any of these programs. As a matter of fact, I would like to use the template that I found with a "drap and drop" website builder, as opposed to coding. I was thinking, "What if i could covert an entire Ai file to a folder of PNG's?" ..then I could just manually build my website using those PNG's. Is this type of conversion even possible?.
View 11 Replies
View Related
Jul 31, 2012
I can't seem to figure out why the illustrator file opens blank if photoshop. I tried converting to EPS and PDF and even Ai CS3 but the file is opening blank. The pdf file also saved as blank document.
View 5 Replies
View Related
Oct 18, 2012
What would be the best Adobe product to convert AI -> dxf ?
View 2 Replies
View Related
Mar 19, 2014
I'm having trouble getting an image successfully into my vinyl cutting program. I open a black and white image into illustrator, I trace it, I paint a few more black lines that I need and then save it into svg or pdf. Once I import the image into my software it show all the brush strokes that I painted making it impossible to cut. Is there a way to make the image in illustrator all one image once painting it and making it decal cuttable?
View 1 Replies
View Related
May 24, 2012
I made a really awesome logo in Adobe Illustrator earlier today and wanted to share it with my friends, but I didn't know how since none of them had Illustrator. Then I remembered that I once opened a PNG file in Illustrator, so I tried to save it as a PNG.
In case you haven't already guessed, my efforts were in vain. Is there anyway that I can convert an .ai to a .png?
View 2 Replies
View Related
May 23, 2012
I've been trying to export some CS4 Illustrator files to cad for laser cutting. Fab shops here use mostly Solidworks, but can use autocad. I'm selecting dfx/dwg in the export, and scaling to inches, even double checking the scaling is correct from a decimal measurment found on another forum thread, and it is-- but I've tried this about 8 times now with 2 different fab shops and they both say when they open the files the scaling is WAYYYY off, and there are breaks and "splines" all over that are disconnected.
View 11 Replies
View Related