Is it possible to write a script for underlined text export to PDF?

When I make changes in the financial document, I must emphasize this purpose to show what I edit, these underscore was called "markup". And then print (paper version) and gen (PDF) of the amendment, which means I have to print and gen text underlined (or called markup text) after modification.

sample PIC:

back markup.jpg

If:

Customer requires a new version of the markup, which means I have to change the last beacon color (color of the underline to the last amendments) in 'back' and then make new 'red' as this markup:

red markup.jpg

What I want:

is it possible to write a script for printing and gen only markup in the document text all open

and I want two versions

(1) all text markup gen no matter the color of the underline

(2) the red color of the markup text gen

Thank you!

Hi HarveyLiu,

Why, you ask? It will export the pages who pointed out the text.

var doc = app.documents;
app.findTextPreferences = null;
app.findTextPreferences.underline = true;
for(var i=0;i

Kind regards

Cognet

Tags: InDesign

Similar Questions

  • is it possible to write a script that will display the script files folder in the tree

    is it possible to write a script that will display the script files folder in the tree

    Yes :-)

    In your previous post, someone suggested to search for the file "SnpCreateTreeview.jsx", because it would just be the asked.

    The script can be found here, just accept the EULA and download the example scripts of Bridge CS3. (For some reason it is not in CS4 samples because as far as I know)

    Here's a version with small changes, it is up to you to point the script in the folder 'root' right, because this is, needless to C: on PC:

    ////////////////////////////////////////////////////////////////////////////
    ADOBE SYSTEMS INCORPORATED
    Copyright 2007 Adobe Systems Incorporated
    All rights reserved
    //
    NOTE: Adobe permits you to use, modify, and distribute this file according to the
    the terms of the Adobe license agreement accompanying it.  If you received this file from one
    source other than Adobe, then your use, modification or distribution of it is required in advance
    written permission from Adobe.
    /////////////////////////////////////////////////////////////////////////////

    /**
    @fileoverview shows how to use an item in the tree list and how to capture events with
    functions of recall or script registered event listeners.
    @class shows how to use an item in the tree list and how to capture events with
    functions of recall or script registered event listeners.

    Its use


      
      
      

        
    1. Run the extract in the ExtendScript Toolkit (see Readme.txt).
         
    2. Enlarge / reduce the list items
         
    3. Check the JavaScript Console to see the events captured by the elements of the TreeView.
       

    Description


     
     

    Creates two hierarchical list of TreeView items. One is static, with a fixed set of point
    nodes that you can expand and collapse. The other is dynamic; Item nodes are added and removed as
    the need for a view of the file system.
     
     

    The list items in the TreeView control to display the folders and files custom images.  When you add items to the
    TreeView list, type 'article' is used for elements of the leaf and 'node' to the elements of the container.
     
     

    Dynamic TreeView captures events in two different ways. It uses callback functions to capture the
    node to expand and collapse events and selection changes and also registers an event listener to
    capture double-click events.

    @constructor constructor
    */
    #targetengine "session".
    function SnpCreateTreeView()
    {
    /**
    The context in which this code snippet can work.
    @type string
    */
    this.requiredContext = "\tNeed runs in the context of the Bridge\n."

    /**
    The location of this script file system
    @type file
    */
    var scriptsFile = new File($.fileName);
       
    /**
    The location of the file system resource PNG file used to represent folders
    @type file
    */
    this.folderIcon = new file (scriptsFile.path + "/ resources/Folder_16x16.png");

    /**
    The location of the file system resource PNG file used to represent files
    @type file
    */
    this.fileIcon = new file (scriptsFile.path + "/ resources/Story_16x16.png");

    /**
    The root folder that will be used for the dynamic tree
    @type string
    */
    this.rootFolder

    If (File.fs is "Windows")
    {
    this.rootFolder = "C:";
    }
    on the other
    {
    this.rootFolder = ' / ';.
    }
    }

    /**
    Functional part of this code snippet. Creates the ScriptUI window and its components,
    and defines the behavior.
    @return true if the code snippet is executed as scheduled, false otherwise
    Boolean @type
    */
    SnpCreateTreeView.prototype.run = function()
    {

    $.writeln ("about to"run SnpCreateTreeView");
       
    Create the window
    var win = new window ("palette", "SnpCreateTreeView", undefined, {resizable: false});

    Create the Committee for the static TreeView control
    sPanel var = win.add ('Committee', undefined, 'TreeView Élément') static;
    sPanel.alignment = ["fill",""];
    sPanel.alignChildren = ["fill",""]

    Create a TreeView list
    sTv var = sPanel.add ("treeview");
    sTv.preferredSize = (300, 200);
    Add static items to the list, in a hierarchical structure.
    for (var i = 0; i)<>
    {
    sTv.add ("node", "Item" + i);
    for (var j = 0; j)<>
    {
    sTv.items [i] .add ("item", "Sub Item" + j);
    }
    }

    Create the Committee for the dynamic TreeView control
    var dPanel dynamic = win.add ('Committee', undefined, 'TreeView Élément');
    Create a TreeView list
    TV digital var = dPanel.add ("treeview", undefined);
    dTv.preferredSize = (400, 300);
    Create the root node element
    var aNode = dTv.add ("node", "/");
    Pair it with an image of the icon
    aNode.image = this.folderIcon;

    Define a handler for the double clicks
    myOnDoubleClick = Function
    {
    if(e.detail == 2)
    {
    $.writeln ("double click");
    }
    }

    Adds the handler as an event listener to the TreeView element.
    dTv.addEventListener ("click", myOnDoubleClick);

    Keep a reference to this object
    var that = this;

    Define an event handler for when a node is expanded
    dTv.onExpand = function (point)
    {
    $.writeln (item.text + "is now expanded.");
    nextItem var = item;
    var path = "";
    goUp var = true;

    While (goUp)
    {
    path = "/" + nextItem.text + path;
    nextItem = nextItem.parent;
    If (instanceof TreeView nextItem)
    {
    goUp = false;
    }
    }

    Remove all children of this element
    item.removeAll ();

    var Ref = new file (that.rootFolder + path);
    If (Ref instanceof Folder)
    {
    children var = ref.getFiles ();
    for (var i = 0; i)<>
    {
    If (children [i] instanceof file)
    {
    Item.Add ("node", children [i] p:System.NET.mail.MailAddress.DisplayName);
    Item.Items [i] .image = that.folderIcon;
    }
    on the other
    {
    Item.Add ("item", children [i] p:System.NET.mail.MailAddress.DisplayName);
    Item.Items [i] .image = that.fileIcon;
    }
    }
    }
    }

    Define an event handler for when a node is reduced
    dTv.onCollapse = function (point)
    {
    $.writeln (item.text + "is now reduced.");
    }

    Define an event handler for when the selection changes
    dTv.onChange = function()
    {
    $.writeln ("selection changed");
    }

    Display the window
    Win.Show ();
       
    $.writeln ("Ran SnpCreateTreeView");
       
    Returns true;
    }

    /**
    "main program": construct an anonymous instance and run
    as long as we are not unit - test this code snippet.
    */
    If (typeof (SnpCreateTreeView_unitTest) == 'undefined') {}
    new SnpCreateTreeView () .run ();
    }

  • How to write a script for date get to the Clipboard

    Hi experts,

    How to write a script for date get to the Clipboard.

    the date format will be like this:

    05 - may

    respect of

    John

    Thanks guys, thanks Sanon

    I finally use the .bat doc

    like this:

    @@echo off
    for /f "delims =" % in (' wmic OS Get localdatetime ^ | find ".") "") Set "dt = %% a"
    the value "YYYY = % dt: ~ 0, 4%.
    the value "MM = % dt: ~ 4, 2%.

    If MM % is 01 set MM = January
    If % MM == 02 set MM = February
    If MM % is MM value = March 03
    If MM % is 04 MM value = April
    If MM % is 05 MM value = may
    If MM % is 06 MM value = June
    If MM % == 07 set MM = July
    If MM % is MM value = August 08
    If MM % is MM value = September 09
    If MM % is 10 MM value = October
    If MM % is 11A set MM = November
    If MM % is game MM 12 = December

    the value "DD = % dt: ~ 6, 2%.
    the value "HH = % dt: ~ 8, 2%.
    the value "Min = % dt: ~ 10, 2%.
    Set "s = % dt: ~ 12, 2%.

    Echo DD - MM HH % %% % Min | Clip

    It works

    respect of

    John

  • Can someone help me to write a script for Soundbooth

    If I have 50 files in C:\MyMusic and you want to

    Game Volume in Soundbooth CS5 how can I write a script for this?

    The only other way that I saw him do this with a library of that size is by Steve DeKorte SoundConverter. It would be tedious to do, but there is a feature to "normalize volume" on all files being converted. E than another inconvenience is that as long as you "convert" MP3 to MP3, you must save the files "converted" to a different directory. It won't crush during the standardization process.

    I had a library of more than 92 000 songs in 14 000 folders and subfolders 46 000 until last October. I had been there twice to "clean up and mormalize ' it more than six years." The transport entered on the drive that I was preparing to back up everything on DVD, and I have been unable to recover the data on the disks when it happened. I was duly upset when I lost all this music, but as I look back over the last eight months, I had a lot less worries ' tinkering ' with all these files all the time.

  • Using the script for import and export

    Hello

    Can any such a me what is the use of the script for import and export.

    After you move the pages from / to server what is the need to import / export command.

    export/oracle/apps/ap/setup/webui/customizations/site/0/SetupPG - rootdir < destination path > - user < database username > - password < database password > - dbconnection "(description = (address_list = (address = (community = tcp.world) (protocol = tcp) (host = < host name > (port < port id > =))) (connect_data = (sid = < sid >)))".) "

    Thanks in advance,
    Roselyne

    Hi Flo,

    Page and the region are stores in database import/export we really want pages/areas to store in the database.

    Thank you
    -Anil

  • Two part question: 1 How can I write a script for long Division, 2. How can I make my form?

    1. I have a field where I need to write a formula for a division problem: (power/population) / 365.  When I use the simplified field notation I get an error: the entered value does not match the format field.  I want the answer as a number with no decimal point.  If I format the field to 'no format' I don't get an error message but the answer comes with up to 10 digits after the decimal point.  I'd rather have the answer in integer without figures after the decimal point.  How can I write this in the custom calculation script?

    2. on accessibility - I never checked on the display/a Mode and unlocked the Acrobat/PDF compatibility.  Some users do not have a problem by filling out the form, but others are not allowed to fill that PDF/A is enabled for their document.  Is this something on their end?  Or is it something on my end blocking them?

    If you multiply by 100, it appears correctly. But if you need to retain the value of the field, you need to use a script to Format custom instead. If you need help, post again.

  • Write a script for form

    Can someone help me to write a script? What I have is a drop-down list (named Relation1) with three options; Self, spouse and significant other. A subform1 and a Subform2each subforms have the same fields. The user end would first fill all the fields of the subfrom1, and then they came to the drop-down list of the list "Relation1" - say the selection 'self', what must happen, it's fields of subform2 pre-populate with the info to end-users, they typed in the fields of subform1.

    Here's what my hierarchy looks like:

    Form1

    Page1

    PatientInfromation (Subform1)

    FirstName

    LastName

    Address

    Date of birth

    Sex... etc...

    Relation1 - combo

    Gites

    Spouse

    Sig.Other

    PrimaryInurance (Subform2)

    FirstName1

    LastName1

    Address1

    DOB1

    Gender1... etc...

    I have big problems with finding how to write these lines upwards, so if someone could give me a code base, I can understand the rest I don't know. Also, I don't know if I have to use FormCalc or JavaScript. I tried and tried to figure it out by reading questions on the forum for the past 7 HOURS on my own.

    Any help would be much appreacited.

    Hello

    There could be many things - welcome in the world of LC Designer!

    However, there are two ways to sort out what is happening...

    First of all, when you're in the script editor there is a "Check syntax" button above the window. Clicking on this will check the current script. If there is a syntax error that appears red:

    Then, when you are either found form in LC Designer Preview or Acrobat/Reader, then pressing command + J to display the Javascript Console. If there is an error in the form, it will help you to find, interpret and solve - Javascript Console is your friend:

    I am convinced that you will be able to get this working, it will take just a little cooperation.

    I didn't know your form, so here are some suggestions that may or may not be applied:

    1. Name of the objects that you will, this includes pages, subforms, and objects. This makes it so much easier to reference objects in the script.
    2. Try and stay away reserved words to name objects. For example 'null', 'name', 'x', 'h' etc...
    3. If you are in the script editor and you want to reference an object in the script there is a very easy shortcut. Place the cursor on the object and press on/hold Control. The mouse turns into a 'v '. Select the object and the reference will automatically be inserted into the script. The smart real thing is that LC Designer put everything as the reference needed. If the two objects are the same subform, it will put only in the name of the object. If the objects are on different pages, or some subforms are unnamed, then he put in the fully resolved node. You really need to try this; master it. IT WILL REALLY HELP YOU. When you look at the script in my example, I typed all sentence that at all. Just point / control / click.

    If a letter is on the spot or the smallest of syntax errors, the script fails. The tools above will help you.

    Try and stowage, where is the problem and I can help you. It will also help if you can share the form. There are Acrobat.com or other file sharing sites. You can also send me a private message and I will give you an e-mail address.

    Have a good weekend!

    Niall

  • Is it possible to write a script that would change the triangles to circles?

    I have an Excel file that outlines a scatterplot graph - using a logarithmic scale. Because it is not possible to create a logarithmic graph in Illustrator, I imported the graph in Excel to PDF. However, each data point is a triangle, and I would use circles that I created using OBJECT > GRAPH > DESIGN. Is there an easy way to replace the triangles with these circles?

    If you need to see the current file, let me know how to fix it.

    Thank you.

    I don't have Excel here...

    The place could be a clipping mask. Maybe you can only select all clipping masks and remove them (using select > object > clipping mask)

    But it can also be that this clipping mask is crucial for a reason any. Importing PDF you will often get a lot of clipping masks

  • Possibility to write a program for a digital indicator labels

    I see that there is a property node for the digital indicator that you can manipulate the tag with it.  After trying to use this feature, I get an error saying that you can change this functionality during edit mode.  My question is if there is property node to change the text why you can't it programmatically change?

    You must show the legend for the control and hide the label.  You can change the captions at run time.

  • Is it possible to create the formatting for the text box option in Oracle Apex 4.2?

    Hi all

    "I'm trying to create the same form that" ""form DISCUSSION SATRT ORACLE ' and I wanted to know if it is possible to create options for formatting that includes font family, size, indent, style etc,. as shown in the picture.

    Oracle version: 4.2

    DB version: 11.2 g

    .APEX_Question.jpg

    Kind regards.

    Hello

    Use Rich Text Editor Item in the choice of an element on the page apex. It has a few modes, see mode that suits you.

    -Sunil Bhatia

  • Is it possible to paint a background for a text in Javafx 8 color?

    Hello

    We are currently developing an application where the user matter a text that is then analyzed for specific keywords. These keywords should then be highlighted in the text so that the user can easily see which words have been found.

    Now with Java 8, we want to use the new TextFlow class for this. I know that I can easily change the font of the words that have been identified, but it would also be nice if I could add a background color for a Visual scanning even easier text. Anyway is how to achieve this using the text class? I know that I could also add a label to the TextFlow, however that would break the flow of the text because sometimes we should also highlight the parts of the text, and that the text extends beyond the end of the line of the linkebreaks will be just hideous.

    I already thought to subclass the text and the background, but simply do not know where I have to change the way the rendering takes place.

    Advice would be appreciated

    OK, for someone fall on this google search: after a lot of digging, I found that the only way to add this feature requires subclassing the non-public API NGText and adding the feature in the renderContent2D method. Unfortunately however the method impl_createPeer in the text is final, while we could add the functionality by subclassing the text and NGText, is not possible to actually use it, see post https://javafx-jira.kenai.com/browse/RT-35801

    That's why I opened a ticket at Jira requesting such a feature: https://javafx-jira.kenai.com/browse/RT-35822

  • I need a custom script for the calculation in a PDF form.

    I am working on a form of commissions airport rental cars with exclusions.  Could someone please a custom for the following script?

    R + C = less the sum of (Ea, Eb, Ec)

    Thank you!

    Under the Simple field of tab notation option calculate enter:

    R + C - (Ea + Eb + Ec)

  • InDesign script for a text of color replace all other lines in a text box

    I have a very long list of names I need to alternate the color CMYK, all other rows value.

    I found this script on another thread to adobe changing the hue of every 3rd line:

    var i, p; for (i=0; i<app.selection[0].paragraphs.length; i++) { p = app.selection[0].lines[i]; if (i%3 === 2) { p.fillTint = 50; } } 

    I tried to change the script to change the value of CMYK, do this:

    var i, p; for (i=0; i<app.selection[0].paragraphs.length; i++) { p = app.selection[0].lines[i]; if (i%2 === 1) { p.colorValue=[0,100,100,0]; } } 

    But using 'colorValue' is not supported. How can I change the script to do all the other lines in a text box to change the value of the color?

    var i, p, color;
    for (i=0; i		   
  • iAuthor question for iBooks text size and PDF print

    I get confused messages. It seems that my default iAuthor text 18 Baskerville - is the best font size to prepare my manuscript? It looks great. Average size printed book is 10-12 points. I also intend to use PDF files to make a 100 printed copies. If I stick with 18 p can I completely reformat the book for this version?

    Just export a copy of your book in PDF and see if you like it or not.

    iBA is not really intended for the production of printed books, so you should check that the PDF files that you get from it are not suitable for this.  Normally, for printing, use an app like Pages designed for that.

  • PDF with editable for Illustrator TEXT export

    Hi guys,.

    Can I export an InDesign to PDF and then be able to someone else with the Illustrator to open it and change its text?

    I make an announcement in the newspapers. I love working with InDesign, which is more flexible for text than Illustrator. My boss wants all the files that are editable by everyone in the office. The rest of the team to use Illustrator. I exported my InDesign file to PDF hi-res print mode which I suppose it save perfectly editable but when I open it with Illustrator text is editable but paragraphs are broken.

    Any solution to this problem? I would love to Illustrator and InDesign to work most commonly between two of them about the text.

    Thank you! ;-)

    Hi SebastiaoV,

    InDesign and Illustrator are very different in terms of ease of use and purpose. As recommended by Bob, you can change the 'text' in InCopy. You can also change the PDF file in Acrobat. I share the InCopy-InDesign Workflow links needed.

    How to create & use Adobe InCopy CC workflows

    Understand a basic managed-file workflow in InDesign

    Kind regards

    OM

Maybe you are looking for

  • "In - app Purchase: may not be completed."

    So, yesterday I made a purchase in-app on the app 'Pokémon go' (2 or 3 points) and today when I tried to make another purchase, the system tells me: "your purchase could not be done: If you need help, get in touch with support of iTunes through www.a

  • Computer of my computer fan runs constantly?

    My computer is a HP Pavilion dv4-1123us Entertainment Notebook Pc. whenever I use any program that increases computer around 40% CPU usage, the fan begins to operate constantly a little noise to very loud noise. I thought that its caused by a program

  • Update the images download Photos problems after 30 December 15

    "Of the photos' on my iMac now won't download pictures from my sandisk memory card, after the update today 30 Dec 15.  Please can someone advise/help?  I tried pictures, then re-opening, closing, but all that happens is very briefly the memory card a

  • How to find the windows xp machine index experience?

    It is really... How to find the Windows experience index on a XP machine. I have this okay on my windows machine 7, but I was wondering how to find it on XP? Thank you

  • I can't open a picture when I use photoshop.

    Original title: C... Hi, I have a problem with my c... whenever I started to work with Photoshop, I can't even open a photo, he said that the scratch disk is full... clean your... I defragment and used CCleaner, releases its just some space and there