ImagePut icon indicating copy to clipboard operation
ImagePut copied to clipboard

Is there a way to get pdf's total number of pages?

Open telppa opened this issue 3 years ago • 3 comments

I know there are many ways to do this, but when people use ImagePut, they probably prefer to use the built-in methods of ImagePut.

telppa avatar Dec 11 '21 03:12 telppa

I am thinking that

index = 1 ; first page
index = 2 ; second page
index = 3 ; third page

index = 0 ; All pages

index = -1 ; Last page

If this is the case is it still necessary to get the total number of pages?

loop
    try ImagePutFile({pdf: "1.pdf", index: A_Index})
    catch
        break

I will admit this may take time to implement.

iseahound avatar Dec 11 '21 04:12 iseahound

I agree with this

index = 1 ; first page
index = 2 ; second page
index = 3 ; third page

index = 0 ; All pages

index = -1 ; Last page

maybe no longer need to get the total number of pages.

telppa avatar Dec 11 '21 04:12 telppa

index = 0 ; All pages will be very hard to implement.

iseahound avatar Dec 12 '21 02:12 iseahound