Import Html text and convert to InDesign tags

Hello everybody,
The script receives a JSON with text (html markup: headers <h1>, <b></b>, new line characters, ...).
I have to save the converted text into a temp text file and then do .place() into a text frame. That's the only way it can recognise new tags.
//text and contentArea are defined previously.
var convertedText = convertTags(text);
var convertedTextFile = new File (FILE_PATH + "/Temp/convertedTextFile.txt");
convertedTextFile.open('wr');
convertedTextFile.write(convertedText);
convertedTextFile.close();
contentArea.place(convertedTextFile);
function convertTags(htmlTaggedText){              
     var inDesignTaggedText = "<ASCII-MAC>\n" + htmlTaggedText.replace("<h1>", "<ParaStyle:Heading 1>").replace("</h1>", "");
     return inDesignTaggedText;
General question is, whether there is any more elegant solution to this?
Thanks in advance

Hello everybody,
The script receives a JSON with text (html markup: headers <h1>, <b></b>, new line characters, ...).
I have to save the converted text into a temp text file and then do .place() into a text frame. That's the only way it can recognise new tags.
//text and contentArea are defined previously.
var convertedText = convertTags(text);
var convertedTextFile = new File (FILE_PATH + "/Temp/convertedTextFile.txt");
convertedTextFile.open('wr');
convertedTextFile.write(convertedText);
convertedTextFile.close();
contentArea.place(convertedTextFile);
function convertTags(htmlTaggedText){              
     var inDesignTaggedText = "<ASCII-MAC>\n" + htmlTaggedText.replace("<h1>", "<ParaStyle:Heading 1>").replace("</h1>", "");
     return inDesignTaggedText;
General question is, whether there is any more elegant solution to this?
Thanks in advance

Similar Messages

  • Printing html text and font styles

    Hello,
    when I try to print html text in serif with italic or bold text style the output on a printer incorrectly shows the bold and italic parts in arial or something. Underlined text is printed correctly.
    The font is rendered correctly on a JEditorPane.
    There were some issues with html rendering in java (e.g. Bug IDs 4331766, 4160605, 1235430, 4141537) but as these bugs are closed/fixed in earlier jdk versions, and i found no hint that anyone else has experienced such problems, i may be doing something wrong?
    Regards,
    Dirk
    My Configuration: Windows 2000 (German), JDK 1.5.0_12
    For testing purposes i use the following:
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.awt.print.PageFormat;
    import java.awt.print.Printable;
    import java.awt.print.PrinterException;
    import java.awt.print.PrinterJob;
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import javax.swing.JEditorPane;
    import javax.swing.JFrame;
    import javax.swing.RepaintManager;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.Document;
    import javax.swing.text.html.HTMLEditorKit;
    * QDH (Quick and Dirty Hack) Test
    public class PrintTestPane extends JEditorPane implements Printable {
       * shows printDialog and starts printing
      private void print() {
        PrinterJob job = PrinterJob.getPrinterJob();
        job.setPrintable( this );
        if ( job.printDialog() ) {
          try {
            job.print();
          catch ( Exception ex ) {
            ex.printStackTrace();
        else {
          System.out.println( "Aborted" );
       * from Printable Interface: renders a page
      public int print( Graphics graphics, PageFormat pageFormat, int pageIndex )
          throws PrinterException {
        Graphics2D g2 = (Graphics2D) graphics;
        RepaintManager.currentManager( this ).setDoubleBufferingEnabled( false );
        Dimension d = getSize();
        double panelWidth = d.width;
        double panelHeight = d.height;
        double pageWidth = pageFormat.getImageableWidth();
        double pageHeight = pageFormat.getImageableHeight();
        double scale = pageWidth / panelWidth;
        int totalNumPages = (int) Math.ceil( scale * panelHeight / pageHeight );
        // Check for empty pages
        if ( pageIndex >= totalNumPages )
          return Printable.NO_SUCH_PAGE;
        g2.translate( pageFormat.getImageableX(), pageFormat.getImageableY() );
        g2.translate( 0f, -pageIndex * pageHeight );
        g2.scale( scale, scale );
        print( g2 );
        return Printable.PAGE_EXISTS;
       * @param args
      public static void main( String[] args ) {
        PrintTestPane testPane = new PrintTestPane();
        HTMLEditorKit kit = new HTMLEditorKit();
        Document doc = kit.createDefaultDocument();
        try {
          kit.read( new ByteArrayInputStream( htmltext.getBytes() ), doc, 0 );
        catch ( IOException e ) {
          throw new RuntimeException( e );
        catch ( BadLocationException e ) {
          throw new RuntimeException( e );
        testPane.setContentType( "text/html" );
        testPane.setDocument( doc );
        JFrame frame = new JFrame();
        frame.getContentPane().add( testPane, BorderLayout.CENTER );
        frame.addWindowListener( new WindowAdapter() {
          public void windowClosing( WindowEvent event ) {
            System.exit( 0 );
        frame.pack();
        frame.setVisible( true );
        testPane.print();
      private static String htmltext = " <html> <head>  </head>  <body> <font face=\"serif\"> plain <b>bold</b> plain <i>italic</i> plain <u>underlined</u> plain</font> </body> </html>";
      private static final long serialVersionUID = 1L;
    }

    Hello again,
    Update:
    With JRE 6 it seems to work (at least with update 2). Because Java 6 is currently not an option for me: should i file a Bug?
    Dirk

  • Untidy HTML code and strange usage of Tags.

    RH8 HTML
    I've been noticing over pretty much all of my topics that the HTML is quite messy, and various types of tags are being used.
    Best example is the use of both the    <span style="font-weight: bold;"> and the very standard <b> tag being used to both achieve bold text, the same is occuring for italic text.
    sometimes this is happening at the same time, example:  <b><span style="font-weight: bold;">Form Builder</span></b>
    I'm using either CTRL+B or the Bold icon in RH to set off the bold text, and it seems to pick whichever tag it wants at random.
    does this happen for everyone....is there anyway to lcean this up automatically somehow....I'm not looking to edit this all manually, and if its not broken I'm not going to try, but I like things to be clean, and this is not clean at all.
    Thanks,
    Nick

    Hi,
    <b>,<i>,<small>, etc are not (yet) decaprated in HTML and XHTML F,T,S. See http://www.w3schools.com/tags/tag_font_style.asp, although I think that it's sensible to avoid these tags altogeher.
    My solution to this untide HTML is avoid inline styling and above mentiond tags altogeher. Personally, I use span classes for every use, even though separate uses have the same styling, such as field names, page names, paramaters, etc. By creating a separate class for every use, you insure that you can easily change the style of a specific type.
    This means ofcourse a rather large style sheet and you cannot use the styling options in RoboHelp itself. But once you're used to that, it actually saves you a lot of time. I've had to change some specific styles more than once and it's much easier to to change a style sheet, than change hundreds of topics with a Find and Replace or by hand.
    Greet,
    Willam

  • Is it possible to import html files and export them as scorm?

    Hi,
    is it possible to import html files (like a website) and export them as a SCORM compatible ZIP file?
    Thanks!

    You can embed html pages in a Captivate slide and they are included in the SCORM zip file when you publish, is this what you mean?

  • Import document text and subtotal lines

    Hello,
    Is it possible to import text and subtotal lines in documents with DTW?
    I can't find any template to do that.
    Thank you !
    Thibault

    Hi Thibault Romieu
    Unfortunatly you can't. The DI API does not have the facility for this. The DTW uses the DI API so it will not be able to do it. You can try making a item that is a sales and purchase item and change the description as you feel, but make sure no one writes values in the price column.
    Hope this helps

  • SonicStage/Atrac3 files--How do I import these files and convert them??

    This is my problem.
    I used to have SonicStage, I no longer do, but I found some of my old CDs that I made using that program, but the atrac3 files(I believe that's what they're called) aren't compatible with Mac, so now what do I do? I've never converted anything in my life, are there any apps I could download that will rip the unreadable files from my old CDs and convert them into usable mp3 (or whatever) files?
    This is all very foreign to me and any advice would be greatly appreciated.

    Re: SonicStage for Mac

  • Importing xml text and menu

    I am just trying to get my head around Flex by building a
    simple application.
    What I have at the moment is index.mxml that has an
    ToggleButtonBar in it and a ViewStack that lists the three menu
    options in the ToggleButtonBar. Clicking each of the buttons in the
    ToggleButtonBar opens a new mxml either PageOne.mxml, PageTwo.mxml
    or PageThree.mxml (by wiping up and down). This all works and I
    have managed to style and position the elements as I want them and
    I have activated the history on the 'pages'.
    What I would like to be able to do is populate the ViewStack
    data from an external xml file (e.g. menu.xml) . I would also like
    to populate the sub-mxml files with data from another xml file
    (e.g. content.xml) where this would hold the panel's title and a
    paragraph of text into something like a textarea.
    I have managed to populate xml data into a datagrid on
    another test application, but I can't see how this can work with
    panels.
    Hopefully once I have grasped the basics on how Flex
    applications import data I can teach myself how to progress things
    to do other things.
    Thanks in advance.

    I tried writing a tiny bit of xml - something like this:
    <xml id="test">
    <root>
    <menuitem>hello</menuitem>
    </root>
    </xml>
    Then a script that creates a new button (which works). But I
    have tried pulling in the data from the xml file to add to the
    button like this:
    myButton.label = test.root.menuitem;
    But it doesn't work. If I put some text in quotes it does
    display. The problem is the fact that I am not pulling in the data
    from the xml.
    Although this isn't the code I am using, how would this
    snippet of Adobe's code be adapated to add text from an xml
    document to poulate the button's label?
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    horizontalAlign="left">
    <mx:Script>
    <![CDATA[
    import mx.controls.Button;
    public function addButton():void {
    var myButton:Button = new Button();
    myButton.label = "New Button";
    myHBox.addChild(myButton);
    ]]>
    </mx:Script>
    <mx:HBox id="myHBox">
    <mx:Button label="Add Button" click="addButton();"/>
    </mx:HBox>
    </mx:Application>

  • DataGrid, HTML Text, and WORD WRAPPING

    I have a datagrid, with 2 columns:
    - comment
    - date
    The dataprovider that feeds the datagrid is an array
    collection, with each object containing the following fields:
    - comment
    - date
    - viewed
    What I want to do is BOLD the comment cell if the comment has
    not yet been viewed. What I first tried doing was to just insert
    the <b></b> tags on the server and then feed them up to
    Flex. So here's the code that I had tried to do this with:
    <mx:DataGridColumn>
    <mx:itemRenderer>
    <mx:Component>
    <mx:HBox>
    <mx:Label htmlText="{data.comment}" />
    </mx:HBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    This works, but I lose the word wrapping for long comments (I
    have wordwrap="true" defined on my DataGrid).
    Then I tried changing my approach and doing something a
    little more simple to try and preserve the word wrapping, like
    this:
    <mx:DataGridColumn dataField="comment" width="100"
    wordWrap="true" fontWeight="{(data.viewed==0 ? 'bold' : 'normal')}"
    />
    Yet that doesn't seem to work either, it appears to just
    completely ignore everything... no bolding whatsoever.
    So my question is: what's the best to to control the BOLDING
    of a DataGrid cell while at the same time retaining the word wrap
    features?
    Thanks,
    Jacob

    <mx:DataGridColumn>
    <mx:itemRenderer>
    <mx:Component>
    <mx:HBox>
    <mx:Label htmlText="{data.comment}"
    wordWrap="true" height="100%"/>
    </mx:HBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    You might also have a little more luck working with a
    TextArea

  • Importing CSV file and converting to an Array

    Hi all,
    I'm working on a site that is importing a published CSV (comma seperated values) via actionscript 3.0 URLloader().  Right now I'm just trying to get actionscript to successfully input the imported data from the CSV into an Array, so the CSV file has only 1 cell which contains "athleticMaroon,charcoal,colonialBlue,kellyGreen,fullColor".
    Here's the code I'm using:
    //create new array
    var shirtLiveIntense_btn_Colors:Array=new Array();
    //run CSV data import
    URLLoaderCSV();
    shirtLiveIntense_btn.addEventListener(MouseEvent.CLICK, selectingLogo);
    function selectingLogo(e:MouseEvent):void{
              trace ("logo selected");
              var colorButtons:Array=this[e.currentTarget.name+"_Colors"];
              for (var i:uint=0; i<colorButtons.length; i++) {
                        colorButtons[i].ivar=i;
                        colorButtons[i].addEventListener(MouseEvent.CLICK, shirtColorOption);
    //CSV data import function
    function URLLoaderCSV() {
                var loader:URLLoader = new URLLoader();
                configureListeners(loader);
                var request:URLRequest = new URLRequest("https://docs.google.com/spreadsheet/pub?hl=en_US&hl=en_US&key=0AlJnOKOffTSxdFk0RVlEUTVHeF9 DMHZfZ0JzSkJjZFE&single=true&gid=1&output=csv");
                try {
                    loader.load(request);
                } catch (error:Error) {
                    trace("Unable to load requested document.");
    function configureListeners(dispatcher:IEventDispatcher):void {
                dispatcher.addEventListener(Event.COMPLETE, completeHandler);
                dispatcher.addEventListener(Event.OPEN, openHandler);
                dispatcher.addEventListener(ProgressEvent.PROGRESS, progressHandler);
                dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
                dispatcher.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
                dispatcher.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
    function completeHandler(event:Event):void {
                var loader:URLLoader = URLLoader(event.target);
                trace("completeHandler: " + loader.data);
                                  shirtLiveIntense_btn_Colors.push(loader.data);
    function openHandler(event:Event):void {
                trace("openHandler: " + event);
    function progressHandler(event:ProgressEvent):void {
                trace("progressHandler loaded:" + event.bytesLoaded + " total: " + event.bytesTotal);
    function securityErrorHandler(event:SecurityErrorEvent):void {
                trace("securityErrorHandler: " + event);
    function httpStatusHandler(event:HTTPStatusEvent):void {
                trace("httpStatusHandler: " + event);
    function ioErrorHandler(event:IOErrorEvent):void {
                trace("ioErrorHandler: " + event);
    Here is the output:
    openHandler: [Event type="open" bubbles=false cancelable=false eventPhase=2]
    progressHandler loaded:57 total: 0
    httpStatusHandler: [HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2 status=200]
    completeHandler: athleticMaroon,charcoal,colonialBlue,kellyGreen,fullColor
    logo selected
    ReferenceError: Error #1056: Cannot create property ivar on String.
              at main_fla::MainTimeline/selectingLogo()
    Examining the output results, I see it is clearly loading the data from the CSV file correctly, but what I think it's doing is importing the data as one string, aka "athleticMaroon,charcoal,colonialBlue,kellyGreen,fullColor", and pushing it to shirtLiveIntense_btn_Colors:Array=new Array().  But, as I see from the error, function selectingLogo(e:MouseEvent) can't process the array because it contains a string.
    If I switch out shirtLiveIntense_btn_Colors.push(loader.data); with shirtLiveIntense_btn_Colors.push(athleticMaroon,charcoal,colonialBlue,kellyGreen,fullColor);, everything works like a charm, but I need the array to be assigned from the dynamic data in the CSV file.
    Can anyone lend a hand in getting the imported stringed CSV data pushed to an accessable array?
    Thanks!

    Thanks kglad for the reply.
    I substituted shirtLiveIntense_btn_Colors.push(loader.data); for shirtLiveIntense_btn_Colors=loader.data.split(","); like you suggested, but I still got the same output:
    openHandler: [Event type="open" bubbles=false cancelable=false eventPhase=2]
    progressHandler loaded:57 total: 0
    httpStatusHandler: [HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2 status=200]
    completeHandler: athleticMaroon,charcoal,colonialBlue,kellyGreen,fullColor
    athleticMaroon,charcoal,colonialBlue,kellyGreen,fullColor
    logo selected
    ReferenceError: Error #1056: Cannot create property ivar on String.
              at main_fla::MainTimeline/selectingLogo()
    I also tried shirtLiveIntense_btn_Colors.push(loader.data.split(",")); and it gave me the following output instead:
    openHandler: [Event type="open" bubbles=false cancelable=false eventPhase=2]
    progressHandler loaded:57 total: 0
    httpStatusHandler: [HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2 status=200]
    completeHandler: athleticMaroon,charcoal,colonialBlue,kellyGreen,fullColor
    athleticMaroon,charcoal,colonialBlue,kellyGreen,fullColor
    logo selected
    TypeError: Error #1006: addEventListener is not a function.
              at main_fla::MainTimeline/selectingLogo()
    Any ideas?
    Thanks for the help!

  • Import folders to Itunes and convert bitrate.

    I have some 400+ folders relating to 400+ albums I have ripped to 320bps.
    This is a Windows XP machine and the folder format is:-
    C:\User\Mp3\Folder 1, C:\User\Mp3\Folder 2.....C:\User\Mp3\Folder 444
    I need to retain the original folder format as they are played from my PC through my Hifi; they are backed up off this machine!
    I want to convert all the files in these folders to 128bps so that I can put them on my 20GB Ipod.
    Every suggestion I have seen seems to mean that I can only do this at file level; opening 400+ folders and selecting the, 4367, files is going to be some task.
    Is there a way that Itunes can import these folders AND convert to 128bps?

    Thank you for your advice.
    I should explain what I want. I have spent the last month or so ripping my CD collection and storing the results in folders of my choice.
    We mainly play the MP3s on our PC using Winamp with the Dynamic Library plugin that allows me to just select a folder which is normally just one album. This means that we don't have to setup play lists to listen to a symphony.
    The Ipod is really my wife's. I use a Palm TX to listen to music on the move. I load MP3s onto SD cards and the Palm will again play a folders worth i.e an album from that.
    So I need to retain the folder structure I have setup on my PC.
    Using Advance > Convert Selection does create a folder structure but not in my way. I creates an Artist folder then a Album folder. I would have to select only the album folders for my Palm; 400 separate selections and I would have to amend every one because my chosen folder name has the Artist or the Composer as the first part of the folder name e.g Beethoven Symphony No 1, Elvis Presley The Collection Vol 1 etc This structure works very well in Dynamic Library and my Palm.
    I have found some software that converts to 128 and keeps my folder structure but it loses some of the Tag information.
    Before I start looking for other software I thought I would see if Itunes can do the conversion. I suppose I was hoping for a button that said keep users folder structure and names!
    Any further advice would be appreciated

  • Can you use html text in flash cc html5 project type?

    I'm attempting to dynamically change font color of various words inside a dynamic text field.
    I have tried both these lines of code below. have you dont this can you correct my code please?
    I'm using flash cc and html5 project type. This was possible in previous versions of flash.
    this.Logger.Log_File.htmlText = "<font color='#000000' size='-1'>"+MyGreatNumber+" "+"</font><BR>"+this.Logger.Log_File.htmlText;
    this.Logger.Log_File.htmlText = "<p style="color:#ff0000">"+MyGreatNumber+"</p><br>"+this.Logger.Log_File.htmlText;

    from the easeljs docs: Please note that Text does not support HTML text, and can only display one font style at a time. To use multiple font styles, you will need to create multiple text instances, and position them manually.
    to resolve, edit text in the js file where it's relatively easy to even use rtl text.

  • Is it possible to import color tints and gradients in AI5?

    I've got a few hundred illustrations to import from FreeHand and convert from black-only art to 4-color process. I've developed a palette of four basic colors, and I want to create and apply selected tints of them (usually 80%, 60%, 40%, and 20%). I also have a gradient that fades from my background color tint to white.
    I built a master file of all these global CMYK colors and their tints applied to boxes as well as my gradient and a handful of graphic and paragraph styles. As a quick method of importing these, I just selected all my sample objects, then copied and pasted them into my convert ex-FH file.
    The master colors came in, as did the the graphic and paragraphic styles, but none of the tints or the gradient.
    What am I missing? Please don't tell me I have to recreate all these tint swatches by hand for every document.
    Thanks for any help you can provide to an Illustrator newbie.

    The ASE export worked fine. The tints are all there, in spite of the warning. I can't see any difference in the behavior of the two types of export.
    Here's more information, as I swithced to working on my laptop at home:
    I placed my ASE library in the art folder of this textbook project, rather than in the default location, so it would be synced with all my other work on this job and not be left behind on my work machine. That worked fine. Also, as I mentioned the ASE library, when opened in Illustrator, does in fact contain all my tints. If I want to put them all into a document's Swatches, though, I can't use the command from the flyout menu "Add to Swatches." Oh, no, that would be what I actually want and what I would expect. All that does is add the four global colors; it ignores all the tints. Instead, I have to select all the colors and tints and DRAG them to the Swatches panel. Fine. Whatever.
    Anyway, in case my earlier allusion to a Colors & Styles panel confused people, it confused me too, today when I went to look for that under the Windows menu to turn it on. Turns out it was the name of the file where I built all my master colors and graphic styles, and hence became the default name of the ASE library I exported. Open that Libary, get a floating panel named Colors & Styles. Simple.
    I'm slowing catching on...

  • Set clipboard content using html text

    Hi,
    I have a html text store in a string variable as mentioned below. I want to set this to the clipboard. But when I set this to clipboard I get the same HTML text and not a readable one.
    private
    var str:String
    = "SALE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;22&amp;nbsp;&amp;nbsp;&amp;nbsp;CASH040&amp;nbsp;07:26&amp;nbsp;AM";
    I tried to create a text area and set clipboard content from that but I am getting an error "TypeError: Error #2007: Parameter text must be non-null."
    I tried like
    var textArea:TextArea = new TextArea();
    textArea.htmlText = str;
    System.setClipboard(textArea.text);
    Kindly help me in resolving this.
    I want to set the readable text to clipboard and not the html text
    Thanks,
    Tamil

    Hi,
    I have a html text store in a string variable as mentioned below. I want to set this to the clipboard. But when I set this to clipboard I get the same HTML text and not a readable one.
    private
    var str:String
    = "SALE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;22&amp;nbsp;&amp;nbsp;&amp;nbsp;CASH040&amp;nbsp;07:26&amp;nbsp;AM";
    I tried to create a text area and set clipboard content from that but I am getting an error "TypeError: Error #2007: Parameter text must be non-null."
    I tried like
    var textArea:TextArea = new TextArea();
    textArea.htmlText = str;
    System.setClipboard(textArea.text);
    Kindly help me in resolving this.
    I want to set the readable text to clipboard and not the html text
    Thanks,
    Tamil

  • HtmlDocument.insertString() no render html text :-(

    I have a chat pane that is a jtextpane.
    When a user writes into the chat i use document.insertString to append the user text.
    This works ok.
    But now, i want to add hyperlinks to the chat pane, so a user could double-click on them and browse on internet.
    So i set a HTMLEditorKit in the textPane.
    When a user writes into the chat i use document.insertString to append the user text....
    But if the text is html, like < html>< b>hello</b></html>
    In the chat pane appends exactly the same: < html>< b>hello</b></html>
    If i want to display the rendered html text i have to execute:
    chatPane.setText(chatPane.getDocument().getText(0,chatPane.getDocument().getLength())); <-- this works ok
    But this solution is more expensive if the text grows. And it is a chat, the text always grows!
    Is there another solution to append html text (and render it) into a jtextpane or jeditorpane ???
    Can i create hyperlinks without the htmleditorkit?
    Thanks in advance.
    jcpa1

    I executed doc.insertString(0,"text",null);
    null is the AttributeSet. But i dont know which attribute set i have to use.
    Please a little help :-(

  • How do I import an InDesign tagged text file into multiple pages and export as .ps or .pdf using Jav

    I have an InDesign tagged text file I've translated from .xml. I need to automate the following steps:
    1 - access specific InDesign template (eg. ABC_template.ind)
    2 - import tagged text file into InDesign
    3 - autoflow text to END of document (normally around 3-5 pages)
    4 - save document as either .ps or .pdf file
    5 - where the input file stub name matches the output stub name (eg., OrigName.txt outputs as OrigName.pdf).
    I would like to completely automate this whole process using JavaScript (because I don't know anyone that knows AppleScript). I've automated the first part using a perl script. I've been trying to find sample snipits of JavaScript that would do one or more of the items listed above, but am having a hard time finding what I need.
    Please, I'm desperate!! Can any of you InDesign scripting guru's out there help me??
    Thanks in advance!!
    LindaD

    Hi Linda,
    I might be able to help you out. You can contact me by email (click on my user name for the address), or if you post your email here.

Maybe you are looking for

  • Goods picking and Post goods issue in VL02N

    Dear All, Am hving problem in Picking goods and Post goods issue. This is for the Stock Transport Order with Delivery via Shipping Supplying plant is 1000(SAP std,sloc 0001) and Receiving plant 1100(sloc 0001). Sales org:1000 Distrbn Chnnl:10 Divisio

  • Transaction code for maintenance view

    Hi all       I created a maintenance view and I also generated the table maintenance dailog for the view.Now I am changing the values using the transaction code SM30.But I have to create a transaction code for this maintenance view to access it and u

  • I need to Enable the Switch list from menu bar

    Hi Friends, i   copied RFITEMAP Program and created  the custom report and changes have done according to the requirement After executing the custom report it was Disabled the SWITCH LIST Option(GRID/CLASSIC) but  standard report we can change layout

  • Crash: "Access violation (0xC0000005)"

    Hello, One of our programs has crashed (crash of LabVIEW Runtime). The reason was an "Access violation (0xC0000005)" in the LabVIEW Runtime. Because it was an Error of the LabVIEW Runtime, I can not log the Error. This Error occurs only very seldom >

  • Unable to connect to a secure wireless network - Event ID: 8002 Task Category: AcmConnection..., Event ID: 11006, Event ID: 11006

    Hi,  I have a Dell Latitude E6440 running Win 7 Enterprise 64 on a domain. It will connect to any unsecured network, and it can see the secured network in the list when I click the wireless connection icon on the system tray. When I go to manage wire