How to make a block of text link?

Hello

I'm generating PDFs to an xml file by loading the xml into a predefined format.

Code example

cstrInddFile = marked Server.MapPath("~/Indesign_XML/DesingTemplate.indd")---contient palceholders
cstrXMLFile = Server.MapPath("~/Indesign_XML/item.xml")
myInDesign = CreateObject ("InDesign.Application.CS4")
Var objDoc As InDesign.Document = CType (myInDesign.Open (cstrInddFile, False), InDesign.Document)
objDoc.ImportXML (cstrXMLFile)

objDoc.Export (idExportFormat.idPDFType, "D:/Test4.pdf")

Problem: the pdf file is created but contains a page, how it will display all the data in the xml file.

My sample xml is (I have tagged the textframe with tag story)

< NewDataSet >
< Story >
< table >
< > 34 ProductId < / ProductId >
< > 267 ItemId < / ItemId >
< /table >
< / history >
< / NewDataSet >

Please answer someone.

Hi Nishatry,

After loading the XML, you must follow the following steps to resolve this problem.

1 beginning Page numbers form XML elements.

2. Add the number of pages required.

3. link text frames by [myDoc var = app.activeDocument; myDoc.pages [0] .textFrames [0] .nextTextFrame = myDoc.pages [1] .textFrames [0];].

4. place the XML to the first image [myDoc.xmlElements [0].placeXML(myDoc.pages[0].textFrames[0]);]

5. can export to PDF

Kind regards

River. P

Tags: InDesign

