HHow to create a keyline around the document perimeter

Hey guys,
I am trying to create a keyline around the document instead of using the crop mark. I would like to automate this task for each documents for any size I create. Does somebody tried to set up a applescript for that?
I found a bunch of script about how to create a stroke for text frame but I don't know how to create a black stroke in the size of my artboard.... Help me please!
Thanks

Is this you asking?
var doc = app.activeDocument, pages = doc.pages,
width = doc.documentPreferences.pageWidth, height = doc.documentPreferences.pageHeight,
oldRO = doc.viewPreferences.rulerOrigin;
doc.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;
for(var i=pages.length-1;i>=0;i--)
        var txfm = pages[i].textFrames.add();
        txfm.strokeWeight = 1;
        txfm.strokeType = "Solid";
        txfm.geometricBounds = [0,0,height,width];
doc.viewPreferences.rulerOrigin = oldRO;
Regards,
Chinna

Similar Messages

  • Adobe Reader highlight tool no longer filling text, just creating a line around the text

    The Highlight tool in Adobe reader is no longer working as it used to.  Instead of filling the text, as it used to, the tool just creates a line around the text.  This makes the highlights much harder to spot.
    I'm running Win 8 and using Adobe Reader XI version 11.0.09.
    I've attached a screenshot to illustrate.  The way the tool used to work, they way I want it to, is shown by all the highlighted text in the document.  The way it currently works, is shown on the first line of text , where a portion of the text has been highlighted using the tool as it works now.  I just creates a yellow line around the text.
    I've checked the way the highlight settings are on both the old highlighted text and the new text and they appear identical.  Both the colour and opacity percentage settings are the same.
    Very frustrated.  Any help appreciated.

    Gilad D (try67) wrote:
    Very strange. I'm not sure what the reason for this behaivour is, but try right-clicking one of the previous highlights and selecting "Make Current Properties Default". Then try to create a new highlight...
    Did that.  No effect.

  • Save as PDF feature creates extra frame around the tables

    I am creating a large catalog with black + 1PMS color.
    If I use the Save As PDF feature in Frame 9, I get an extra line around the Price portion of MOST (not all) of my tables.  If I use the Distiller process, the extra line is not there, but the PDF file does not hold the color separations.
    Has anyone else come across these issues or have any ideas what I could be doing wrong?
    Thank you,

    If you are trying to use the new SaveAsPDF CMYK option, forget it. It is sorely broken in many aspects (just search this forum), especially when dealing with tables and OTFPro fonts.
    Go back to an RGB based workflow (i.e. ensure that the "Convert CMYK Colors to RGB" option is checked in the PDF Setup) and use a third-party tool to deal with the results. Some choices would be:
    - Acrobat 9 Pro has some even stronger pre-flighting and colour handling features now, but Acrobat 8was no slouch either
    - Enfocus' PitStopPro is extremely powerful for fixing up colours: http://www.enfocus.com/product.php?id=855
    - Grafikhuset's PubliPDF tool allows you to set up conversions for the RGB by printing to a queue and then post-processing the postscript prior to handing off to Distiller for PDF creation: http://www.grafikhuset.net/PubliPDF/
    - Quite Software's Quite a Box of Tricks let's yuou do colour conversions: http://www.quite.com/box/features.htm

  • SOFM create mulitple entrance in the document content

    Hi @ all
    How could I create multiple entrances in the DocumentContent?
    Since now I'm binding the different elements (in my case 4 different container elements) to the DocumentContent, but after this task there is only one entrance. I think I delete the different entrances by using the same DocumentContent.
    How could I assign my 4 container elements entries in this DocumentContent?
    Please I need help.
    THX
    Regards Phil

    Hi Phillip,
    How is your container element DocumentContent defined?  Multiline?  There are container operations which will allow you to append new entries to a container, as opposed to wiping them out. In the container operation, chose the <- operand, instead of =, and you should be appending new entries into your container.
    Regards,
    Sue

  • 2 outputs getting created simultaneously when saving the document

    Dear SDNers,
    I have a shipment Document.
    Upon saving it 2 Outputs- LAVA for (EDI) get generated at the same time.
    Clarification needed:
    1. Please guide as to where i need to look for the error as to why 2 outputs are getting triggered simultaneously( gap of 1 second).
    2. i have checked in the processing routine associated with it. Is it the right place?
    Regards,
    SuryaD.

    Hi Nagaraj,
    thanks for your response.
    So if i understand right, you mean to say that if 2 condition records are maintained, then 2 outputs migh get created.
    Right.
    Regards,
    SuryaD.

  • Creating a border around the graphic

    Hi,
    What's the quickest way to create a one pixel border around a graphic using Photoshop?
    I'd appreciate it. Thanks!

    Select All (Ctrl+A)
    Edit > Stroke.  Set the stroke to 1 pixel, Inside, colour of your choice.

  • How to create magnification effect around the mouse.

    Hi everybody,
    I have a problem which really freaks me out at the moment. I am working on an image sorting software and I try to implement a magnification glass. The problem seems to be easy: Create the Region OF Interest, "zoom" in ,display result at the MousePosition. I got it so far:
    bimage is a BufferedImage
                            Graphics2D gi = bimage.createGraphics();
                            gi.setClip(0, 0, bimage.getWidth(), bimage.getHeight());
                   gi.drawImage(bimage, 0, 0, null);
                   //paints red rectangle around mouse position
                   gi.setColor(Color.blue);
                   gi.draw(new Rectangle(mousePosX-100, mousePosY-100, 200, 200));
                   Rectangle zoomRect = new Rectangle(mousePosX-100, mousePosY-100, 200,     200);
                   gi.setClip(zoomRect);
                   gi.copyArea(mousePosX-100, mousePosY-100, 200,     200, 0, 0);
                   gi.scale(1.1, 1.1);
                   gi.translate(-20, -20);
                   gi.drawImage(bimage, 0, 0, null);What happens is, that as soon as I translate it to the right position, the copy area copy's the scaled copy and so on. It looks horrible. Does anyone knows how to make it better?
    Thx in advance.

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.BufferedImage;
    import javax.swing.*;
    public class Magnifier extends JPanel implements ActionListener {
        OverlayComponent overlayComponent;
        public void actionPerformed(ActionEvent e) {
            boolean magnify = ((AbstractButton)e.getSource()).isSelected();
            overlayComponent.setMagnify(magnify);
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            int cols = 3, rows = 3, pad = 20;
            int w = getWidth(), h = getHeight();
            double dx = (double)(w - 2*pad)/cols;
            double dy = (double)(h - 2*pad)/rows;
            // Draw ovals.
            Color[] colors = {
                Color.cyan, Color.magenta, Color.yellow, Color.orange
            for(int j = 0, count = 0; j < rows; j++) {
                double y = pad + j*dy;
                for(int k = 0; k < cols; k++) {
                    double x = pad + k*dx;
                    int index = j*cols + k;
                    Color color = (index % 2 == 0) ? Color.blue
                                                   : colors[count++];
                    if(count > 3) count = 0;
                    g2.setPaint(color);
                    g2.fill(new Ellipse2D.Double(x, y, dx, dy));
            // Draw grid.
            g2.setPaint(Color.red);
            for(int j = 0; j <= rows; j++) {
                double y = pad + j*dy;
                g2.draw(new Line2D.Double(pad, y, w-pad, y));
            for(int j = 0; j <= cols; j++) {
                double x = pad + j*dx;
                g2.draw(new Line2D.Double(x, pad, x, h-pad));
        private JPanel getContent() {
            overlayComponent = new OverlayComponent(this);
            JPanel panel = new JPanel();
            OverlayLayout overlay = new OverlayLayout(panel);
            panel.setLayout(overlay);
            panel.add(overlayComponent);
            panel.add(this);
            return panel;
        private JPanel getLastPanel() {
            JCheckBox checkBox = new JCheckBox("magnify", true);
            checkBox.addActionListener(this);
            JPanel panel = new JPanel();
            panel.add(checkBox);
            return panel;
        public static void main(String[] args) {
            Magnifier test = new Magnifier();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(test.getContent());
            f.getContentPane().add(test.getLastPanel(), "Last");
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
    class OverlayComponent extends JComponent {
        Magnifier component;
        BufferedImage image;
        Point loc;
        boolean magnify = true;
        OverlayComponent(Magnifier m) {
            component = m;
            addMouseMotionListener(mma);
        public void setMagnify(boolean magnify) {
            this.magnify = magnify;
            repaint();
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            if(magnify) {
                if(image == null) {
                    int type = BufferedImage.TYPE_INT_RGB;
                    image = new BufferedImage(200, 200, type);
                    updateImage(new Point(getWidth()/2, getHeight()/2));
                int x = loc.x - image.getWidth()/2;
                int y = loc.y - image.getHeight()/2;
                g.drawImage(image, x, y, this);
        private void updateImage(Point p) {
            loc = p;
            Graphics2D g2 = image.createGraphics();
            g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
                                RenderingHints.VALUE_INTERPOLATION_BICUBIC);
            double scale = 1.25;
            int x = (int)(scale*p.x) - image.getWidth()/2;
            int y = (int)(scale*p.y) - image.getHeight()/2;
            g2.translate(-x, -y);
            g2.scale(scale, scale);
            component.paint(g2);
            g2.dispose();
        private MouseMotionAdapter mma = new MouseMotionAdapter() {
            public void mouseMoved(MouseEvent e) {
                if(magnify) {
                    updateImage(e.getPoint());
                    repaint();
    }

  • Moving around the document

    Is it possible to see the area off screen to the left and top of the slide?
    When you zoom out the slide fits in the top left corner hiding everything left and above? Which makes things difficult when you want something to come on from the left or above in terms of positioning?

    There isn't any way to see that part of the work area, unfortunately.

  • How can I search and replace the order items appear in the document?

    Here is my script. I am trying to replace instances of a text pattern (Lot ^9^9^9^9^9) with an auto incremented number Lot 1, Lot 2, Lot 3, etc... I believe this script produces unexpected results becuase the search result is ordered by document construction. The first item in myfounditems is the last item added to the document (which is on the last pages of the document), the second item in myfounditems is the next to last item that was added to the document (which was moved to a middle page in the document). The net result is that instead of having the first item on the first page being Lot 1) and the item directly below it being Lot 2), my document is a hodgepodge of Lot numbers is a seeminlgly random order. Any thoughts on how to fix this?
    tell application "Adobe InDesign CS5.5"
      --Clear the find/change preferences.
              set find text preferences to nothing
              set change text preferences to nothing
      --Search the document for the string "lot".
              set find what of find text preferences to "Lot ^9^9^9^9^9)"
      #set change to of change text preferences to "Lot " & lotnum & ")"
      --Set the find options.
              set case sensitive of find change text options to false
              set include footnotes of find change text options to false
              set include hidden layers of find change text options to false
              set include locked layers for find of find change text options to false
              set include locked stories for find of find change text options to false
              set include master pages of find change text options to false
              set whole word of find change text options to false
              tell active document
                        set lotnum to 1
                        set myFoundItems to find text
                        repeat with foundItem in myFoundItems
                                  set contents of object reference of foundItem to "Lot " & lotnum & ")"
                                  set lotnum to lotnum + 1
                        end repeat
              end tell
    end tell
    display dialog ("Numbered " & (count myFoundItems) & " lots in this document. Next starting lot number is " & lotnum & ".")

    You noticed the first one yourself: the Found item list seems to randomly jump around the document -- I believe you are correct in your observation it may be due to the object construction order. That tells me, by the way, something about your lot numbers that tou didn't mention: your text is not one continuous long threaded story, but it's all or partially in disconnected etxt frames. The Found list does return everything inside a single story in the correct order, but it goes over each separate story in the order they were constructed.
    The only solution is to gather all of your lot numbers, *re-sort* them according to the page number they appear on (and some sort of Worst Case Scenario is when you might have more than one lot number frame per page; in that case you also need to sort by textframe, top to bottom -- yet even worse is if you also may have these textframes side by side!).
    Only then you have a reliable counting order.
    This isn't too bad. We can just extend the method I offered for sorting top-to-bottom/left-to-right in Re: Working around the frame selection order issue in CS 4 and make it also include page numbers:
    function byPageYX(a,b) {
        var
            aP = a.parentTextFrames[0].parentPage.index,
            bP = b.parentTextFrames[0].parentPage.index,
            aY = a.baseline[0],
            bY = b.baseline[0],
            aX = a.horizontalOffset[1],
            bX = b.horizontalOffset[1],
            dP = aP-bP,
            dy = aY-bY,
            dx = aX-bX;
        return dP?dP:(dy?dy:dx);
    myResults.sort(byPageYX);
    Or something like that.
    As for actually implementing the above I cannot be of any help with Applescript.
    Once we're dealing with sorting I think you're much better off in Javascript anyhow.

  • Print of all the document no In MB90 by collective slip

    Hi All,
    we want to print of all the document no. we  put in MB90 from and to.
    collective slip already mark in MIGO output.please guide what has to be done in configuration.
    Or there is another Tcode where we solve this issue.
    Thanks in advance.
    Kunwar

    Hi Kunwar,
    first check, Have you created message for all the documents and what is the dispatch time in the message. You have to select option no. 3 ( send with application own transaction) for output type WE03.
    SPRO >> Materials Management >> Inventory Management & Physical Inventory >> Output Determination >> Maintain Output types >> Click on Output type go to default values and set the dispatch time as 3
    Hope this will help you.
    Regards,
    Manish Jain

  • Unwanted keyline around media in interactive PDF

    Using:
    Indesign CS6
    Acrobat X Pro
    I am exporting an interactive PDF with a movie placed on a page, and when viewing in Acrobat I'm getting a black keyline around the movie's bounding box when I enter the page. If I click anywhere else on the page, the box disappears, however this is not possible in full screen mode as the cursor/hand instead selects the next page, and besides, I don't want the user to have to click away just to view it correctly.
    Please reference the image attached. The text is just there to help show the keyline/border.
    I have tried using both .mov and .f4v files (.mov because it allows looping) and both end up with the same result.
    I have tried not looping to no effect.
    There isn't a keyline in the movie file, nor in the bounding box in InDesign.
    It's as though Acrobat is saying, "Here's the media file you wanted activated upon page entry. See, I've put a black box around it so you know".
    So the question is, is there some way of having media files playing upon page entry without this keyline?
    Thank you for your assistance.

    There are no controls either in InDesign or in Acrobat Pro to change the volume associated with a video file.
    I've made many interactive PDF files from InDesign and the volume playing from the PDF is always exactly the same as when I previewed it in the Media panel in InDesign.
    Open up the Media panel in InDesign (Window > Interactive > Media) and preview the video there. I'd bet that it previews the same as when you play the PDF file.
    There must be something that was done in QuickTime to change the audio.

  • Problems creating a stroke around entire completed logo

    Hi
    Am currently having trouble finishing off my logo.
    I need to be able to do a stroke around the entire logo so that when i cut it out i dont need to go right to the edge of the design (as it is for heat pressing on t-shirts).
    Only problem is I can't work it out. I've tried grouping it all then trying to create one stroke around the entire thing but it still wants to apply the stroke to individual items.Then I tried putting a copied layer behind and giving it a stroke but because it is filled with black it changes the colour of the blue. tried filling with white, but it creates halo's and shadows in the background. Ive set the transparency to block out the black behind as much as i can to try and eliminate the colour change problem. But its still not right.
    So the question is, can i create a stroke just around the outside of my completed logo?
    Have attached a pdf with two examples. One without anything and one with the copied layer behind and filled black so you can see the colour difference.
    Any help or suggestions would be fabulous.
    Thanks

    Hi,
    If I understand your problem correctly, this should do what you need:
    Select and group the oval and the text. Keep selected. Go to Window>Appearance. On the upper right, just above the bar that says Group, you should see three short horizonal bars and a tiny triangle. Click on that, and a menu will open, one of the options being Add New Stroke. Select that. You will see the new 1-pt. black stroke appear under the Group bar in the Appearance palette. Click and hold the Stroke bar, drag it below the Contents bar. Go to the stroke palette Window>Stroke and increase the size of the stroke until you are satisfied with it.
    Peter

  • Strange Keyline around image when I have not applied one

    After importing an image into a box with no keyline around it (transparent not white),  I export to PDF and find it displays a light grey keyline around the image where the box outline would be. Why? How can I avoid this ? Iam running InDesign CC

    Similarly, I'm getting another transparency artifact in CS6. I'm placing a psd with a layer mask. I don't get a line, I get a ghost box representing the original image frame. It's an old PS problem, but I haven't had either the line or ghost box in years. It's back!
      The transparency should be complete (black masked area in Pshop) and it looks fine on screenin ID. However, it prints with a faintly lighter box (just a few percent) to a Xerox 3250 with PS Level3. I've tried setting Transparency Preset to High Res and set the print dialog for Output: Simulate Overprint, Graphics: Send All Data, and Advanced: High Res. Still get the ghost.
      Dropouts made with clipping paths don't have this problem.

  • How do I create and header on the left and auto number pages on the top right? I can't rearrange my document by making page 10 page 5 and so forth

    I've just completed my school report however I seem to be having difficulty with creating a header. I've managed to create the header for all pages in my document by however I also need to use APA style and insert page number on the top right hand corner of each page. I've chosen to auto number them and clicked on INSERT --AuTO PAGE NUMBERS however if I need to make changes to the page numbers, each change i make repeats on every page. Please help.
    I also can't seem to rearrange my document. It's 10 pages long and i want to make page 10 page 1. I thought I could click on that page and drag it into page 1 position like in Keynote however it's not offering me that option. when i click on page 10 in my page thumbnails, all of my pages are highlighted yellow instead of that 1 particular page. what am I doing wrong? someone please help

    You can chose to make left and right headers different in:
    Inspector > Layout > Section
    To move material the best solution is always to copy and paste the content where you want it. You can move sections however so:
    click at end of page 9 > Menu > Insert > Section Break
    You will then have a separate yellow border around the page 10 thumbnail and can drag it to the beginning.
    Peter

  • Printing microsoft word 2003 document and pdf created from the document are different

    I created a microsoft word 2003 document with jpg pictures and printed it on my HP Inkjet printer. I then created a pdf by saving as a pdf from the microsoft word 2003 document. The settings for images were 300 dpi and zip compression. The pdf file created was ~3 MB whereas the word document was ~250 KB. It looked fine on the screen but when I printed it the jpg pictures from the pdf were very dark and not very desirable. When I printed it on my HP Color laser 2600n printer I couldn't see the difference in the jpg pictures.
    I am creating the pdf files to send to the online publisher lulu.com to print. I have used the settings to create the pdf they recommend from their website; however they aren't real clear in the information they give for the recommended settings.
    My question is why would the print out be so awful using the HP Color Ink Jet printer since it is very good for printing pictures?

    There are many reasons, but most revolve around the color space and coding for the colors. Acrobat uses 8 bit RGB.

Maybe you are looking for

  • New Vendor Payment Terms

    We need to incorporate new payment terms, kindly suggest. I am providing the requirement of us below: Required new payments for LC like:- a)      30% advance against bank guarantee, 60% advance against the delivery of material, 10% after completion o

  • Currency with 3 decimals

    Hi ! i need to manage prices with 3 decimals and not 2 only. So i think i will set customising (set decimal places for currencies) in order to change all currencies decimal defined on 2 decimals. Is there a risk to change this customising ? Thanks Ja

  • Dynamically loaded swf to communicate with MovieClip on the stage

    I have a heck of time here with an issue. I have an xml document that when a certain button on the stage is clicked it loads it's corresponding external swf into an empty movieclip on the stage. This empty movie clip is a holder for all external swfs

  • FM to get the highest level org units

    Hi Is there a way to find out the root level org units in the system? i.e i want to retrieve all the org units that do not have a higher level org unit. I can look for org units that do not have a valid "A002" relationship. But i am not sure if this

  • HT201272 I get this when trying to download anything I have bought in iTunes Store "The item you are trying to buy is no longer avalible"

    All music I ever purchased in iTunes is showing up as no longer available and is impossible to download. Thing is I can still find every single one of those albums when searching for them in iTunes Store. All of them is showing up with a price tag bu