Resize the artboard for content - works on Mac (CS6), not win (CC)
Hello!
This code works perfectly in Illustrator CS6 for Mac:
function resizeArtboard() {}
App.Redraw ();
app.activeDocument.artboards [0] .artboardRect = app.activeDocument.visibleBounds;
App.Redraw ();
}
It works like the "work Plan retractable insert content menu option."
However, the execution of this script in Illustrator CC, for Windows, the result is different: the content is expanded to fit the artboard instead.
How can I solve this?
Thanks in advance!
/ Le Mans
It turns out that I was wrong: this function worked. However, when I then saved the file as a SVG, Illustrator ignored the proportions of the document. To fix this, I had to put the export option preserveEditability = true (of all things). Apparently it's a feature of Illustrator CC to not understand the proportions of the document in the default SVG files.
Tags: Illustrator
Similar Questions
-
Animate the file in Captivate works on Mac but not Windows. Why?
I built a custom ToolTip rollover in edge animate and then imported the .oam file into Captivate. I chose this path because the end result of the lesson of Captivate is HTML5 and bed in Captivate training balloon interaction works with a .swf output. So I wanted the animation fantasy effect
Here's the thing. The ToolTip works and works beautifully on my Mac when you view the file Captivate output in the browser Chrome or Safari. When you try to view the same Captivate file into Chrome, Firefox or IE on a Windows operating system, it is a complete failure. Why is this? This is important because I'm working on a hybrid team where there is a mix of OS X and Windows operating system, and there is not to say the variety of the OS which will be used to interact with my lessons of Captivate.
So here's my question: why est-info-bulle works perfectly under OS X, but a complete failure on Windows?
Please feel free to download the zipped file from Captivate here.
Please feel free to download the go Animate zipped here.
Have you tried to load your HTML5 content on a web server and consultation here on two operating system platforms? View all content HTML5 on a local drive usually is going to get the best results.
-
I try to install the update for Microsoft Works 8 (KB977304) security, but he has been unable to download. He said it failed because error code 646. If anyone can help me with this that would be great.
Hello
Do you work on your computer? Otherwise the control panel - Windows Updates - right
Click on and HIDE.Try this 1st to see if it helps, and it should:
Description of the Patch registration cleanup tool
http://support.Microsoft.com/kb/976220/------------------------------------------------------
If necessary :
Try this - Panel - Windows Updates - on every update that will not be installed - click on the important updates
or the update itself - double click a view more information (or click top then discovers on the right)Those who will take you to a page where you can download the update.
Or go here and the KBxxxxxx number to download it.
Download Center - mount the KBxxxxxx.
Microsoft Download Center
http://www.Microsoft.com/downloads/en/default.aspxDownload - SAVE - go to where you put them - click on - RUN AS ADMIN
Then you can right click on the update in the updates Windows and HIDE.
If you get an error Installer install this version:
Windows install 4.5 Redistributable
http://www.Microsoft.com/downloads/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en----------------------------------------------------
Then run this:
How to reset the Windows Update components? -a Mr Fixit
http://support.Microsoft.com/kb/971058Description of the system for Windows Vista, Windows Server 2008, update tool and
for Windows 7
http://support.Microsoft.com/kb/947821------------------------------------------------------------
Because these are all Office updates you might get more information if necessary in the Agency of those groups that
may have experienced the same problem.Office newsgroups
http://www.Microsoft.com/Office/Community/en-us/FlyoutOverview.mspxMicrosoft.public.office.misc discussions
http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Office.misc&cat=en_us_01cb749f-c998-4762-8099-df71793c11c7&lang=en&CR=us------------------------------------------------------------
If necessary you can incident free get reports however the above should take care of it for you.
Windows updates - free Incident report
Go here and click on-> Windows Update fails while searching, downloading or installation of updates
http://support.Microsoft.com/GP/wusupport#tab3The security updates, you can get free support Incident report
http://www.Microsoft.com/protect/resources/support.aspxI hope this helps.
Rob - bicycle - Mark Twain said it is good. -
Downloaded the patch for an extension of game / will not work because windows cannot find ' RTR - patcher.bat
Original title: rtr - patcher.bat
Brian
You need to contact the developer of the game, because they are the only one who can help you. We support Microsoft software & hardware here.
-
I want to uninstall the application, because it does not stay charged and want more on my computer and not perform the steps for removing it, but none does not work for me.
Cancel see answer #1 in https://forums.adobe.com/thread/2023066 - includes a link to Chat from Monday to Friday
Sign out of your account... Uninstall... to run vacuuming...
-http://helpx.adobe.com/creative-cloud/help/install-apps.html (and uninstall)
-https://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
-
How to change your settings to allow you to be able to place images and things outside of the artboard when you work? I have it on a single file and I opened another and the setting seems to have changed, but I can't find where to change it.
I think that things are there, but just hidden.
Try this:
Make sure that your cursor is not in a text box, and then type a W.
-
How to resize the window elements 11 photoshop on mac? no green +.
How to resize the window elements 11 photoshop on mac? No button green + out of the screen. cannot resize monitor - no option on macpro
Go to System Preferences > displays and your descent of resolution. Let the OS X to open with the new resolution. Place it back up to the highest available resolution and the window should position themselves correctly.
-
Update of security for MS Works 9 (KB2680317) will not - install tried several times
I have windows vista service pack 2. Windows Update is set to auto update. The update for ms-works 9 will not install. I searched the online help but nothing useful. At least I know that there are others with the same problem. Hope you can find a fix for this problem... Thank you
See this response archived from a previous thread:
UTC/GMT is 04:56 on Sunday, April 22, 2012
-
I'm unable to download the updates for Adobe reader 10.1.1 victory win 7 claims I am connected as a guest when I am the administrator. disabled UAC and added another user still cannot update.
Original title: win 7 claims I am logged in as a guest when I am the administrator. disabled UAC and added another user still cannot update.
Here's how you can find your status:
1. click on the globe to start, and then type the three letters cmd in the search box and press ENTER.2. Enter the following command and press ENTER:NET user "user %%nom.What do you see under "a Local group memberships? -
I signed Adobe Photoshop CC 2015 full set in Jun / 2015 I found that the renewal for 14/08/2015. BDo, not understand, because I signed up for a 1 year. Urgent request clarification.
I think the CC renewal happens every month. It does not mean that you have to pay again, CC checks on your account every month to make sure that your subscription is up to date.
-
To send messages through the network (LAN, netsend and msg.exe) does not win 7... can u tell me the cmd
If any document available please send my email id
Thank you & best regards
Martine
Hello
Thanks for posting your query to the Microsoft forum.
Please see the suggestions in the following threads:
Let us know if you need more assistance. We will be happy to help you.
___________________
Thank you best regards &,.
Isha Soni
-
Lot SVG: where to add the code to resize the artboard?
I want to include a piece of code to get the artboard resized and then convert .eps and .ai files SVG.
Not sure where it should go?
Clues, let me know
THANK YOU GUYS!
------------------------------
artboard resize code
for (i = 0; i < filesToProcess.length; i ++) {}
App.Open (filesToProcess [i]);
var doc = app.activeDocument;
myBorder var = 10; The value of desired border width, in points
var myVisibleBounds = doc.visibleBounds; Rect, i.e. a table;
myVisibleBounds [0] = myBorder; left coordinate (use negative values to add artboard)
myVisibleBounds [1] += myBorder; top coordinate
myVisibleBounds [2] += myBorder; coordinate of the right
myVisibleBounds [3] = myBorder; coordinate below (use negative values to add artboard)
doc.artboards [0] .artboardRect = myVisibleBounds;
-----------------------
WHERE TO PUT IN THE BATCH SVG CODE?
----------------------
Main code [the script starts here]
var destFolder sourceFolder, files, type sourceDoc file, targetFile, svgSaveOpts;
Select the source folder.
sourceFolder = Folder.selectDialog ('Select the folder containing the Illustrator files you want to convert SVG', ' ~');
If a valid file is selected
If (sourceFolder! = null)
{
files = new Array();
filesToProcess = sourceFolder.getFiles ("*.ai", "*.eps");
Download all the files that match the pattern
files = sourceFolder.getFiles (file type);
If (files.length > 0)
{
Get the destination to save files
destFolder = Folder.selectDialog ('Select the folder where you want to save the converted SVG files.', ' ~');
for (i = 0; i < files.length; i ++)
{
sourceDoc = app.open (files [i]); Returns the document object
Call the getNewName function to get the name and the file to save the SVG
targetFile = getNewName();
GetSVGOptions function call to get the files SVGSaveOptions
svgSaveOpts = getSVGOptions ();
Save as svg
sourceDoc.exportFile (targetFile, ExportType.SVG, svgSaveOpts);
sourceDoc.close ();
}
Alert ("the files are saved as SVG in" + destFolder);
}
on the other
{
Alert ("no file found");
}
}
/*********************************************************
getNewName: function to get the new file name. Primary school
name is the same as the source file.
**********************************************************/
function getNewName()
{
var ext docName, newName, saveInFile, Nomdoc;
docName = sourceDoc.name;
ext = ".svg"; new svg file extension
newName = "";
for (var i = 0; docName [i]! = '. '; i ++)
{
newName += docName [i];
}
newName += ext; SVG full file name
Create a file object to save the svg
saveInFile = new file (destFolder + ' / ' + NewName);
Return saveInFile;
}
function getSVGOptions()
{
var svgSaveOpts = new ExportOptionsSVG();
l
svgSaveOpts.embedRasterImages = true;
Return svgSaveOpts;
}
Yes. response of zertle is the same as mine.
-
Unable to download the update for Microsoft Works
I tried to do an update for microsoft works and it always fails. I just bought this computer in March and it has windows 7 on it. I get the following error message: the component that you are trying to use is on a CD-Rom or another removable disk that is not available. Insert the disc of microsoft works, and then click ok.
I watched all the cd that I got when I bought this brand new computer, but I don't see one that says Microsoft Works on it. Anyone know what I can do to fix this?
Thank you
You can try a manual download but no guarantee-
Download the file to a location on the hard drive, you can find and then install.
Otherwise, you will need the installation media.
Harold Horne / TaurArian [MVP] 2005-2011. The information has been provided * being * with no guarantee or warranty.
-
This seems to be a similar problem as ·leuw· was on 19 October with update KB973636.
Y at - it a stand-alone package for this new update?Hello
Do you work on your computer? Otherwise the control panel - Windows Updates - right
Click on and HIDE.Try this 1st to see if it helps, and it should:
Description of the Patch registration cleanup tool
http://support.Microsoft.com/kb/976220/------------------------------------------------------
If necessary :
Try this - Panel - Windows Updates - on every update that will not be installed - click on the important updates
or the update itself - double click a view more information (or click top then discovers on the right)Those who will take you to a page where you can download the update.
Or go here and the KBxxxxxx number to download it.
Download Center - mount the KBxxxxxx.
Microsoft Download Center
http://www.Microsoft.com/downloads/en/default.aspxDownload - SAVE - go to where you put them - click on - RUN AS ADMIN
Then you can right click on the update in the updates Windows and HIDE.
If you get an error Installer install this version:
Windows install 4.5 Redistributable
http://www.Microsoft.com/downloads/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en----------------------------------------------------
Then run this:
How to reset the Windows Update components? -a Mr Fixit
http://support.Microsoft.com/kb/971058Description of the system for Windows Vista, Windows Server 2008, update tool and
for Windows 7
http://support.Microsoft.com/kb/947821------------------------------------------------------------
Because these are all Office updates you might get more information if necessary in the Agency of those groups that
may have experienced the same problem.Office newsgroups
http://www.Microsoft.com/Office/Community/en-us/FlyoutOverview.mspxMicrosoft.public.office.misc discussions
http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Office.misc&cat=en_us_01cb749f-c998-4762-8099-df71793c11c7&lang=en&CR=us------------------------------------------------------------
If necessary you can incident free get reports however the above should take care of it for you.
Windows updates - free Incident report
Go here and click on-> Windows Update fails while searching, downloading or installation of updates
http://support.Microsoft.com/GP/wusupport#tab3The security updates, you can get free support Incident report
http://www.Microsoft.com/protect/resources/support.aspxI hope this helps.
Rob - bicycle - Mark Twain said it is good. -
I down loaded the 5300 Kodak down load nd now the printer works well not. It is said, to use advanced point positioning mode select a paper size by a line and the paper tray
Hello Forrestar,
Thank you for your message. We will try to remove the software that you have installed, and then reinstall the latest version of the software for your device. Did this update also includes a new driver? If so, you could try to restore your driver to the previous version. Please let us know so that we can help you more to get this problem is resolved.See you soonEngineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.
Maybe you are looking for
-
When I open Thunderbird it shows download 1 of 27 messages, but only downloads one 1 and does not download the other 26. I mark as spam and delete it from the junk e-mail folder. I press the button to get the Messages and the same thing happens again
-
Dosen't work drive Equium L20-198-IO device error
HI I HOOPE SOMEONE WILL HELP ME I HAVE THIS LAPTOP FOR 6 MONTHSEVERYTHING WAS OK UNTIL NOW, MY DVD DRIVE IS NOT WORKING AND I SEE A MESSAGE"THE REQUEST COULD NOT BE PERFORMED BECAUSE OF AN I/O DEVICE ERROR HELP PLEASE
-
recently deleted iPhotos after El Capitan
Hi everyone I have a small question. I'm a bit confused. I still have my photos in my "Photos" folder I never use iPhoto. After I download El Capitan, I saw in iPhotos that there is this section "recently deleted". In this section, it is full of all
-
Is RE6500 - possible to turn off WiFi?
I have a RE6500 with three Ethernet ports to connect other devices. Is it possible to keep the reception WiFi AC, but disable the transmission?
-
Master reports and retail - Export (report links)
HelloI have a dashboard that contains an analysis in which zoom before reports are configured. I put the option to export the dashboard, but I can't find where to put the option to export to zoom prior report (the zoom ratio is called by an action li