Is there a API to get the total page of tiff file

rated by 0 users
This post has 3 Replies | 2 Followers

Not Ranked
Posts 4
Points 80
Sammy Posted: 08-01-2012 12:45 AM

thank you!

  • | Post Points: 20
Top 10 Contributor
Posts 903
Points 13,935
Dialogic Employee

Yes, there is. Call ATFX_PGXFER() upon TFX_FAXRECV or TFX_FAXSEND event, this API returns a total number of transferred pages. You can also call it at any time during fax session to see the progress. The nubber of mages remains valid on a device handle until next call to fc_send/fx_rcv

Thanks, Leonid
  • | Post Points: 20
Not Ranked
Posts 4
Points 80

Thanks for your reply. I think I didn't make it clear enough: 

When sending a tiff fax, how to know to progress? I'd like to display the transmission status in the format like:

<current page>/<total page> , like: 1/5 -> 2/5 ... -> 5/5

 

Thanks again.

  • | Post Points: 20
Top 10 Contributor
Posts 903
Points 13,935
Dialogic Employee

Sammy,

For outbound fax sessions it's better to enable TFX_PHASED event. It is enabled by ORing the last argument of the fx_sendfax with DF_PHASED flag. Each time when the page is transmitted this event is sent to the application. The exeption is the last page, upon completion of which TFX_FAXSEND is returned instead.

You can use your own counter, incrementing  it on each TFX_PHASED event, or call ATFX_PGXFER( ) when the event is sent to the application.

Please find the API description and usage examples in the attached document.

Thanks, Leonid
  • | Post Points: 5
Page 1 of 1 (4 items) | RSS