[FM11] Print Image Link and Index Markers with specific Character Style

Hello,
I'm new with scripting for Framemaker. I want to export FM docs to RTF so I can import these into InDesign. For the placed images I want to insert a text line that is showing the image link (reference). Besides that I want to show the Index Markers at the mark insertion position with a different Character Style. Can someone help me with that?
Regards, Sjoerd

Hello Sjoerd,
One note about your method to retrieve all linked graphics: this will also process the graphics that might be linked into the master and reference pages. Just to be safe against unwanted side effects you should restrict your list of graphics to the ones in the main flow of your document.
About the tLoc: you are really looking for the anchor of the anchored frame that contains graphic. It is a little confusing that FM calls both the anchored frame and the imported graphic by the same name. Even if you add an anchored frame to the text to put an equation or a text box in your document, the anchored frame will show up in the linked list of graphics in the document. If you do have an anchored frame containing an imported graphic file, you have a list of graphic objects inside the anchored frame, which itself appears in the list of graphic objects of the document.
This function should do what you want to do:
function ListGraphics(doc)
          var aframe = doc.FirstGraphicInDoc;
     while (aframe.ObjectValid()) {
         if (aframe.constructor.name == "AFrame") {
                                        graphic = aframe.FirstGraphicInFrame;
             if ( graphic.type == Constants.FO_Inset )
                                             doc.AddText ( aframe.TextLoc, graphic.InsetFile );
         aframe = aframe.NextGraphicInDoc;
I assume you will also want to remove the anchored frames (the imported image files) from the text. This can be done in the same routine, but you must first catch the following element in the linked list of graphics in the doc before you can delete the current one. Otherwise you will only remove the first and end up with an invalid object. The easiest and safest method to do this is to create an array of elements to be deleted. After ending the while loop, you delete those objects. The full code looks like this:
function ListGraphics(doc)
          var toDelete = [];
          var aframe = doc.FirstGraphicInDoc;
     while (aframe.ObjectValid()) {
         if (aframe.constructor.name == "AFrame") {
                                        graphic = aframe.FirstGraphicInFrame;
                                        if ( graphic.type == Constants.FO_Inset ) {
                                                       doc.AddText ( aframe.TextLoc, graphic.InsetFile );
                                                       toDelete.push ( aframe );
       aframe = aframe.NextGraphicInDoc;
          for ( i = 0; i < toDelete.length; i++ ) {
                         toDelete[i].Delete();
This works on a small test file I created. If you need more support, feel free to contact me: jang at jang dot nl

Similar Messages

  • X-refs and index markers in absolute paths don't work

    A problem has arisen that did not exist before:
    If I have added files to a book using an absolute path, all X-refs and index markers in those files then don't work. The index *generates* without trouble, but if I then try to Alt-click an item in the index that refers back to a file with an absolute path I get the error "Cannot find the file named X. Make sure the file exists." This also means, of course, that the corresponding hyperlinks in a generated PDF file also don't work.
    X-refs and index markers in files added using *relative* paths work okay.
    What is wrong?
    (I use FM9 / Windows 7.)
    Regards,
    Knut Högvall

    Hi Michael,
    Yes, I use 9.0p255.
    No, the files don't have to be on different volumes. They can even be in the same folder (not that they are, but they *could* be; they are in fact in separate folders, but on the same volume). What matters is how I select the file in the File dialog box when I add the file to the book. To get an absolute link, I first click the Network button, select the top volume, and then navigate down to the file. The absolute path is displayed in the book window as \\<volume>\folder\file.fm" while a relative path is indicated by "..\..\file.fm".
    If I add a file using an absolute path it doesn't work; if I add the exact same file using a relative path, it works.
    How do I check the hypertext content in the index?
    Regards,
    - Knut

  • Does InDesign CC XML support Footnotes/Endnotes and Index Markers?

    Hi,
    Does InDesign CC XML support Footnotes/Endnotes and Index Markers already?
    Can anyone give me the list of limitations in XML to InDesign.
    Thanks in advance.

    Hello MW,
    First of all thanks for your reply. Yes I can create an XSLT to change the XML stream ready for import into InDesign template that we have. I have also downloaded the Refoot.js and UnFoot.js. For the footnotes I have already workaround for that, but how about the index-markers and cross-references do you have any idea on how to deal with it?
    Actually I have already XSLT script that will convert XML to InDesign Tagged Text. But our client want us to use the XML embedded in InDesign so they can just export the InDesign back to XML easily. I know that there are limitations in XML to InDesign, but we need to proved to them that using XML is not good to use in this workflow because of those limitations. So I'm looking for the list so I can send to them to tell them that what they want is not doable since there are a lot of things that XML in InDesign can't do.
    We have existing XML to InDesign round tripping workflow; 1) first we have the XSLT that will convert XML to InDesign Tagged text including footnotes, endnotes cros-refeneces and index-markers; 2) once the layout is final will export the InDesign document to HTML; 3) use XSLT script to convert exported HTML to XML. But it seems this workflow is not efficient to them. Can anyone suggest what other workflow for round tripping XML to InDesign.
    Again thank you very much for your quick reply.
    Regards,
    Elmer

  • Share Image,Link and Text to Social Networking App from My Windows Phone App

    Hi,
    I am developing windows phone 8.1 silverlight app where I want to share Images,Links and text to Social Networking App Like Facebook,Twitter,Whatsapp and Instragram.
    In Share content contains A Image of App Icon, A Link of App website and I invitation Text.
    There are Five buttons
    Share by Email
    Share by Facebook
    Share by Twitter
    Share by Whatsapp
    Share by Instragram
    Problems which I faced
    I can not attached image to Email. How it is Possible.?
    I can only open whatsapp from my App. But can not share to this
    I have used Share task but in list of app there is no whatsapp and instragram app ( I know there is no official app for instragram but it is Instragram Beta app)
    Please guide me how can I share my content to all above app

    Please see this sample application:
    https://code.msdn.microsoft.com/windowsapps/Sharing-Content-Source-App-d9bffd84
    You cannot control what appears in the share UI.  The Share UI Will show all applications that have registered to receive the type of content you are sharing.  So if a particular application is not appearing, then it is not registered as a Share
    target for that content type.
    I would run the sample on your phone for the various content types.  it should give you a good idea of which apps are registered for which content type.
    Bret Bentzinger (MSFT) @awehellyeah

  • Broken images links and error in line/column

    HI!
    I am the proud owner of the Adobe Creative Suite 4 (Web Premium) software package and am learning Web Design through the University of Phoenix online (I am a disabled veteran going for my BA in IT)--I am trying to meet my final requirements for the individual assignment (creating a personal 3-page website), but can't get the images to show up and now get an error when trying to re-create the home page to add pages to the menu I added (with Home, Feedback Form, etc. links)--the error says:
    "There is an error at line 64, column 83 (absolute position 3340) [file location]: TemplateBeginEditable tag inside editable region"
    I have searched this and other forums and they keep saying I don't have a proper closing tag, but I can't figure out where it is and need help with that and why my images are not showing up (broken) when I post my files in class for grading.
    I have been using the following link for help so far during my design:
    http://www.thesitewizard.com/gettingstarted/dreamweaver-cs4-tutorial-1.shtml
    But it doesn't help me with the above problems--I would ask my instructor but he is on vacation until Monday--I will attach all my files to this post if someone will be kind enough to help a Dreamweaver newbie--thanks in advance!
    Paul Crider
    [email protected]

    Sorry--here it is (line 64 is close to the bottom and I put it in bold/italics so you could spot it easier):
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Paul Crider</title>
    <link href="twoColLiqLtHdr.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    body, td, th {
    font-family: Comic Sans MS, cursive;
    body {
    background-color: #900;
    -->
    </style>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="twoColLiqLtHdr">
    <div id="container">
      <div id="header">
        <h1><a href="http://www.facebook.com/home.php?ref=home#/criderman?ref=profile"><img src="images/paulborder.jpg" alt="paul border" width="1064" height="488" border="0" align="middle" /></a></h1>
        <!-- end #header -->
      </div>
      <div id="sidebar1">
        <h3 align="center" class="white"><u>My Interests:</u></h3>
        <h3 align="left" class="white">-
          Sports</h3>
        <h3><a href="http://www.neworleanssaints.com/Home.aspx"><img src="images/saintslogoandhelmetgraphic.jpg" alt="saints" width="170" height="211" border="0" /></a>
          <!-- end #sidebar1 -->
        </h3>
        <p class="comicheading"><span class="white">New Orleans Saints</span></p>
        <p class="comicheading"><span class="white"><strong>- Tiki/Retro/50s/60s Culture</strong></span></p>
        <p><a href="http://www.tikiroom.com/"><img src="images/tiki.jpg" alt="tiki" width="252" height="153" border="0" /></a></p>
        <p class="white"><strong>- Movies</strong></p>
        <p><a href="http://www.imdb.com/name/nm0000007/"><img src="images/bogartwithgun.jpg" alt="bogart" width="123" height="157" border="0" /></a></p>
        <p class="comicheading"><span class="white">(especially classic movies--like with my favorite actor, Humphrey Bogart)</span></p>
        <p class="comicheading"><span class="white"><strong>- TV</strong></span></p>
        <p><a href="http://www.bbc.co.uk/doctorwho/s4/index.shtml"><img src="images/drwhos.jpg" alt="drwho" width="176" height="228" border="0" /></a></p>
        <p class="comicheading"><span class="white">(Doctor Who)</span></p>
        <ul id="MenuBar1" class="MenuBarVertical">
          <li><a href="http://www.paulcrider.com/">Home</a> </li>
          <li><a href="feedback.html">Feedback</a></li>
          <li><a href="aboutus.html">About Us</a> </li>
          <li><a href="sitemap.html">Site Map</a></li>
        </ul>
      </div>
      <div id="mainContent">
        <h1 align="center" class="comicheading">About me:</h1>
        <p class="comicheading">I was born and raised and now currently living in Monroe, Louisiana.</p>
        <p><a href="http://www.monroela.us/"><img src="images/monroe.jpg" alt="monroe" width="604" height="402" border="0" /></a></p>
        <p class="comicheading">I am a honorably-discharged veteran of the United States Navy.</p>
        <p class="comicheading">After my military service, I worked as a government and civilian contractor for the military and continued working and travelling around the world until I became disabled and moved back home.</p>
        <p><a href="http://www.facebook.com/criderman?ref=profile"><img src="images/meegypt.jpg" alt="meegypt" width="315" height="468" border="0" /></a></p>
        <h2 align="center" class="comicheading">Objective:</h2>
        <p class="comicheading">I am looking for a part-time position, either paid or voluntary, with an organization that can use my skills and education. </p>
      </div>
      <p>
        <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
        <a href="documents/paulcriderresume.doc">***click here to see my resume***</a></p>
      <p>Contact me:</p>
      <p><a href="mailto:[email protected]">[email protected]</a></p>
      <div id="footer">
        <!-- end #footer -->
      </div>
      <!-- end #container -->
    </div>
    <p> <a href="http://validator.w3.org/check?uri=referer"><img
            src="http://www.w3.org/Icons/valid-xhtml10"
            alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a></p>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>

  • Image Capture and hp scanner with Mavericks OS

    image capture is not recognizing my hp scanner  (or vice versa); does fine with printing to it and scans to email using the hp software.  Mavericks OS 10.9.6

    Image Capture works with scanners that have driver software for Mac OS X. It also works with some TWAIN-compatible scanners.
    To find out if your scanner is compatible with Mac OS X, check with the scanner's manufacturer, or go to the peripheral compatibility webpage at www.apple.com/macosx/upgrade/devices.html.
    If Image Capture doesn't recognize your scanner, be sure to install the software that came with the scanner.
    If that doesn't work, chooses Devices > Browse Devices. Under TWAIN devices, select your scanner, and select "Use TWAIN Interface." Then Click Connect. To learn how to perform scans with the dialog that appears, see the documentation that came with your scanner.
    Check with the scanner's manufacturer to make sure you have the latest software.
    [Source - Apple Help Menu]
    Be sure to also go to Canon's site and download any updates to your printer / scanner in the 'Support' section.
    Hope this helps.
    -Steve

  • Can you create a ToC with nested character styles?

    I'm creating a technical guide document, and for ease of formatting within document creation I've used nesting character styles within the 'Body' paragraph style. I need to reference the second level headings within the ToC, but I since I can only use the 'Paragraph' styles in ToC creation - can I do this? (I'm using InDesign CC)
    The document looks something like this, with the italics indicating the nesting structure and the ** indicating what needs to go in ToC.
    1. Our Story (separate paragraph style, not an issue)
    1.1 Random Title Goes Here ("Body" paragraph style, nested "Heading 2")**
    Body text now, all over here, several paragraphs, etc. ("Body" paragraph style, nested "Body")
    Subheadings - not required in ToC ("Body paragraph style," nested "Subheading")
    1.2 Random Section Title goes here ("Body" paragraph style, nested "Heading 2")**
    More body text, you get the gist. ("Body paragraph style, nested "Body")
    Basically, I need to build my ToC with the Heading 1 and the Heading 2, but Heading 2 is nested in "Body" paragraph style.

    Nested styles are NOT a TOC style function, it is only available in a paragraph style. But when you choose a paragraph style to be written into your TOC based on another Para Style, most likely a headline, you can define such nested styles in this para style.
    But a TOC entry can only include a complete paragraph, a single one. You can make a Para Style, let's name it TOC1 which draws the information from Headline 1, but not for headline 2.
    This TOC1 can include nested styles (or GREP styles).
    Another way to define chara styles automatically is via the TOC style definition. Styles there will override any styles which come from nested and GREP styles. (But this does not necessary mean, that they have no functionality any more, because ID's styles are only partially defined and leave room for other elements of a style to be used together.)

  • Placing an anchor with respective character style

    Hi all,
    Write now i am going to start one new book. In that book, lot of marginal elements are coming in the end of each chapter. That Marginal Notes Paragraph style (Green color") fix with their respective Key Terms (KT or Magenta color) with the object style (Side Box Style) and library name is MN Box . For your information i am showing the Marginal Notes Paragraph style in the end of page. But it comes in the end of chapter only.
    For any clarification i attached the sample page of that book layout.
    Please give your hand to solve this issues.
    Thanks in advance....

    Hi all,
    Can anyone understand what i said in last comments, otherwise i try to say in different format. Because i am new to javascript and forum.
    Kindly provide any idea or script for the above attachment.

  • How do i remove image links to adobe site with my dreamweaver built flash gallery ?

    This is probably a very simple solution, but i can't figure out how to remove the link to the adobe site when you click on the images in my gallery--I built a site in dreamweaver used the insert media option and added my photos---when uploaded, my images in the gallery are clickable and take you to the adobe site...how do i make the images have no link??
    here is an example of one of the pages...
    http://geckoweb.org/coleonyx-brevis.html
    any help is really really appreciated.
    thanks in advance

    Which version of DW are you running?
    There are plenty of jQuery solutions and commercial plugins to create photo galeries.
    Some require hand coding,
    http://www.typeerror.com/index.php/top-10-latest-jquery-image-galleries/
    https://www.google.com.au/search?q=jquery+photo+galleries
    others are point and click inside Dreamweaver.
    http://www.projectseven.com/products/galleries/index.htm

  • Image size and/or cropping with iMovie 9

    I have a video in .mov format that was created by Roxio's Easy VHS to DVD software. The movie is a copy of a 4:3 aspect ratio videotape. When I review the clips from this movie in iMovie, the size and aspect ratio are identical to the original. However, when I move the clips into an iMovie project, the aspect ratio appears to be the same but all of the edges are severely cropped (it's like one used a zoom feature on the image). I get the same result whether I select 4:3 or 16:9 aspect ratio for the project. I have also had this experience with iPhoto -cropping occurs on any photo being printed or exported. I can convert the .mov into a video DVD or any format, without aspect ratio change cropping. But, that conversion doesn't allow me to edit the .mov.
    How do I solve this problem?

    I wish someone could answer this. I'm having the same problem. I imported video from my digital tape camera using iMovie (automatically saved as .dv files). In the clip viewer of iMovie (lower right part of iMovie), they appear whole. But when I drag into a project, the clips are severely cropped, just like the original post describes. It doesn't matter if I set the project to 16:9, 4:3, or 3:2 - the same cropping occurs.
    What's up with this?

  • Podcast, check RSS, image link, and waiting for Apple.

    Hey all, so i submitted a podcast back in September 2011. Just a fun little show that we do about pop culture, movies, and etc. But that is irrelevant...
    OK so could someone check my rss feed, it looks to work fine using the Advanced menu in iTunes and I can subscribe to it, but want a professional(er) opinion.
    Also my icon is not showing up in iTunes or the RSS feed, never has. The dimensions are 300x300 at 72. I have seen recently talk of using 1400x1400. Should i update the image? Edit: ok so i updated the image to the 1400, still no luck in rss or itunes link.
    Finally, my main problem is that I have had no response or acknowledgement from apple. I have tried submitting multiple times, just resubmitted today so /crossfingers
    thanks all for your support, love the communities!
    ps, just noticed that some of the episode descriptions are not showing up either in iTunes.
    Thanks all!

    The second line of your feed reads:
    <rss xmlns:itunes="http://www.zombiefreeradio.com/rss.xml" version="2.0">
    It should read
    <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
    As it stands, iTunes cannot read any of the 'itunes:...' tags, which is why the image, which is correctly referenced, is not being seen by the Store, and why the 'itunes:subtitle' and 'itunes:summary' tags are not showing up.
    Your enclosure tags look like this:
    <enclosure url="http://www.zombiefreeradio.com/ZFRPodcast-0_Pilot.mp3" length="64,837,574" type="FOR AN MP3 FILE - audio/mpeg" />
    The 'length' attribute should be the file size in bytes with no commas.
    The 'type' attribute should read "audio/mpeg".

  • Adjust image width and position along with browser size automatically.

    Hi,  I'm trying to place an image at the left edge of browser window, and the image width is 50% of the browser window size. The similar effect can be found on this website. Lenzing Instruments
    Notice that as the browser zoom out, the image remains half of the width of browser window and align with the right edge of the browser.
    I'm new to Muse. Not sure if it is possible to achieve this effect in Muse. I know Muse can set image 100% width of browser window, but how about 50%, 75% and other user defined proportion?
    Any help will be appreciated!

    Thank you for your reply Sanjit. Could you explain more in details about
    Exact responsiveness cannot be achieved but yes with scroll and pin you can create a similar effect
    I also followed this post Can you create responsive sites with Adobe Muse? It seems that Muse does not support responsive design very well. So I'm not sure how exactly to get an similar responsive design effect in Muse.
    Thanks!
    Yinze
    Design Engineer
    Lawson Hemphill Inc.

  • Why I cannot copy/paste any web links and texts? With Internet Explorer its possible, but with Firefox not.

    When someone sends me a link in MSN and I try to copy it to the adress bar, it wount happen. Same is with textes in Firefox.

    In Firefox 3.6.4 and later the default connection settings have been changed to "Use the system proxy settings".
    See "Firefox connection settings" in [[Server not found]]
    You can find the connection setting here: Tools > Options > Advanced : Network : Connection
    If you do not need to use a proxy to connect to internet then select No Proxy
    Another possible cause is security software (firewall) that blocks or restricts Firefox without informing you about that,.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox.
    See [[Server not found]] and [[Firewalls]] and http://kb.mozillazine.org/Firewalls

  • Printing from iPhone and iPad directly with the USB cable

    Is it possible to connect an iPad directly to a printer via USB to print? Do I need to install any software on my iPad? Will this also work with iPhone?

    you still need a Pc or Mac connected via usb to the printer.
    there are programs that allow you to see fron iOs the printer as Airprint compatible, i dont remember the name of these programs.
    obiously the Mac/Pc and iPhone /iPad should be on the same wifi network

  • Image size and stacking problem with FF12 even in safe mode. Images are 5x the right size and overlayed on top of other pictures or text. how to fix?

    OK this problems limited to Facebook only. When logged in FF12 the entire page is scrambled. The pictures are stacked over each other and are 5 to 6 times the size their supposed to be. I have tried everything I could think of to fix this it even runs like this when in safe mode. I have uninstalled all plugins and all extensions I have uninstalled and even tried back dating FF. it's still so massively out of proportion that you can't do anything. .even when zoomed out 3x it's so large the pictures are larger than my screen. They are still overlapped so bad you can't do a thing with it. Even worse I uninstalled and installed pale moon and the effects migrated to that browser as well. Only browser I found unaffected by this is IE. Lord knows I don't wanna ever have to go that rout so I'm asking for help. I have a whole list of parsing errors and decoration drops, to many to post. any help would be much appreciated until it's fixed I'm stuck with IE. Chrome wont work with the software I run only IE or FF will.

    -> press '''CTRL''' + '''0''' (zero) to '''Reset''' Zoom
    * For details, see this article -> [[How do I use Zoom?]]
    Check and tell if its working.

Maybe you are looking for

  • Need help to read and write using UTF-16LE

    Hello, I am in need of yr help. In my application i am using UTF-16LE to export and import the data when i am doing immediate. And sometimes i need to do the import in an scheduled formate..i.e the export and imort will happend in the specified time.

  • How do I transfer music from one Apple ID to another on an iTouch?

    My mom bought some songs with her Apple ID that I want to transfer to my own iTunes library. I've done this before because I got a bunch of music from my dad's Apple ID that I had bought when I was sharing with him, but now I can't figure out how to

  • How can I get my materials back into EBP 5.5?

    I have executed an initial replication of a single material into a clean EBP 5.5 (SRM 5.0) , i.e. no product master has ever existed After changing MATERIAL filters in R3AC1 and afterwards replicating using R3AS I managed to get more materials into t

  • Sql forms in oracle 9i

    Hi All, How to install and invoke forms in oracle 9i. we are using oracle 9.0.1 on sun solaris 8. thanks a lot, Best Regards, ShravanaKumar.

  • Client

    hi friends, could u plz tell me how to create a new client in sap???? ie.i installed sap in my system now the client which i'm working is 800, suppose i want to create client 810 And to log on......then only i can practise the cross applicaions.....p