Index: java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTextrun.java
===================================================================
--- java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTextrun.java	(revision 267190)
+++ java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTextrun.java	(working copy)
@@ -149,6 +149,13 @@
         return new RtfHyperLink(this, writer, attr);
     }
     
+    public void addBookmark(String id) throws IOException {
+       if (id != "") {
+            // if id is not empty, add boormark
+           new RtfBookmark(this, writer, id);
+       }
+    }
+    
     public RtfExternalGraphic newImage() throws IOException {
         return new RtfExternalGraphic(this, writer);
     }
Index: java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfBookmark.java
===================================================================
--- java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfBookmark.java	(revision 267190)
+++ java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfBookmark.java	(working copy)
@@ -59,8 +59,8 @@
      * @param writer a <code>Writer</code> value
      * @param bookmark Name of the bookmark
      */
-    RtfBookmark (IRtfBookmarkContainer parent, Writer w, String bookmark) throws IOException {
-        super ((RtfContainer) parent, w);
+    RtfBookmark (RtfContainer parent, Writer w, String bookmark) throws IOException {
+        super (parent, w);
 
         int now = bookmark.length ();
 
Index: java/org/apache/fop/render/rtf/RTFHandler.java
===================================================================
--- java/org/apache/fop/render/rtf/RTFHandler.java	(revision 267190)
+++ java/org/apache/fop/render/rtf/RTFHandler.java	(working copy)
@@ -335,6 +335,7 @@
             
             textrun.addParagraphBreak();
             textrun.pushAttributes(rtfAttr);
+            textrun.addBookmark(bl.getId());
         } catch (IOException ioe) {
             // TODO could we throw Exception in all FOEventHandler events?
             log.error("startBlock: " + ioe.getMessage());
@@ -550,6 +551,7 @@
                     
             RtfTextrun textrun = container.getTextrun();
             textrun.pushAttributes(rtfAttr);
+            textrun.addBookmark(inl.getId());
         } catch (IOException ioe) {
             log.error("startInline:" + ioe.getMessage());
             throw new RuntimeException(ioe.getMessage());
