Illustrator SDK :: Get All Link / Font / Color Values Used In Document?
Nov 21, 2011
I am using Ai-CS5 SDK to create a plug-in. In which I need to get the all link(image), color, font used in document.
Let's say a document having some images(linked not embedded), using 3 fonts - Arial, Times New Roman, and Impact, and using color- CYMK + Red + Violet.
I need to get these value.like-
links -
1 - c:abccde1.jpg
2 - d:mno2.jpg
fonts-
1. Arial
2. Times New Roman
3. Impact
colors-
1. Cyan
2. Yellow
3. Magenta
4. Black
5. Red
6. Violet
Someone sent me a zip drive with links to fonts used in the original document being worked on, how do I link the font from the files saved on the zipdrive?
I've recently started getting into Illustrator and was wondering if there existed a way to set a "document" font that all the text within the Illustrator file will follow? I'm building a generic document that I'd like to customize for clients by using their standard font. Is there a way to do this such that you only set the font in one place? I'd prefer to also font once rather than selecting all the text layers and changing the font for all.
I've been placing photoshop tiff files into Illustrator, and doing this seems to change the color values, when I sample them with the eyedropper tool. The images I made use a custom mix of CMYK rich black, with the K set to 100. In Illustrator, they appear to revert to the default 'Photoshop black", approx C75 M68 Y67 K90. This is not my intent of C70 M60 Y58 K100. The Illustrator document is CMYK mode, and I don't know why this is happening. The non-image items (vectors) in my illustrator file DO retain the color values I intended, however.
Is this some kind of setting I can change in Illustrator? Will this discrepancy show up when this file goes to print?
The colors are specified using hexadecimal numbers for the ARGB values.
In Illustrator I have the following color chooser:
I could fire up a calculator and convert each of the (nonobvious) hex values into decimal, but I imagine there is an easy way to change the Illustrator settings for the document to use hex values. Is there? If so where do I set it?
I'm running Design and Web Premium CS6 on a Windows 7 machine. I was recently using Ai's Recolor Artwork dialogue for a CMYK document. I wanted to convert my 4 color artwork to Pantone solid coated. I decided to chose some different Pantones. In older versions of Illustrator I could easily open the Color Picker, click on a Pantone value and then just type in a new value to scroll to it. This is no longer the case with Ai CS6.
ive recently started to work with DBLink and access 2013 to make take offs mainly. Today i made a small project to test some ideas and found an inconsistency between the material areas and the area of the element, a wall in this case, to which the material is apllied. I think they should be the same, or at least very close, but that´s not the case when i export to access. I've attached a image with a material takeoff schedule from revit and the correspondent query from access (element type name, element area, material name, material area, material volume, material area/element area). The revit one seems correct, but in access the material area values are very different. Initially i thought it would be due to units difference, like the material area were in sq cm and the element area in sq m, but the relationship between them isn´t 10, as you can see in the calculated value. Then i added the material volume to the schedule and query and the results on access are even more strange, i can´t even imagine where this values came from.
I've had this problem before, and it randomly popped up again today.
This time restarting Ai fixed the issue the first time. I just don't know if this was human-error/setting on my end, or a minor bug to report.
So I create a CMYK Ai doc. Create some black text and/or shapes. Then decide to change color to rich black by manually entering CMYK values (in this case, 60, 40, 40, 90), select ok. However, the colors revert back to original percentages (75, 68, 67, 90).
In past versions, it's happened once or twice, and restarting Ai didn't solve the first time.
I am wondering if I can find out, how much a color covers a document in illustrator (vectorized document). Do you know a way? I need to now it in percentage. Is there any way or plugin, script etc.
The insert fields dialog box contains several fields that must allow the user to define the values for those fields but I cannot find where. For example, in the documents fields category there are fields named "comments" "keyword" "author" etc. Where do I enter the value for them so that when I insert the field I get more than just "---" returned?
I have come across a rather disturbing bug in Illustrator when copying an object with a color fill from one document to another.
Both documents have the same color space. Lets look at this example to see the condition. Make two documents with the same color space.
Make an object and assign a color to it. Lets say Pantone 201C and set it to a CMYK build - not a true spot color. Now make another document with the exact same Pantone 201C color - but specify it as a true spot color. Now copy and paste from one document to the next. As you shall see, you will get a dialog box warning you to add or discard the color to the recieving document as expected. This is a good behavior that tells the user that you have the same color builds but assigned different values.
Now what happens if we assign one document a book color value of PMS 201C and the other document a "spot" color build of PMS 201C. So we now have two PMS colors in two documents with different values assigned to them. Drag and drop or copy and paste an object from one document to the next. You shall now see that the recieving document now has two objects with the same PMS name, but two different color builds (and visual color differences).
What should happen in this situation is the user be prompted with a dialog box to either merge the two similar PMS spot color builds or add - like what you see when copying an object with the same color buld name, but has a different value assigned between the two.
Some of our designers are just going ape over this condition and I hope this bug could be addressed in a .01 release.
I am a lifetime user of Adobe products, everything always updated to the latest, but a little stumped by this one... I opened a new document for print, specifying cmyk color and now, when I try to choose a color and apply to an object it only comes out in grayscale. What am I not understanding? as this is a first for me. I've looked back into document set up but am missing what ever it is that will not allow me to display or show color in my document.
I am wondering if there is a way to use the "select same fill color" and/or "stroke color" for just a group of objects in a document as opposed to document-wide.
I need to print a document with partial UV-spots, and cannot figure out how to make my Illustrator document ready for print!
The online print center guides me to: create a 'seperate print channel' for the specific elements in my document i want covered, with either a '5th color or a special color' set for 'over-print and 100% color'.
I'd like to create a script that checks the current document's color profile and checks it against a string, for example "sRGB IEC61966-2.1". My studio has a script that performs various functions to make sure that all the layers are visible/unlocked, checks for stray points, etc., and we'd like to add a check to the color profile because we handle a large number of files and this setting is overlooked a lot.
It's alright if this value isn't writable through script (we can just pop up an alert letting the user know that they need to change it), but I can't find where to actually read this setting! We're currently working on Macs and with JavaScript, but any nudge in the right direction.
I want to open a doc, run a script that selects all paths of a color, say 255,0,0 or 50,0,20,4 and changes that color to black or another color I specify and also changes the stroke. Is this possible? I can't see how i would do it?
Is it possible to find out how bright is an color? I need to find the darkest color in document's swatches. My solution would be to convert (script internally, without actually making any changes in document) swatches to grayscale, compare them and pick the darkest. But how to convert swatch defined in undefined mode (they might be in lab or cmyk) to grayscale?
I found in 'js scriping reference' a method "convertSampleColor", but I have no idea how to use it. Any examples?
Im trying to link mtext in an acad drawing to a word document. For example, when I write a legal description based on a drawing, in word, I want the text that I am referencing in the drawing to be linked. In other words, if I change the text in the drawing, it will automatically change the text in the word doc.
I have an InDesign document with one missing image.The strange thing is that this image is not (longer) placed in the document. The links palette also can't tell me where the placeholder for that missing element is: There is no page number shown in the links palette, there are no elements beside the pages or on the master pages. There just don't seem to be any placeholder containing that image!Selecting the missing image on the links palette and clicking on the "go to image" button doesn't work - nothing happens.I also tried to the relink the image to a file that's existent, but the relink button doesn't work here as well.
After that I placed a file with the same name at the path InDesign expects it but now the links palette shows the link as modified and I'm also not able to refresh it.Something seems to be stuck.
Would have saved the document as .idml but unfortunately it's a document in our content management system and saving it as .idml will result in loosing all article links.Because of the content management system I'm also not able to get a PDF out of that document because MadeToPrint / InDesign Server throws an error for all documents with missing or modified links.
The character tracking setting in Photoshop CC is TERRIBLE! Setting the horizontal spacing between characters seems to be a random number now. In previous versions I would select -50 or -100 and it will stay there. Now I get different results and different values depending on the font and size I use?
The dropdown in the characters panel will still give me values from 200 to -100, but if I select -50 for example, it will give me a value of -11 or -23 or whatever it feels like. I have to type in -5000 at times just to get the same results I got in previous versions with -50.
Is this a setting in preferences or is this a bug?
How to take the Castellar MT font and fill in the blank spaces in the letters with colour? I need to use this font because that's my company's font for their name and I'm trying to design a sign. I have used the blob brush, but I keep getting tiny little specks that look like they're not filled in.
I am having trouble with my PScs6 wherein the layered doc I am working on looses it's link to the source file within the smart object "container" layers refering to it. I opened up a saved version from timemachine and the same thing happened. At the same time ALL the masks all went nuts and presented with lined artifacts instead of white (in the case of adjustment clipped layers to the smart object. The original file was not moved to a new location or deleted. I closed PS6 and reopened to find the problem did not go away. It started when I used the rotate tool to do some fine work on the smart object's mask with brush and wand. I was using the fill command to fill the wanded areas in the mask. I believe it was a problem with the rotate tool because it became more and more jerky and resizing over 100% caused the image within the smart object to dissappear on all layers using that source image in the doc. PS6 has been buggy and crashing more frequently recently in general, especially after using plugins that have worked flawlessly for years. I run a macbook pro with snow leopard. 10.6.8
this one show the smart object now emptied of it's source image after using the rotate (R) tool for a while and zooming in over 100%..this one shows the mask artifacts (on the topmost "wash" layer mask) that also developed after using the rotate (R) tool for a while and zooming in over 100%.
Is it possible to assign a type of link to an object or text where the user can open the document and click on the object which is on the first page and it will take them to a specified page set by the link? This is kind of like web design but not, know what I mean?
Is there a way to 1: Find all instances of a font i.e. Arial in a PSD and change all of those instances to another font i.e. Arial Unicode MS without having to select each individual text box or character that has that font? Maybe a script or a plugin? I am using PS CS 5.5.1 - CS 6.