コミュニティ

Get resolution value of images 回答済み

Hi,

In the document properties, we can see the resolution like 96*96 dpi/200*200 dpi/300*300 dpi and so on.

How to get this value?(I want to add it into a text field.)

Any suggestion is appreciated. Thanks in advance

-Ivan

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

3件のコメント

  • Avatar
    Permanently deleted user

    Hello,

    You may use the XResolution and YResolution properties of the IPictureObject: Using scripts in ABBYY FlexiCapture > Scripts for customizing processing stages > Objects > IPictureObject

    0
  • Avatar
    Permanently deleted user

    Ekaterina, Hello.

     

    Could you show an example of this script and where it should be written?

    0
  • Avatar
    Permanently deleted user

    Hello,

    Please see the sample:

    //We assume that all document's pages have the same resolution 

    //so we use the first page's (Document.Pages[0]) resolution

    string xResolution = Context.Document.Pages[0].Picture.XResolution.ToString();

    string yResolution = Context.Document.Pages[0].Picture.YResolution.ToString();

    Context.Field("Resolution").Text = string.Format("XResolution = {0}; YResolution = {1};", xResolution, yResolution);

     

    1

サインインしてコメントを残してください。