Resizing Auto text in a bounding box (and remove the line break)

I have a lot of certificates of completion of the course I create (using pre-made our graphic charts).  I set up some variables from my diapers and I use a data set to shoot in the person's name, the course title and date of a CSV file.  The text 'Name' encompassing that I created is set to a specific width and height (and must stay that way) with a font size of 94,22 pt; However, some names are REALLY long and are too big for the bounding box.  They dress up.  When I run the "data fusion", I need Photoshop to automatically resize the text in the bounding box so that it is not word wrap.

For example, "Jane Doe" fits well in the box.  However, "Johnathan Cornelius Doe" is too long, and the word encapsulates.  Instead, I want Photoshop to the long name and simply its size down to fit properly in the lack of word envelope bounding box.

I have about 200 of them to spend in Photoshop, print and send.  I really don't want to individually open each certificate to verify this last after that I have run through.  I just batch process and print batch.

Is there a way to do this?  Please note that I have never made any script; so if this is the way it must take, I need to explain carefully and in simple terms.

Thank you!

OK, try this. Save the code in a text file with the extension .jsx below. Create an action that runs the script. Then, you can use this action with the batch command.

#target photoshop
var doc = activeDocument
doc.activeLayer = doc.layers.getByName ('LastName')
var ly = doc.activeLayer
var before = ly.bounds[2]-ly.bounds[0]

var amt = doc.width/before*100
transText (amt)
ly.translate (-ly.bounds[0], 0)

function transText(amt){
    var idTrnf = charIDToTypeID( "Trnf" );
        var desc2 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref1 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref1.putEnumerated( idLyr, idOrdn, idTrgt );
        desc2.putReference( idnull, ref1 );
        var idFTcs = charIDToTypeID( "FTcs" );
        var idQCSt = charIDToTypeID( "QCSt" );
        var idQcsa = charIDToTypeID( "Qcsa" );
        desc2.putEnumerated( idFTcs, idQCSt, idQcsa );
        var idOfst = charIDToTypeID( "Ofst" );
            var desc3 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc3.putUnitDouble( idHrzn, idPxl, 0  );//259.646484
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc3.putUnitDouble( idVrtc, idPxl, 0.000000 );
        var idOfst = charIDToTypeID( "Ofst" );
        desc2.putObject( idOfst, idOfst, desc3 );
        var idWdth = charIDToTypeID( "Wdth" );
        var idPrc = charIDToTypeID( "#Prc" );
        desc2.putUnitDouble( idWdth, idPrc, amt);//1050.143628
        var idIntr = charIDToTypeID( "Intr" );
        var idIntp = charIDToTypeID( "Intp" );
        var idBcbc = charIDToTypeID( "Bcbc" );
        desc2.putEnumerated( idIntr, idIntp, idBcbc );
    executeAction( idTrnf, desc2, DialogModes.NO );
    }

Tags: Photoshop

