Hello!
I need to read a pdf document page by page because it is very large.
Can you please help me with it?
Sorry for such a simple question, I'm new to magick and can't find any good sources about it.
Read one page from pdf
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Read one page from pdf
convert in.pdf[0] out0.png
convert in.pdf[1] out1.png
etc.
convert in.pdf[1] out1.png
etc.
snibgo's IM pages: im.snibgo.com
Re: Read one page from pdf
Thanks but i don't undestand.
I have file path and need to read it. How can convert help me?
My programming language is c++.
I have file path and need to read it. How can convert help me?
My programming language is c++.
Re: Read one page from pdf
The code snibgo gave you will convert the page from a pdf to a png. You will need to write the code in C++ which inputs one page at a time.
I know nothing about C++ but I would use a loop; something like foreach page run the code
I know nothing about C++ but I would use a loop; something like foreach page run the code
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Read one page from pdf
Sorry, I don't know. If you are using Magick++, viewforum.php?f=23 might be a place to find out.
snibgo's IM pages: im.snibgo.com
Re: Read one page from pdf
Thank you for the answers and for the link. Maybe it will help me.