Resource Base
Table of contents

Thanks for downloading Dynamsoft Barcode Reader Package!

Your download will start shortly. If your download does not begin, click here to retry.

DSFileImageTag

The DSFileImageTag class represents an image tag that is associated with a file. It inherits from the DSImageTag class and adds additional attributes.

Definition

Assembly: DynamsoftCore.framework

  • Objective-C
  • Swift
  1. @interface DSFileImageTag : DSImageTag
    
  2. class FileImageTag : ImageTag
    

Methods & Attributes

Attributes Type Description
filePath NSString * The file path of the image.
pageNumber NSInteger The page number of the current image in the file.
totalPages NSInteger The total page number of the file.
Method Description
initWithImageId The constructor of the FileImageTag.

filePath

The file path of the image.

  • Objective-C
  • Swift
  1. @property(nonatomic, copy, readonly) NSString *filePath;
    
  2. var filePath: String? { get }
    

pageNumber

The page number of the current image in the multi-page.

  • Objective-C
  • Swift
  1. @property (nonatomic, readonly) NSInteger pageNumber;
    
  2. var pageNumber: Int { get }
    

totalPages

The total page number of the multi-page.

  • Objective-C
  • Swift
  1. @property (nonatomic, readonly) NSInteger totalPages;
    
  2. var totalPages: Int { get }
    

initWithImageId

The constructor of the FileImageTag.

  • Objective-C
  • Swift
  1. - (instancetype)initWithImageId:(NSInteger)imageId
                       filePath:(NSString *)filePath
                     pageNumber:(NSInteger)pageNumber
                     totalPages:(NSInteger)totalPages;
    
  2. init(imageId: Int, filePath: String, pageNumber: Int, totalPages: Int)
    

Parameters

imageId: The ID of the image.
filePath: The file path of the image.
pageNumber: The page number of the current image in the multi-page.
totalPages: The total page number of the multi-page.

Return Value

An instance of the DSFileImageTag.

Code Snippet

  • Objective-C
  • Swift
  1. DSFileImageTag *fileImageTag = [[DSFileImageTag alloc] initWithImageId:123 filePath:@"Your file path" pageNumber:1 totalPages:10];
    
  2. let fileImageTag = DSFileImageTag(imageId: 123, filePath: filePath, pageNumber: 1, totalPages: 10)
    

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 2.x
      • Version 2.2.10
      • Version 2.0.21
      • Version 2.0.20
      • Version 2.0.10
      • Version 2.2.10
      • Version 2.0.21
      • Version 2.0.20
      • Version 2.0.10
    • Version 1.x
      • Version 1.2.1
      • Version 1.2.0
      • Version 1.1.0
      • Version 1.0.0
      • Version 1.0.4
      • Version 1.0.3
      • Version 1.0.2
      • Version 1.0.1
      • Version 1.0.0
      • Version 1.1.13
      • Version 1.1.12
      • Version 1.1.11
      • Version 1.1.9
      • Version 1.1.8
      • Version 1.1.7
      • Version 1.1.6
      • Version 1.1.5
      • Version 1.1.4
      • Version 1.1.3
      • Version 1.1.2
      • Version 1.1.1
      • Version 1.1.0
      • Version 1.0.0
      • Version 1.0.4
      • Version 1.0.3
      • Version 1.0.2
      • Version 1.0.1
      • Version 1.0.0
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support