Similar Questions

  • Help - Add line and remove the line does not!

    Not able to understand why the button "Add and Remove row" do not work.

    Thanks in advance

    Hello

    To remove the specified line, use the function

    Table1._Row1.removeInstance (IND);

    where ind is the index of the line.

    You should put the button Delete in each row of the table and write onClic script:

    Table1._Row1.removeInstance (this.parent.index);

    BR,

    Paul Butenko

  • How can I get my Eyedropper to sample a color and remove the line?

    Well, my problem is that I'm in Illustrator CS6 and I drew a red plan on a photo on a separate layer and when I taste the color under it leaves the Red streak.

    So all is well, Shelly?

  • Easy way to remove excess line breaks in txt, html, and epub files?

    Transfer to my e-reader to read web pages. I have to convert everything in epub, because the PDF files and djvus are designed for larger screens, and txt and html are not displayed correctly.

    In any case, some pages have a lot of extra newlines that are arranged for larger screens.

    I have to remove the line breaks to make it readable. I know that DevonTech wordservice works in txt, which I can convert it to Epub. Is there something that works in Epub itself? Is there something else that works in txt?

    Thank you.

    INTHE html, these line breaks appear to be either < br / > or < br / > where the paragraph breaks are < p >. So, it seems easier to edit files ePub in the editor, as the iWrite series Epub or the caliber, that the modification of the txts.

  • When you change the text, all the text in the bounding box is removed...

    I have a PDF file that was created in a different version of Adobe. The Adobe program, I am currently working with that is Adobe Acrobat Pro DC. It is on a Windows 7 PC. When I change the text in the 'framework', any word, I try to change, all of the text in the box is removed. How can I stop this from happening?

    Nevermind, I figured it. I had select the bounding box and select "bring forward" under the "objects" tool

  • The Central handle on the rectangle isn't gone when I select with the black arrow (v) tool. See the bounding box and the edges is both. Dd intermediate anchor to go?

    The Central handle on the rectangle isn't gone when I select with the black arrow (v) tool. See the bounding box and the edges is both. Dd intermediate anchor to go?

    haggyabeken,

    I'm afraid that you have come across the Rectangle Live bug, which is limited to MAC versions starting from 10.7 and 10.8, but not 10.9 (Mavericks), see this thread linked below.

    https://forums.Adobe.com/thread/1595973

    Thus, a switch for the Mavericks with a reinstall might be the way to solve it here and now.

    To get around it, in each case, it is possible to develop direct Rectangles to get the normal old shaped rectangles or Pathfinder > unit, or use the scale tool.

    A more permanent way round that is to create normal old shaped rectangles, after running the free script created by Pawel, see this thread with download link:

    https://forums.Adobe.com/thread/1587587

  • Why my Illustrator images become thicker strokes when I take the bounding box and make it smaller?

    Why my Illustrator images become thicker strokes when I take the bounding box and make it smaller? It never happened to me. I'm not an expert in Illustrator, but I do know some basic principles.

    In the preferences, is the scale strokes and effects verified?

  • How to select a cell in a multicolumn list box and use the horizontal scrollbar on th

    An event structure, how to select a cell in a multicolumn list box and use the horizontal scrollbar on the front panel at the same time.  I can select a cell in the multicolumn in a structure of the event, but I can't move the scroll bar on the front panel when the program is running.

    I guess that you are referring to the scroll bar in the control multi-column listbox. What does your code when you select a cell? Can you please your postal code so that we can see the behavior you describe? It is possible that you are blocked the structure of the event, as in performing an operation long in case the treatment cell selection. In this case, the structure of the event must wait until the event ends before being able to respond to the next event. You can configure the event to not lock the front panel until the event ends.

  • I have photoshop elements 8, but lost the sleeve on the disk.  Where can I find the redemption code?  I've looked everywhere on the box and in the literature on the inside.

    I have photoshop elements 8, but lost the sleeve on the disk.  Where can I find the redemption code?  I've looked everywhere on the box and in the literature on the inside.

    Here is an Adobe Help file on the issue: quickly find your serial number


    Moved from Photoshop General Discussion for Download, installation, setting up

  • Script to search for text and remove the hyperlink and characterstyle link which applies (back to normal)

    I need help with my script to search for text and remove the hyperlink and characterstyle link which applies (returns the normal text).

    I can't do either as I want.  I want the user to be able to type in a dialog text they want to search for, do search this text IGNORING case (case insensitive) and then for all instances that he find it, remove character styles that are applied to the (set to [none]) and delete the hyperlinks.

    My code seems to define the character style [None], when I click on the text and look at the window of character Styles, BUT all old styles (font color, underline) are always applied and removed not as I want.

    Also, I can't understand how to remove all of the old links.

    Here is my code:

    myDocument var = app.activeDocument;

    var noneStyle = myDocument.characterStyles.item ("[None]");

    var myFindVal = "";

    var myErrorText = "";

    var myErrorCount = 0;

    myDialog = app.dialogs.add var ({name: "search user submitted text and delete hyperlinks from objects found.", canCancel: true});

    {with (MyDialog)}

    {with (dialogColumns.Add ())}

    {with (borderPanels.Add ())}

    staticTexts.add ({staticLabel: "search and delete hyperlinks for :"}); "})

    myTextBox var = textEditboxes.add({minWidth:100});)

    }

    }

    }

    If (myDialog.show () == true) {}

    myFindVal = myTextBox.editContents;

    doSearchAndReplace();

    app.findTextPreferences = NothingEnum.nothing;

    app.changeTextPreferences = NothingEnum.nothing;

    If (myErrorCount == 0) {}

    Alert ("done! ("Part of the links have been removed for: '" + myFindVal + ""! "");

    }

    else {}

    Alert ("last error: '" + myErrorText + "' & number of errors:" + myErrorCount);

    }

    }

    myDialog.destroy ();

    function doSearchAndReplace() {}

    app.findTextPreferences.findWhat = myFindVal;

    app.findChangeTextOptions.caseSensitive = false;

    app.findChangeTextOptions.includeFootnotes = false;

    app.findChangeTextOptions.includeHiddenLayers = false;

    app.findChangeTextOptions.includeLockedLayersForFind = false;

    app.findChangeTextOptions.includeLockedStoriesForFind = false;

    app.findChangeTextOptions.includeMasterPages = false;

    app.findChangeTextOptions.wholeWord = false;

    var myFoundItems = myDocument.findText ();

    for (i = 0; i < myFoundItems.length; i ++) {}

    myRemoveHyperlinkAndStyle (myFoundItems [i]);

    }

    }

    function myRemoveHyperlinkAndStyle (myFoundItem) {}

    try {}

    myDocument.hyperlinkTextDestinations.item (myFoundItem) .remove ();

    myDocument.hyperlinkTextSources.item (myFoundItem) .remove ();

    myDocument.hyperlinkURLDestinations.item (myFoundItem) .remove ();

    myFoundItem.applyCharacterStyle (noneStyle);

    }

    {catch (MyError)}

    myErrorCount ++;

    myErrorText = MonErreur;

    }

    }

    Hello

    Right, some hyperlink might be a pageItem...

    expand the 'if' condition with:

    If (myHyp [len].source.hasOwnProperty ("sourceText") &... content ==...)

    Jarek

  • CFFILE - reading text file and maintenance of line breaks

    I am using cffile to read a text document, then add then display the content of the text document in a file .xml for an atom feed. Everything works fine, but it seems that cffile is stripping on the line breaks in the original file so that the contents of the variable which is save has more no line breaks. Is there an attribute that I'm missing that will control this behavior or I have to go about it in different ways. Thanks in advance for any idea on this issue.

    Why do you say that line breaks are removed?

    If you just say that because when you look at the results in your browser.  Recall that the HTML standard ignores all the line breaks and most other white space.  A quick overview of the source will tell you if the line breaks are there or not.  Using the HTML code

    ...
    Tags is the right way to tell a browser not not to ignore white space in the source.

    But it is possible that somewhere along the process of conversion of text file to XML data line breaks are stripped.  But then, we would need to see significant process pieces for a chance to help you.

  • I want to allocate more disk space for my c drive and remove the drive d

    I want to allocate more disk space for my c drive and remove the drive d. I 26 gig on the d drive and only using less than 1% of it, and I have the same amount on c, but only 39% c left. How to do this.

    LEM explained the problems that you tried to resize partitions on the same drive.

    You can create more free space in C in carrying one of the measures suggested below.

    The default allocation for the restoration of the system is 12% on your C partition is more generous. I have them would be reduced by 700 MB. Make my computer right click on your icon, and select System Restore. Place the cursor on your C drive select settings but this time find the slider and drag it to the left until it shows 700 MB and output. When you get to the settings screen, click on apply and OK and leave.

    A flaw that might be useless which is for temporary internet files, especially if you keep no copies on the disk offline. Setting the default value is 3% of the walk. Depending on your attitude to copies offline, you could bring it to 1% or 2%. In Internet Explorer, select Tools, Internet Options, general, temporary Internet files, settings to make the change. At the same time, look at the number of days, the story stands.

    The default allocation for the basket is 10% of the disk. Change to 5%, which should be enough. In Windows Explorer hover over your Recycle Bin, right click and select Properties, Global and move the slider from 10% to 5%. However, try to let you become so complete that if it is complete and you delete a file by mistake it will bypass the Recycle Bin and have gone forever.

    You can generate more space in the system (usually C) the folder move partition.

    For temporary Internet files, select Start, Control Panel, Internet Options, temporary Internet files. Settings and move back.

    To move the storage folder Outlook Express select from Outlook Express Tools, Options, maintenance, store folder and change.  http://www.tomsterdam.com/insideoe/files/store.htm.

    How to change the default location of the My Documents folder: http://support.microsoft.com/?id=310147

    You may also change the default locations of the files in Microsoft Office programs when you choose to move the My Documents folder. For Word, go to tools, Options, file locations, highlight the Documents, click on edit and change the path. For Excel, go to tools, Options, general, and change the default path.

    My Documents is one of the many the created system of special folders, which include my pictures, and my music. It can be more easily modified using TweakUi. Download TweakUI, one of MS powertoys, here: http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp.

    In TweakUi, select workstation, special folders. You can scroll down to see the full list of special folders to the left of the button to change the location.

    You can move programs, but to do this, you must uninstall and reinstall the program. With Word and Excel, the existing data files are not affected by reinstalling. Most of the work in question is going to be reinstall all updates issued after those that are included with the original Microsoft CD / DVD.

    If your drive is formatted as NTFS another potential gain arises with your operating system on your C drive. In the Windows directory of your C partition you will some uninstall files in your Windows folder in general: $NtServicePackUninstall$ and $NtUninstallKB282010$ etc. These files can be compressed or not compressed. If compressed text the name of the folder appears in blue. If these files are not compressed you can compress. Right-click on each folder and select Properties, general, advanced, and check the box before you compress contents to save disk space. On the general tab, you can see the winning amount by deducting the size on disk size. File compression is only an option on an NTFS formatted disk partition / partition.

    I'd be interested to see a report of Disk Defragmenter. Open Disk Defragmenter and click analysis. Select view report, and then click Save as and save. Now find VolumeC.txt in your My Documents folder. Open the file, place the cursor anywhere in the file, select Edition, select all to select all the text and copy and paste into the body of your message. To do this, before you run Disk Defragmenter because it is more informative.

    Select Start, all programs, accessories, System Tools, cleaning disk to emptying your trash, delete temporary Internet files and other selected options. I recommend also you click Other Options, System Restore and delete all but the last system restore point. Run Disk Defragmenter

    Using the system restore option is most appropriate when your system is slow and you need to increase the free disk space on your C partition. If you have errors that could be solved by using the system restore to your system settings back to before that the error occurred initially, do not use this option.

    Select Start, Control Panel, Folder Options, view, advanced settings and check the box in front of "show files and folders" and 'Hide protected operating system files' are unchecked. You may need to scroll down to see the second element. You should also make sure that the box before "Hide extensions of known file types" is not checked. Notwithstanding, there are some files that are hidden. Again, you will not see the System Volume Information folder.

  • I have a text field. I need to remove the first 8 characters of the field, leaving the remaining characters. Help?

    I have a text field. I need to remove the first 8 characters of the field, leaving the remaining characters. Help?

    Example:

    Text Example.JPG

    I need to remove these numbers PXXXXXX. Leaving the other characters.

    Thank you

    Bob

    A normal 'substring' is what you're looking for.

    For a formula of the column in the response criteria tab:

    SUBSTRING ("YourPresTable". "YourPresColumn" OF 9)

    To make the RPD and the workload of shipping off the coast to the database rather than forcing the work on the server of the OBI or presentation:

    Substring ("01 - Sample App Data (ORCL)" ".." ") "" "BISAMPLE '." " D10 product (dynamic table)". ("' Prod_Dsc ' 9)

  • Select reverse and remove the effect from Photoshop to Illustrator

    Hello

    I'm new to Illustrator and do my best to understand how it works! I'm used to working with Photoshop and there are some things that I could do it on Photoshop and am now trying to find a way to make it look as I want... So here goes

    I'm looking to have this effect on Illustrator. (For those who you don't see the image, mimage is a globe with the text that appears only on continents. The text disappears when the image is empty. I forgot to save it as a png, but white is transparent.

    Logo PEI.jpg

    I managed to write my text in Illustrator and change the text to "Color Burn" effect, so that it looks the same on all continents. However, I am unable to remove the text where it leaves the other layers. The text remains black where the background is transparent.

    Logo PEI Illustrator.jpg

    So I was wondering if there is a way to remove the text outside the continent. The same effect, you should achieve in Photoshop by selecting reverse and removing the text (pixelated).

    Make a copy of the shape of the continent. Select the copies, and then choose the command object > path > make a compound path.

    Then use the new compound path as a clipping on the text mask. With her before she and the text and the text selected, choose object > path > make a clipping mask.

  • I have a program that I can't remove. its not in Add and remove the progeams

    I have a program that I can't remove. its not in Add and remove the progeams

    It may be a small program which do not present in the Add Remove Programs list.

    Try to get into the programs folder, and then delete the folder with the name of the program on this subject.

Maybe you are looking for

  • Why wi - fi has a self assigned IP address?

    Why wi - fi has a self assigned IP address? The Macbook Pro has not already an IP address problem.

  • PT-100 resistance measurement

  • What is iGcFjCi06321.exe? It says system tool and blocks everything

    This computer dell laptop and when I make a hard stop and start it appears and does not do anything to another program to run.  I checked this computer yesterday for malware and not had any problems. Also ran spyware and not had any problems.

  • Rates of burden for CLIP

    I have a new CLIP 2 GB MP3 player and want to buy a power adapter to charge.  The CLIP uses I believe a thogh of Lipo or Li - ion lithium battery, I don't know.  If this is the Lipo then charge rate is extremely important for safety as overchargeing

  • RV042 relay agent

    Hello Is it possible to configure RV042 as a DHCP relay agent? I use two of these routers with G2G configuration. In one place, I have W2k3 DHCP server and in another place, I want to use this server. Thanks for the reply. Karol