Illustrator retains unsavory namespaces in SVGs, can't open it's own export

Hello again!
Illustrator 17.1, Win 8.1.
I've got trouble with a part of a bigger artwork I got from an unknown source in an AI file. It seems that even though it is an Illustrator file, AI retained parts of code from an SVG that contributed to creation of this AI file. When I save the file in Illustrator as an SVG not only it won't render in any browser, but also Illustrator won't open it ("This SVG is Invalid. Validate it before opening."). I am at a loss. I've tried all possible combination of SVG saving options.
That is a problematic part of an SVG save:
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
     width="44.9px" height="44.9px" viewBox="0 0 44.9 44.9" enable-background="new 0 0 44.9 44.9" xml:space="preserve">
<g>
    <g id="g3852" transform="matrix(0.83334944,0,0,0.83334944,-15.22385,-132.01121)">
        <path id="sickle_handle" sodipodi:nodetypes="cccccccccccc" inkscape:connector-curvature="0" fill="#FCC443" d="M30.9,186.7
            c7.8,7.2,20.3-5.8,4.3-15.2l0,0c12,13.3,0.5,17.4-3.7,13.3l-0.2-0.2c-0.2,0.2-0.3,0.4-0.5,0.6c-0.3-0.3-0.8-0.4-1,0.1
            c-0.6,0-1,0.3-1.2,1c-1.2,0.8-2.4,1.5-3.2,2.7c-0.4,1.3,0.4,1.9,1.3,1.8c1.5-0.6,2-2,2.8-3.2c0.6-0.2,1.1-0.4,1.2-1"/>
    </g>
</g>
</svg>
If you save the above code (that is a direct result of saving from AI) as a plain text file with an SVG extension Illustrator won't open it.
I have found that opening it in Inkscape and saving as Plain SVG (getting rid of sodipodi and inkscape namespaces) makes it readable again, but for all sorts of reasons I need Illustrator to be able to deal with it on its own.
Is there any way for Illustrator to "forget" the non-standard code from placed/opened SVGs? I've tried copy&paste, export as PDF... nothing. Maybe a script?
Thank you very much!
Regards
m.

I was having a similar problem - I was saving an SVG from Illustrator, only to find that when I tried to open it or place it back in Illustrator, I got the error "This SVG is Invalid. Validate it before opening."
You can run the SVG through the W3C validator, remove all the parts causing errors using a simple text editor like Notepad, and then Illustrator should be able to open it. This is a laborious process though if you have a lot of SVGs to save.
After a discussion with Apple support, I learned that it was actually one of my graphics in the Illustrator file that was causing the issue. I had placed an SVG I received from a co-worker, changed the colors, and was trying to save it as an SVG again, but for some reason I kept getting that error, even when I tried save other icons/layers in the same document. When I deleted the two layers that were corrupt, the Save As SVG worked perfectly, no errors when opening the file.
I don't know details, but if you are getting this error, try the Flatten Transparency thing like witkacy suggests. If you're still having problems, it may be caused by an SVG you placed in your file. After a little bit of trial and error, you may be able to find the culprit. You may then have to re-create the graphic yourself (like I did). Converting it to outlines or a shape or something may work as well, but I'm not sure.
Hope this helps someone else!

