Hi,

I am using c# to recognize pictures and export the result using xml file. I need character color as well as background color in my project, so I tried to set XMLExportParams.WriteCharFormatting to true and XMLExportParams.WriteCharAttributes to XMLCharAttributesEnum.XCA_Extended. However, I can only get font color in this case, and I have tried ohter XMLExportParams but in my exported XMLs, I still cannot get background color attribute. How can I set them in my program to get it (background color of line/word/etc)? Thanks in advance.

asked 25 Dec '15, 04:09

okaizi's gravatar image

okaizi
133

Sorry for the delay in the response. I am consulting with the developers concerning your request and I will return with any news as soon as possible.

(31 Dec '15, 11:39) Oksana Serdyuk ♦♦

I am extremely sorry for a long silence. Unfortunately, the determination of a background color for the XML export format is not supported anymore. The documentation will be updated in the next release of the program.

As to possible workaround, you can extract a background color via API:

  • you can either use the GetTextBackgroundColor method of the ImageDocument object;
  • or after the synthesis stage has been performed, the BackgroundColor properties of the Block and ParagraphParams objects become meaningful. And you can use them to get a background color for a single block or a paragraph correspondingly.
link

answered 15 Feb '16, 15:17

Oksana%20Serdyuk's gravatar image

Oksana Serdyuk ♦♦
1.5k16

Thank you so much for the reply!

(15 Feb '16, 19:38) okaizi
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×49
×21
×4
×3

Asked: 25 Dec '15, 04:09

Seen: 745 times

Last updated: 15 Feb '16, 19:38

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal