Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
telppa opened this issue Dec 11, 2021 · 3 comments
Open

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

telppa opened this issue Dec 11, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@telppa
Copy link

telppa commented Dec 11, 2021

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
Copy link
Owner

iseahound commented Dec 11, 2021

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
Copy link
Author

telppa commented Dec 11, 2021

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
Copy link
Owner

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

@iseahound iseahound added the enhancement New feature or request label Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants