adobe-illustrator

Illustrator ExtendScript set FILL opacity of selection

白昼怎懂夜的黑 提交于 2020-01-24 10:23:05
问题 Is there any way to access a pathItem's fill opacity with javascript? I can access the overall opacity, but I want to lower the opacity of the fill while keeping the stroke fully opaque. I can't find anything in the documentation, nor can I find anyone else asking this question. I can set the overall opacity like so: var selection = app.activeDocument.selection; selection[0].opacity = 50; I've tried every variant of " fillOpacity " that I can think of, like this: var selection = app

Any ideas why patterned SVG file is showing up blank in the browser?

怎甘沉沦 提交于 2020-01-11 14:19:31
问题 I have an svg file that I created in Illustrator that consists of a pattern - it was made using the swatch tool. When I try and load it locally it shows up blank in the browser. Here is the file if you want to test it: http://d.pr/ZvhV 回答1: If you find that it works in Firefox, IE or Edge but not Chrome, this was my issue too. I fixed it by opening the .SVG file in a text editor, and everywhere I saw this tag: xlink:href="data:img/png;base64 I replaced it with xlink:href="data:image/png

Can I execute “Pathfinder > Crop” from the Pathfinder panel and NOT the “Effects > Pathfinder” menu?

自作多情 提交于 2020-01-05 07:54:12
问题 TLDR: I need to run Pathfinder > Crop on all art in a file that has a clipping mask applied but can’t seem to get Crop to fire correctly. UPDATE: After HOURS of chipping away at this I came to realize that the Crop option in the main menu (“Effect > Pathfinder > Crop”) does something entirely different than the Crop button in the Pathfinder panel. I’m using app.executeMenuCommand('Live Pathfinder Crop'); to crop the image, but this apparently fires the menu action. I need to access the crop

How to get coordinates of an svg?

£可爱£侵袭症+ 提交于 2020-01-04 02:58:28
问题 How can I find out the coordinates of an svg? I have an Adobe Illustrator file that contains a map, this has been drawn and separated into US states, how can I find the coordinates of each state? I'm just using the US map as an example, I'm going to potentially use this technique for several other maps (much more local!!). 回答1: SVG have an XML structure. The states will be in <path> tags, hopefully with the name of the state somewhere as an attribute. The coordinates of a path are defined by

Arabic and Hebrew text in SVG

末鹿安然 提交于 2020-01-03 03:33:08
问题 I have something set up online where a user can input text into an input field, and that text is then displayed and saved as an SVG file. It puts the text inside a <text> and <tspan> node. The text needs to be certain way, so I attach the text-anchor property set to the tspan node with the value of "middle" and I set the x property of the tspan node to exactly half the width of the parent. This works exactly as expected with latin characters, the text is centered and aligned as it should be,

Convert HTML to .eps format for illustrator

随声附和 提交于 2020-01-02 20:26:13
问题 I have a letterhead of a company made in HTML, Where the user fills in his Company Details and rest of the information. When the user clicks on the SUMBMIT button that particular form should convert it to .eps format and then PRINT. Does any one have any clue of how its done. 回答1: I have no idea how to convert html form to .eps format for illustrator. But since you also mentioned that you want to print that form to printer you can do something like this - When user clicks on print button call

C# import of Adobe Illustrator (.AI) files render to Bitmap?

柔情痞子 提交于 2020-01-01 03:52:10
问题 Anyone knows how to load a .AI file (Adobe Illustrator) and then rasterize/render the vectors into a Bitmap so I could generate eg. a JPG or PNG from it? I would like to produce thumbnails + render the big version with transparent background in PNG if possible. Ofcause its "possible" if you know the specs of the .AI, but has anyone any knowledge or code to share for a start? or perhaps just a link to some components? C# .NET please :o) Code is most interesting as I know nothing about reading

D3: Select and alter external SVG?

一笑奈何 提交于 2019-12-29 07:51:33
问题 Is it possible to select and alter elements in an embedded (external) SVG , created in Adobe Illustrator? html: <object data="circles.svg" type="image/svg+xml" id="circles"></object> circles.svg: <svg xmlns="http://www.w3.org/2000/svg" width="100px" height="100px" > <circle id="c_red" fill="#A00" stroke="#000" cx="40" cy="40" r="40"/> <circle id="c_grn" fill="#0A0" stroke="#000" cx="60" cy="60" r="40"/> </svg> d3 code: <script> var my_circles = d3.select("#circles svg").selectAll("circles");

How do I stop an .EPS file from breaking text into multiple lines in PostScript?

怎甘沉沦 提交于 2019-12-24 07:58:04
问题 I'm trying to specifically change out text from an .EPS file that's generated by an Adobe product, like Illustrator or InDesign. For whatever reason some fonts are broken onto separate lines and moved a tiny bit. It's not a TrueType versus OpenType thing. Here's an example, the text is "$$tag1$$": %ADOEndSubsetFont /ZDCMCB+NiagaraSolid-Reg /NiagaraSolid-Reg findfont ct_VMDictPut /ZDCMCB+NiagaraSolid-Reg*1 [36{/.notdef}rp /dollar 12{/.notdef}rp /one 47{/.notdef}rp /a 5{/.notdef}rp /g 12{/