Purushottam,

Please allow for time differences.  You are dealing with an international 
community.

An experiment for you to try is to do it using Apache OpenOffice Writer.  
Create an image in text.  Select it.  Use the bookmark feature to set a 
bookmark.  If it allows it, save it and reload it to verify that the bookmark 
is still there.  See if you can replace the image and have the bookmark be 
preserved.

The ODF specification allows two kinds of bookmark targets.  There can be a 
single point in the document flow that is the target.  That is the common case. 
 There is also a feature to mark the start and the subsequent end of a bookmark 
span.  I think you want the image (anchor) inside of that.

You should be able to see what happens by examining the content.xml file of the 
generated ODT.

Then see how to accomplish that using the OpenOffice SDK.

 - Dennis

-----Original Message-----
From: purushottam kumar [mailto:purushottam.ku...@pankanis.com] 
Sent: Thursday, March 12, 2015 23:16
To: dennis.hamil...@acm.org
Cc: dev@openoffice.apache.org
Subject: Re: Need help on bookmark writter

Hi Dennis,

Thanks for your quick response.

Actually i have a openOffice template in doc or in odt format that may
contains some text, images and tables. There will be some marker in that
doc which i need to replace dynamically for different users using
openOffice SDK.

For text markers i have achieved this task using user fields. In the same
way for images i am thinking to have a dummy images in my doc, so that i
can change that dummy images with a particular user image at runtime.

For this , i am thinking to achieve this task using bookmark, but i am not
sure weather we can fill any bookmark with some image or not.

Please guide me , how can i achieve this.

PS: i am using openoffice sdk for this.

Regards,
Purushottam

On Thu, Mar 12, 2015 at 10:48 PM, Dennis E. Hamilton <
dennis.hamil...@acm.org> wrote:

> Please say more. Are you saying you want the bookmark to be on an image so
> it can be referred to using the bookmark?
>
> Is the problem that the bookmark exists already and you want to replace
> the text with an image?
>
> Did you place the bookmark on a range of text or just at a point in the
> text?
>
> What you cannot do is use an image as the name of the bookmark.
>
> If the image is anchored to text, you can bookmark where the image is.
> You can also use the Navigator to go to images without bookmarking them.
> (See View > Navigator)  You can also link to images without using bookmarks
> to do it.
>
>
>  - Dennis
>
> PS: You have reached a public mailing list on which volunteers contribute
> to questions from other users like themselves.  For any follow-up, please
> reply to dev@openoffice.apache.org where expert users can offer further
> advice and others can learn the solutions others have found.
>
> -----Original Message-----
> From: purushottam kumar [mailto:purushottam.ku...@pankanis.com]
> Sent: Thursday, March 12, 2015 07:51
> To: dev@openoffice.apache.org; dev-subscr...@openoffice.apache.org
> Subject: Need help on bookmark writter
>
> Hello Sir,
>
> I want to replace the content of a bookmark with an image instead of some
> text.
>
> Is this possible in Openoffice?
>
> Please help.
>
> Regards,
> Purushottam
> 9922008483
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to