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

Can I specify page number for output? #480

Closed
michaelthwan opened this issue Aug 24, 2024 · 3 comments
Closed

Can I specify page number for output? #480

michaelthwan opened this issue Aug 24, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@michaelthwan
Copy link

michaelthwan commented Aug 24, 2024

First thank you for your amazing development. I learnt a lot from your project.

Is your feature request related to a problem? Please describe.
您的特性请求是否与某个问题相关?请描述。

I have books of 300-500 pages, so I need to convert it for a long time. (1h+)

Describe the solution you'd like
描述您期望的解决方案

I know that in initialization stage, you will count page_num
Can I specifiy page_num range and only convert that part?
like -r 30 51 as page range
magic-pdf -p {some_pdf} -r 30 51

Thanks again!

@michaelthwan michaelthwan added the enhancement New feature or request label Aug 24, 2024
@myhloli
Copy link
Collaborator

myhloli commented Aug 25, 2024

You can open pdf files in chrome or edge,use print->save as pdf->30-50 to cut original pdf as a simple pdf.

@michaelthwan
Copy link
Author

Got it. If you won't modify, I will use PyPDF2 to split it. Thanks for answering.

@myhloli
Copy link
Collaborator

myhloli commented Jan 5, 2025

now you can use -s and -e to specify page number for output
for example
magic-pdf -p {some_pdf} -o ./output -s 30 -e 51

@myhloli myhloli closed this as completed Jan 5, 2025
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