Content Management and Capture

 View Only
  • 1.  Set the default properties in an annotation file

    Posted Fri March 14, 2025 09:36 AM

    Want to set default property settings of TEXT annotation when creating a TEXT annotation at a document under ViewONE.

    The following are the required properties of TEXT annotations for default setting as:

    (a) Font type (i.e. such as "Times New Romans" as default)
    (b) Font size (i.e. 10 pt as default)
    (c) Underline (i.e. underline is enabled as default)
    (d) Color of the text (i.e. black as default)
    (e) Bold (i.e. bold is enabled for text as default)

    From ViewONE documentation, it had mentioned to create an annotation file to control the property settings of the annotations.

    But it could not find any reference documentation on how to set the 5 properties (i.e. mentioned above) in an annotation file.

    Please advise how to configure or define those settings in an annotation file.

    Thanks



    ------------------------------
    ITPD CR
    ------------------------------


  • 2.  RE: Set the default properties in an annotation file

    Posted Mon March 17, 2025 05:00 AM

    Hi,

    Have you tried setting Viewer parameters as described here...
    Annotation style - IBM Documentation

    Another option is to programmatically retrieve, update and then re-save the annotation by putting a subscription/event action on the "creation" event.

    If you want to go down this route, the document in this article explains the format of the annotation content element...

    Creating IBM P8 annotations that are viewable through IBM FileNet Workplace or IBM FileNet Workplace XT 

    And this link contains some code snippets using the CE API...

    Working with Annotation Objects - IBM Documentation

    Good luck!

    Dave.



    ------------------------------
    Dave Ward
    ------------------------------



  • 3.  RE: Set the default properties in an annotation file

    Posted Thu March 20, 2025 12:50 AM

    Hi Dave

    Thanks for your information updated.

    For the 1st suggested option (Viewer parameter), I had read the links. 

    I could only find one style parameter of TEXT annotation (i.e. annotationTextColor) that could address one of my five requirements. i.e. Item (d) "Color of text.

    But I could not find any parameter setting which could address the remaining 4 requirements.

    Please advise whether there are any other parameters at Viewer that could serve the remaining 4 requirements.

    Thanks

    Terence



    ------------------------------
    ITPD CR
    ------------------------------



  • 4.  RE: Set the default properties in an annotation file

    Posted Thu March 20, 2025 10:58 AM

    Hello ITPD CR, 

    If all you want to do is create an annotation I recommend you use the CPE API. You will take two steps (1) create your annotation instance (2) associate the annotation to the document object. When you create the annotation the content will be an XML file which you can construct yourself or even easier annotate one document then locate the anno in CPE. Download that content, you will need to change a few fields like the document ID, create date, person that created the anno, optionally the text. I created variables for those fields such as xIDx, when I create a new anno I simply find and replace in the anno text my new values and persist to content engine. BAM done.  Message back if you want some more help with this. 



    ------------------------------
    Jay Bowen
    www.bowenecmsolutions.com
    Medina, OH
    ------------------------------



  • 5.  RE: Set the default properties in an annotation file

    Posted 25 days ago

    Hi Jay

    Thanks for your input.

    We had a Java-based application running at the application server while FileNet and ViewONE Virtual running at another server.

    The Java-based application has integrated with ViewONE for document image operation.

    The application would call ViewONE to show the ViewONE interface at the user client side for view and edit the document image.

    The ViewONE interface would show the toolbar of various icons for annotation (i.e. text, line, etc) creation.

    It is expected to control the default settings of the annotation when the user clicks the icon at ViewONE toolbar for an text annotation creation.

    But different users who used different application functions, might have different annotation default setting requirements. Therefore, it was required to control the setting at the application level.

    Please advise how to configure or implement it.

    Thanks

    Terence



    ------------------------------
    ITPD CR
    ------------------------------