Similar Questions

  • How to make a sortable Gallery text links?

    I would like the possibility to display all text links, or only those 4 or 5 separate categories. Basically a sortable Gallery, with text links only.

    Also, is this easy to maintain? Can I add new links per day which will appear at the top of the list?

    No matter what widget out there for this?

    MUCH APPRECIATED!

    It is not possible in Muse without listing them manually.

  • How to run the AP div text link?

    Dreamweaver CS 5.5 site.  I then place a lot of images in the middle of the text uses a lot of AP div tags.  I added an AP div with text inside.  I want this text to post a link to a video so I have highlighted the text and creates a link to an external page (youtube video), but the link does not work.  (I also tried to make a new separate page within my website which was held only as video and by linking to THAT, but the link does not work like that either.)

    I searched the internet for two days now to find answers about how to make the link work, or what I am doing wrong.  I tried just add text to the page (without AP div) and to that, but with all the images in the AP div tags, that I have on the page, I can't move the text where I need on the page - it just seems in a long column to the left of all the other AP div

    Any help on this is accepted with gratitude!

    (If you want to display - website is www.shutupandsign.com--le ' see the announcement "link for video of sign-Christmas song)

    Thank you!!!

    Marty

    (On Mac OSX)

    Line 321 of your HTML file:

     

    Delete this for your link to work. It sits on top of the Div "see the announcement", this does not affect the 'cliquabilite' of this div.

    Also, I noticed your document uses a large NUMBER of spacers - he is very old school and is not necessary. In addition, APDivs are not necessary and are not at all necessary. You can use normal DIVs and use the CSS position property to position elements on the page either relatively or absolutely to the document.

    Come to your real location, if you remove the line 321, as mentioned above, the link will work, but your alignment will go for a draw. Realign the 'foot' again!

    Also, you have a lot of conflicting values of z-index. Use them only to the extent necessary, not throughout your code.

    Also go through your document the W3 validator and correct errors: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.shutupandsign.com%2F&charset=%28detect+ automatically % 29 & doctype = Inline & group = 0

    Sure seems to me that you have tons of corrections on the site!

    Good luck

    -ST

  • How to make an animated light text?

    I just downloaded AE and I wanted to know how to make a light text. Can someone help me on this, I need for advertising.

    Create the text, apply the Glow effect.

    Mylenium

  • How to remove the underlining on text links in Muse...

    Hello

    Someone knows how to remove the annoying underlining of text links in Muse. I of course, my link to have no underlining - Muse who works, but does not work once online style.

    Even better - nobody how to create a style of hover through Muse? I used to do it via Dreamweaver without problem - but have had no luck with the Muse so far.

    And is it possible to style 2 links to text in a sentence? It seems to only be able to style the entire sentence rather than just links

    If anyone can help?

    Laura

    Not to worry - it worked!

    For someone who does not know, go to file/Site properties and click on the text tab. Its all here!

  • How to make a field of text not seen when loading a page?

    I have a form that contains a text field.  I don't want one of the text fields to display until a javascript condition is met.  I don't know how to make the text field is not visible by default.  How is that possible?

    Hello

    You will need to change the id text box and the CSS to hidearea for your script work.

    PZ

  • How to make a web address (text) clickable?

    If I copy and paste a Web site address as a message into Yahoo mail, it is not clickable. t wasn't OK on Windows XP, Windows 8.

    There is usually a bar of buttons with buttons for formatting such as Bold and Italic text just above the text area where you compose and edit the text of the message.

    This toolbar can also have a button to activate a clickable hyperlink text link (look for a string like button).
    You can select the link text and click on this button to activate the link into a clickable hyperlink.

    If you can not find the button, and then move all the to check the ToolTip of each (for example to insert a hyperlink).

  • How to replace a block of text by an .ai file?

    Hello

    I am writing a javascript script Illustrator open a file's get a block of text in the layers/pageItems by its content, then replacing it by a placedItem to the incorporation of another file .ai (shape slightly).

    I managed to get the pageItem and to create the placedItem in this way:

    ...
    var item = mainGroupElement.pageItems[i];
    if(item.contents == 'X') {
      $.write("X found\n");
    
      var walkingManFile = File("D:\\walking-man.ai");
      var walkingManItem = mainGroupElement.placedItems.add();
      walkingManItem.file = walkingManFile;
      walkingManItem.embed();
      var scaleX = item.width / walkingManItem.width * 100;
      var scaleY = item.height / walkingManItem.height * 100;
      walkingManItem.resize(scaleX, scaleY, true, false, false, false, 100, Transformation.CENTER);
      var deltaX = item.position[0] - walkingManItem.position[0];
      var deltaY = item.position[1] - walkingManItem.position[1];
      walkingManItem.translate(deltaX, deltaY, true, false, false, false);
      walkingManItem.trace();
    
      item.remove();
    }
    
    

    'element' typename is TextFrame.

    'WalkingMan' form is well drawn, but not translated and resized at all. However, scaleX, scaleY, deltaX deltaY values seem to be good.

    Anyone know what I'm doing wrong here?

    I'd appreciate any help on this!

    once incorporated, walkingManItem no longer exists (like placedItem), then the reference is lost. Get a reference to the new article created by the embed() method and proceed to your script.

  • How to select a block of text to the Script name?

    Hello

    I have listed the text block in the code below,

    UIDRef uidreference = stories->GetNthTextModelUID(0);

    InterfacePtr<ITextModel> TheTextModel (uidreference, UseDefaultIID());

    if (TheTextModel is NOTHING)

    Break;

    IFrameList * Frames = TheTextModel->QueryFrameList();

    if (Frameworks is NOTHING)

    Break;

    AFrameUID UID = images->GetNthFrameUID(0);

    I need to select the block of text by Script name (Windows-> Utitities-> Script title).

    Please suggest the solution above the problem.

    Try,

    InterfacePtr script (content, UseDefaultIID());

    If {(script)

    ScriptLabelValue = script PMString-> GetTag();

    CAlert::WarningAlert (scriptLabelValue);

    }

  • How to make simple animation "the text scrolls upwards?

    Hi all

    I have not found a tutorial how to use key frames to make a simple animation, where the text flows from the bottom at the top of the screen. Problem I have is that I want to use this kind of animation, a lot of times and the length/size of the text varies a lot.

    Can someone provide a link please?

    Would be nice, thanks.

    In Premiere Elements, choose title-> new title-> by default to roll. In the monitor Panel, you will now be able to add your text. If you have a lot of text and it disappears from the screen of the monitor, it played very well all the text will still roll in the display when.

    Right, in the properties panel, you can choose your font, size, etc... Also in the properties of the Panel is a little icon called Options to conduct vertical / where you can customize your settings to roll as having the text remains for a while before leaving, etc...

    If you want to increase the amount of time it takes to go the text, right click on your title element in the timeline and use the time stretch tool.

  • How to make a word in a link to a website under Mac OS 10.11.6?

    I have a word or two in a link to a Web page the merchant products.  How do Mac OS 10.11.6?

    Where is the "word" you want to make a link? Everything depends on the application of "the word" is.

  • How to make the menu header text open an accordion panel footer that develops upward on the content of the page?

    I have a site where the footer information page in an accordion panel that opens on the content of the page to the footer, and when you click on the "label" of the accordion panel again once it closes. My footer information contains the contents of my "INFO" button in my menu header (which is just text).

    I also have my "INFO" button in the header menu to open this Panel if clicked on accordion. So if you click on the "Expand ^' (aka accordion label) on the footer of site the accordion opens/closes and also if you click on the 'INFO' text in my headers of the accordion opens/closes menu."


    This link (Bootstrap accordion / collapse with extract of buttons - L4Iph34uXb) shows what I would like for my site to do. I wouldn't need actual button 'Close' since the label malaccaaccordian said 'hide' and can be clicked on close. Just need the Open button. Do not know how to proceed in Muse where I built my site.

    It is very clear and I'm just not see him or impossible? Help! Thank you

    my site: www.mobodyworks.com

    It should logically connect different regions or intermingle respective the makings of jQuery code snippets. Your only option with Muse would be to attribute the same IDS for triggers and targets, so that they meet each other in the same key, but unfortunately you know how such things when the site is published. Otherwise I don't think you could do it, unless there is a compatible widget Muse for her.

    Mylenium

  • How to name a block of text to use textFrames.getByName?

    I think it's a pretty simple question, but I can't find examples explaining how to name the text block, so I can use the getByName feature.

    Right now I'm using a loop for to go through all the text frames and find a corresponding to a text string, but I am afraid that by random chance, that same text string will get used in a graphic and the script will change the incorrect text.

    I found this in an old NET, but couldn't find out how to apply the name to the text box. Extract the data from Excel to Illustrator javascript or vbscript

    Thanks in advance!
    CW

    Figured it out! I can quote the textframe in the layers panel so I show details for the layer that the textframe I want feeds. It defaults to the content of the textframe unless you call it in the layers panel, that's why when I tried to find a name, I wouldn't get a! Once I changed it on the layers panel, I could call him by his name! Sussed this out of one of your previous posts of Carlos, so thank you again for all that you give on these forums!

  • How to make the site root-relative links work in DW and the server?

    See details on buggy behavior DW image link, below. My question is:

    (1) how the site root-relative links work in DW and the server? Or...

    (2) how to reliably automate change of hundreds of links relative to the root of the form

    /images/image.jpg relating to the document?

    In other words, to

    .. /images/image.jpg or

    .. /.. /images/image.jpg or

    .. /.. /.. /images/image.jpg etc... According to the location of the directory.

    The old format (/images/image.jpg ) used to work properly in my previous Setup of DW 8 but appear grey in DW after 'redevelopment' of mac cs5.5 DW. (they look good on the server, but it is difficult to change the image-heavy pages locally when they are all gray).

    I tried to change the files to how DW creates relative links root now:

    /public_html/images/image.jpg, which is a flow of root very easy, attractive, since there is a one-to-one mapping. These look great in DW, but are detailed on the server!

    I looked at the "Advanced" site configuration, and it seemed that it would be possible for the nuke part /public_html/ of my server info... but it also seemed that there was the potential to do damage, modification of these parameters, which are automatically generated from our server connection settings, which seem to work.

    The "links from the document / site root" toggle... did change how DW interprets existing links, or simply change the value by default when you add a link?  I did 80% of the file... before paper links I wondered if relative to the root is not better?

    Of course, it seems less ambiguous for all these pictures if theres a way to make the relative root works for the mode of creation of DW, DW link checking and server.

    Summary of the buggy behavior: (see the test with images here)


    'old style' link of the root of the site

    /images/img_book/WScover120x150_NEW.jpg

    Design veiw in DW: broken (grey w / broken icon)

    Check DW a link: "external link" (i.e., unverifiable, + file might appear orphaned)

    Browser: good

    Ease of switching: n/a (existing format)

    'new style' link site root

    /public_html/images/img_book/WScover120x150_NEW.jpg

    Design veiw in DW: good

    Link check in DW: good

    Browser: broken

    Ease of switching: easy

    Link to document

    .. /.. /images/img_book/WScover120x150_NEW.jpg

    Design veiw in DW: good

    Link check in DW: good

    Browser: good

    Ease of switching: hard (how to automate)

    Absolute link

    http://www.oasisdesign.net/images/img_book/WScover120x150_NEW.jpg

    Design veiw in DW: broken (grey w / broken icon)

    Link check in DW: external (i.e., unverifiable, + file might appear orphaned)

    Browser: good

    Ease of switching: n/a... not a real option

    Thank you!

    Similar discussions on ' / '.

    Think of your site definition is set up wrong.  public_html should not be to anywhere in your local site.  It is up to your remote site under the directory root definition.  See screenshot.  In my example, the root directory of the server is htdocs /.  This is where you put public_html

    Nancy O.

  • How to make a formatting of text tools developer oracle suite 10 R2

    Dear Oracle Expert,

    It's my configurations:
    ===============
    (1) OS-> windows 7 ultimate (32 bit)
    (2) oracle Developer Suite 10 R2
    (3) oracle Database 10 G

    I create this form , but I want to it this way. So I can format the text in the text box, such as BOLD, italic, link url etc.

    How can I do this using Oracle Developer suite 10 R2.

    Best regards
    Mnanauk

    Hello

    Try checking this tool...

    http://www.degenio.com/Frite/

Maybe you are looking for