Similar Messages

  • Can't open photo's after exporting them to sd card

    hello
    i am trying to copy all my pictures from my iphoto library to sd card or usb drive
    when i export it from iphoto everything works fine but when i try to open them from the sd card or usb it says that the picture is damaged or doesn't have the good structure for preview
    have this problem also with my movies that are in my iphoto
    i format the sd card to following structures journaled fat exfat and all give the same problem
    anybody can help me solving this problem
    thanks already

    i am trying to copy all my pictures from my iphoto library to sd card or usb drive
    How?
    Have you tried exporting them? File -> Export
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.

  • Premiere Pro CC can't open audio from QuickTime exports with Animation Codec

    Exported a file with format: QuickTime VideoCodec: Animation, with an alpha channel. When I opened the exported file back up in CC it doesn't recognize or play back the audio, but when I opened it in cs6 it worked.

    Hi LeGrandCorbeau,
    I had the same issue and solved, here is how:
    Opened a new project and instead of choosing presets I selected resolution as 2048*1152 and 25fps which was the same with my ProRes footage and preview file format to I-Frame Only MPEG everything everthing got just fine!
    Good Luck

  • I can't open a .psd file in Illustrator CS4 after upgrading to Yosemite

    I can't open a .psd file in Illustrator CS4 after upgrading to Yosemite.

    Can you open any file, i.e. jpeg, etc.? Have you installed the Apple legacy Java: Java for OS X 2014-001? I'm guessing you have because you wouldn't be able to open PS at all without it. But have to ask.

  • Can't open illustration

    I have a file I have been working on for a good part of the day. 12+ hours.
    Saving it religously throughout the process. Opening and closing the file with no issues.
    At the end of the day I saved and closed out of Illustrator cs5. Life was good.
    I had to reopen the file a few minutes later, and BAM!..." a small indiscriminate dialog pops up...
    "Can't open the illustration"
    Unfortunetly the file was not saved with PDF compatability, so I cannot attempt to Place it into a new file.
    I did not save progressive separate files during the process. <I could just kick myself>
    I found a way to open the file in a recover mode and open in in a text editor, but I could not decipher what was the issue within the _filename.ai file.
    I purchased 'Recovery Toolbox for Illustrator' out of desparation. It was not able to fix the file.
    Any other ideas out there?
    I really do not want to throw 12 hours out the window.
    humbly,
    Robert Good

    I have attempted to place within another file. It brings in several object with text stating
    Saves as command.
    Options Dialog Box, which....
    Option dialog box...
    I also attempted to edit the recovery file in a text editor.
    I found the beginning text "%_/Binary: /ASCII85Decode", but did not find the closing "%_; (hItem) ,"
    I deleted the "%_/Binary: /ASCII85Decode", until I assumed that data string was terminated in two different instances.
    I tried to open in Illustrator, but got the same dialog, 'Can't open illustration'
    I then went back and found some lines with repeated   "((((((((((("
    I removed all those entries and again tried to open in illustrator, and got the 'Can't open illustration'.

  • Can't open Adobe Illustrator

    After I updated Adobe Illustrator on the creative cloud I can't open it (the real thing is that I don't know how to open it)
    I've tried to click on it and stuff but still can't open it. The only option that lets me do something is for the tutorials. I need
    to do a proyect on it and I would really appreciate if someone helps me on this. I just want to know how to open it.
    I've tried to download the trial but it just drags me to the program which is already installed.

    The application should be in the Applications folder on your HD. Open the folder and double-click on the Adobe Illustrator CC.exe file to launch.

  • Can't open my project, help please...

    I've spent hours and hours on my wedding video project... When I was working on it, iMove suddenly crashed and then I can't open the project any more...
    I can't open, edit, duplicate and export the project. It allows me to play it in full screen but the content is incomplete.
    My other two projects are fine.
    I tried to reinstall iMovie (delete the program and com.apple.pkg.iMovieXXXX files, and reinstall and update) but it didn't help...
    I tried to repair the disk permissions but it didn't help...
    Could anyone please save me and my project..
    I was using Lion and iMovie 11 with the latest updates. My labtop is MBP 15'' mid-2010.
    Thanks!

    Anyone could help me please ???

  • Can't open SVG (CS3) in CS2.

    Hi,
    I can't open an SVG file in Illustrator CS2. The SVG file was made in CS3 (checkbox ticed for compability with CS2). I'm running XP. This is the steps I've done.
    1. Graphic created in Illustrator CS2, and saved as EPS-file.
    2. EPS-file opened in Illustrator CS3 and saved as SVG-file.
    3. Graphic (SVG) uploaded into Astoria Content Management System (CMS).
    4. Later, graphic (SVG) is exported from Astoria CMS for updating.
    5. SVG-file cannot be re-opened for editing in CS2
    BR/Bjorn

    When the file was saved to SVG from CS3, Preserved Illustrator Editing Capabilities was selected. Either save your files using CS2, or deselect that option when saving from CS3.

  • Can't open multi-page illustrator file

    I'm on a mac. I have Illustrator CC. I'm trying to open a multi-page .ai file, and I get the dialogue that usually happens when you're trying to open a non-illustrator multi-page pdf. :
    here's a screenshot:
    http://grab.by/yNEg
    when I do a get info on the file, it says Saved As v.15 Created by v.15.0.0
    How can I open this file and get all the artboards without running a script? I want to retain all the text formatting.
    thanks!

    That usually happens when files get corrupted and only the PDF part of the file is still intact.
    Did you perhaps save it directly to or open it directly from a server?

  • Can't open the application "Adobe Illustrator CS6.app" because it is not supported...

    UPDATE - Ahhh haaaa!  If I log in with the guest account Illustrator works fine! WTF!? Oh well, at least I have a direction to be working towards, thanks for all the suggestions and assistance Adobe Community!
    That was sarcasm by the way...
    UPDATE - Just installed the latest Illustrator update from Adobe - still not loading. Tried reseting the iMac's PRAM, no luck.
    UPDATE - I've just reinstalled the whole CS6 Suite, and the only things that have changed are that I now have a little white no entry sign over Illustrator (it still won't load) and I also have 1.5GB of application updates to do
    I don't have any direct evidence but I'm guessing this is a Mavericks incompatibility judging by the other issues people are having with Illustrator. Any suggestions are welcome!
    I've been using CS6 on my iMac for the past year (3.2GHz Intel Core i5, 32GB ram).  Everything running fine, no problems.
    Then I get the popup from Apple saying to upgrade to Mavericks, so I did. After updating my Java version, for the next two weeks everything carried on running fine. Until just now.
    I finished working on an Illustrator file, saved it and then exited, only to remember I needed to make one more small change. So I clicked on the AI icon and got this error message;
    'You can’t open the application “Adobe Illustrator CS6.app” because it is not supported on this type of Mac.' Eh???
    I tried doing a reboot thinking that maybe something had just gone wonkey and needed resetting. Still no luck. So I reinstalled Java again. Nope. Then I tried every other CS6 app and they all ran fine.
    Does anyone know what could cause Illustrator CS6 to be working fine for weeks and then suddenly become an unsupported app? These things always happen with you're right up against a deadline! I NEED ILLUSTRATOR WORKING NOW! HEEEEEELLLLLLLPPPP!
    James

    I had the same issue and resolved it
    I first remove the prefs folder and the plist files for illustrator in ~/Libary
    next I logged off,
    then I uninstalled illustrator using the adobe uninstaller(http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html)
    Next I reinstall illstrator
    after that it worked for me.

  • Illustrator CS2 error message : Can't open the illustration : The illustration contains an incomplet

    Hi,
    I am getting this message once in a while in Illustrator CS2 :
    Can't open the illustration : The illustration contains an incomplete or garbled object description.
    Offending operator ''Bg''
    Context :
    357.2139 668.8398L
    357.2139 669.8477L
    161.228 669.8477L
    Bb
    1 (Unnamed gradient 1) 0 0 0 1 1 0 0 1 0 0 Bg
    Is there something which is done wrong in illustrator to get this message ?
    What can prevent this to happen, because unable to open the document, the document is blank when opened ?
    Thanks in advance !

    We have tried both saving the files on our company server and on our individual desktops - neither of which will open the files.
    Fonts are ok - they are all created and saved in CS6.
    Printers, I believe are all correctly set up.
    We tried a complete reinstall on one PC - still running into the same random files ending up 'lost' with the same error message.
    Originally, the cs6 design standards (6 licenses total) were loaded to the server/shared drive and then downloaded onto each PC from there - we believe this may have something to do with the corruption, but this problem has just begun within the last month and the programs were all downloaded over 6 months ago.

  • ERROR! can't open the illustration. the illustration contains an illegal operand. Offending operator '((((((((((((((((((((((( 1Gm

    Hello, good people. Please help!
    I am working on a project that consists of one .ai file that contains 27, letter sized art boards.
    I am using Adobe cs5-Illustrator on a macbook pro.
    I have opened and closed and save this file many, many times—I have been working on this for the last 2+weeks.
    Today, when I tried to open the file I received an error message that read: "can't open the illustration. the illustration contains an illegal operand. Offending operator '((((((((((((((((((((((( 1Gm
    A screen shot of the entire message is below. Can anyone please help me to ward of this "offending operator?"
    Thank you in advance.

    AAhlene,
    It is strange that the offending operation is not shown in context within the message.
    Are you saving to your own harddisk( see below)?
    One thing often tried first is to create a new document and File>Place the (PDF contents, if any, of the) corrupted one to see how much may be rescued that way.
    Here are some websites where you can see whether it can rescue the actual file, and if it can, you may pay for a subscription to have it done,
    http://www.recoverytoolbox.com/buy_illustrator.html
    http://markzware.com/adobe-software/fix-illustrator-file-unknown-error-occurred-pdf2dtp-fi le-recovery/
    http://www.illustrator.fixtoolbox.com/
    As far as I remember, the first one is for Win and the second one is for Mac, while the third one should be for both.
    Here are a few pages about struggling with it yourself:
    http://daxxter.wordpress.com/2009/04/16/how-to-recover-a-corrupted-illustrator-ai-file/
    http://helpx.adobe.com/illustrator/kb/troubleshoot-damaged-illustrator-files.html
    http://kb2.adobe.com/cps/500/cpsid_50032.html
    http://kb2.adobe.com/cps/500/cpsid_50031.html
    http://helpx.adobe.com/illustrator/kb/enable-content-recovery-mode-illustrator.html
    External media: It is always recommended here to open/save from/to own hard disk, and to copy from/to networks and removable media. You may be lucky (for a while), but the chances of file corruption and other unpleasantnesses are immensely greater when you use anything but the harddisk, and it is better to be safe than sorry.
    In addition to the (far greater) risk of file corruption, some issues are mentioned here:
    http://helpx.adobe.com/illustrator/kb/illustrator-support-networks-removable-media.html
    To have a network actually work may require some work.
    If you transfer by external means it is always safest to zip/compress the file to avoid corruption.

  • After using an ExtendScript (via ESTK) Illustrator becomes corrupted and "Can't open illustration."

    Hey, thanks for reading.
    I'm having a strange problem with Illustrator CS5 and ESTK CS5. I'm new to writing ExtendScripts, so I haven't a clue what could be going wrong here but here's the skinny:
    I've written the following code, which is very specialized to the exact document I'm working with. Using the ExtendScript Toolkit, the script goes through the following loops:
    The primary problem:
    For some reason, running this script causes Illustrator to become somehow corrupted. I can continue working with the document as long as it is open, but if I try to close it and re-open it, I get the infuriatingly unhelpful error dialog "Can't open illustration." With no extra details.
    The same error comes up if I try to open any other .ai files. Shutting down and rebooting doesn't fix the problem. I have to completely uninstall Illustrator, then re-install it before it will work again. And even then, if I try to open the ExtendScript-corrupted file the whole Illustrator app gets corrupted and needs to be reinstalled.
    Oh, also Illustrator itself shows up as "(Not responding)" while the script is running, but the ESTK console clearly shows that the script is chugging along as expected.
    Specifics about the script:
    There are 4 "Buttons" on the document, and a library full of nearly-identical symbols in the Library (different colored backgrounds for the buttons).
    The script cycles through every symbol in the library, replacing and deleting instances of the previous symbol.
    Then, for each symbol, it cycles through an array (technically an object-literal) of { language-code: "string" } pairs, and saves a .png of each artboard for each word.
    What follows is a pared-down version of the full script:
    (I tried to add a few $.sleep(10); calls, hoping that maybe just a brief slowdown in the processes might help. It didn't.)
    This script (in its original form) outputs a ton of files very, very quickly.
    Script Example
    var folder = Folder.selectDialog();                     // Ask for a folder choice.
    var aDoc = app.activeDocument;                        // Declare an active Document reference.
    var textLayer = aDoc.layers.getByName('text');   // Get the text layer, for moving it back/forward
    var textFrms = aDoc.textFrames;                       // Get all text frames, for language swap
    var allSymbols = aDoc.symbols;                         // Get array of all symbols in the symbol library
    var allSymbolItems = aDoc.symbolItems;            // Get an array of all symbol instances in the active document
    var helpTextArray =
        en: "help",
        az: "Kömək",
        cs: "Nápověda",
        da: "Hjælp",
        de: "hilfe",
        el: "Bοήθεια",
        en: "help",
        es: "ayuda",
            * There's normally 3 arrays with many more languages / translations
    if( aDoc &&                                      // We have an activeDocument
         folder &&                                    // and we have a selected output folder
         allSymbols.length > 0 &&             // We've got symbols
         allSymbolItems.length > 0 &&      // and we've got symbol instances "symbolItems"
         textFrms.length > 0 ) {                 // and we've got textFrames to manipulate.
        // For each symbol in our symbol library...
        for(var i = 0; i < allSymbols.length; i++) {
            // Run through all instances of symbols (symbolItems), and replace with a different symbol.
            for(var ii = 0; ii < allSymbolItems.length; ii++) {
                // Move text layer out of the line of fire.
                $.writeln('Move text to back');
                textLayer.zOrder(ZOrderMethod.SENDTOBACK);
                var currObj = allSymbolItems[ii];
                var newObj = aDoc.symbolItems.add(aDoc.symbols[i]);
                var symbolColor = aDoc.symbols[i].name;
                // Add the new / replacement symbol.
                newObj.left = currObj.left;
                newObj.top = currObj.top;
                newObj.width = currObj.width;
                newObj.height = currObj.height;
                // Remove the old symbol.
                currObj.remove();
                // Bring text back up to the front.
                $.writeln('Bring text to front');
                textLayer.zOrder(ZOrderMethod.BRINGTOFRONT);
                redraw();
                $.sleep(10)
            // Run through each language and each buttonText and save a copy.
            var currArray = helpTextArray;
            var currArrayName = "help";
            for(currLang in currArray) {
                switchText(currLang, currArray);
                $.sleep(10)
                // Run function to save .pngs of each artboard
                exportAll(currLang, symbolColor, currArrayName);
            } // end for (currLang in currArray)
        } // end symbols.length
    } // end if
    function switchText(lang, array) {
        //var textFrms = activeDocument.textFrames;
        var newText = array[lang];
        newText = (newText === "") ? array["en"] : newText;
        for(var i = 0; i < textFrms.length; i++) {
            var isHorizontal = ( textFrms[i].width > textFrms[i].height );
            var scale = 100;
            var scaleMatrix;
            textFrms[i].contents = newText;
               * There's normally an automatic text-resizer here
        } // for var i
    function exportAll(lang, color, buttonText) {
        var artBds = aDoc.artboards;
        var options = new ExportOptionsPNG24();
            options.antiAliasing = true;
            options.transparency = true;
            options.artBoardClipping = true;
        for(var i = 0; i < artBds.length; i++) {
             var currBoard = artBds.setActiveArtboardIndex(i);
             var buttonPosition =  artBds[i].name;
             var newFile = new File(folder.fsName+"/"+buttonText+"_"+color+"_"+buttonPosition+"_"+lang+".png");
             aDoc.exportFile(newFile,ExportType.PNG24,options);
             $.writeln('A file was saved with the name:: '+buttonText+'_'+color+'_'+buttonPosition+'_'+lang+'.png');
             $.sleep(10)
    function revertToOriginal() {
        $.writeln('Revert');
        // Switch the text back to help.
        switchText("en", helpTextArray);
        // For each symbol instance...
        for(var i = 0; i < allSymbolItems.length; i++) {
            // Move text layer out of the line of fire.
            $.writeln('Move text to back');
            textLayer.zOrder(ZOrderMethod.SENDTOBACK);
            var currObj = allSymbolItems[i];
            // Add in the placeholder since we're reverting.
            var newObj = aDoc.symbolItems.add(aDoc.symbols[0]);
            var symbolColor = aDoc.symbols[0].name;
            // Add the new / replacement symbol.
            newObj.left = currObj.left;
            newObj.top = currObj.top;
            newObj.width = currObj.width;
            newObj.height = currObj.height;
            // Remove the old symbol.
            currObj.remove();
            // Bring text back up to the front.
            $.writeln('Bring text to front');
            textLayer.zOrder(ZOrderMethod.BRINGTOFRONT);
            redraw();
            $.sleep(10)
            $.writeln('REVERT');
    revertToOriginal();
    Are there best practices that I'm unaware of here that could be causing this corruption?
    Does anyone know what could be happening?
    The only error I ever get is "Can't open illustration." There's never anything more helpful, so I have no idea what could be going wrong.
    If there's any more information that would be of use to anyone I'd be happy to share. This is wasting a lot of my time and making me pull my hair out like crazy,

    I have not had the time to look over your script but at a glance there are a few things I would handle differently…
    Firstly returning a document to a given state… If you play with this snippet you can see that app.undo() returns to the last called app.redraw() if there is one else it undo's the whole script…
    #target illustrator
    doSymbols();
    function doSymbols() {
        var doc = app.activeDocument;
        var sym = doc.symbols[0];
        for ( var i = 0; i < 4; i++ ) {
            var foo = doc.symbolItems.add( sym );
            foo.position = Array( i * 72, -( i * 72 ) );
            app.redraw(); // Comment this out to see…
        app.undo(); // Returns to last redaw state if any…?
    Secondly your symbols… You know you can just change the symbol instance's symbol reference…? If they are almost the same particualy size then its an easy swap…?
    #target illustrator
    doSymbols();
    function doSymbols() {
        var doc = app.activeDocument;
        var sym = doc.symbols[1]; // Next symbol in the palette
        for ( var i = 0; i < 4; i++ ) {
            doc.symbolItems[i].symbol = sym;
            app.redraw();

  • You can't open the application "Adobe Illustrator CS2.app" because PowerPC applications are no longer supported.

    You can’t open the application “Adobe Illustrator CS2.app” because PowerPC applications are no longer supported.
    what can I do?

    Adobe Creative Suite 2 (CS2)'s Photoshop running in Snow Leopard Server installed into Parallels 8 for use in Lion or Mt. Lion:
                                  [click on image to enlarge]
    Apple is now selling Snow Leopard Server for $19.99 + sales tax & shipping costs at 1.800.MYAPPLE (1.800.692.7753) - Apple Part Number: MC588Z/A (telephone orders only).  Smarmy, self-important forum members will have to pay extra!

  • Can`t open document on Illustrator but adobe reader and photoshop opens it, why?

    Can`t open document on Illustrator but adobe reader and photoshop opens it, it is a problem with the text font Futura T-Bold. How to open it on Illustrator?

    I downloaded the file, and:
    It is not a Photoshop PDF.
    I get the same result attempting to open in Illustrator; mangled font substitution. That's because I don't have one or more of the exact fonts used in the document installed on my computer, and I suspect the same is true of yours.
    The fact that it opens without issue in Reader and Photoshop is essentally meaningless, (or at least it's not an inidication that it also should open without issue in Illustrator, which is what your original post seems to imply). Reader displays the correct fonts because subsets of them are embedded in the PDF for use by Reader. Photohop just rasterises the whole page, so there is no font data needed.
    If you had the fonts, you wouldn't get the substitution in Illustrator. It works that way for any PDF.

Maybe you are looking for

  • Aperture

    For some reason I have 3 different iPhoto libraries. Is APERTURE the program I need to buy to unify them all?

  • Applicatio​n using Http Post... getting error response

    Im from Ecuador, and me and other 4 people from the same country are getting this error response when a native java application is trying to make a http post to mydomain.com The requested URL could not be retrieved: While trying to process the reques

  • Printer - sort by date

    Just noticed a strange thing. (Maybe it was posted before, couldn't tell easily.) In the printer window, when I do "Show completed jobs" I get a list. Great. When I sort that list by date, though, it does that sort strangely. Alphabetically. Like an

  • Restore error 1603

    I m getting error message 1603 while restoring thru itune. plz help me to resolve the issue.

  • Effect rack presets recordable in favourites

    It would be very helpful to be able to record as a favourite the instantiation and application of a rack effect preset. The reason is that a user may audition a series of effects in the rack, before wishing to apply them as a batch process to multipl