iseahound / ImagePut

A core library for images in AutoHotkey. Supports AutoHotkey v1 and v2.
https://www.autohotkey.com/boards/viewtopic.php?f=83&t=76633
MIT License
116 stars 24 forks source link

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

Open telppa opened 2 years ago

telppa commented 2 years ago

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.

iseahound commented 2 years ago

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.

telppa commented 2 years ago

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.

iseahound commented 2 years ago

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