Page 1 of 1
Read one page from pdf
Posted: 2014-03-02T04:07:23-07:00
by antake
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.
Re: Read one page from pdf
Posted: 2014-03-02T04:25:43-07:00
by snibgo
convert in.pdf[0] out0.png
convert in.pdf[1] out1.png
etc.
Re: Read one page from pdf
Posted: 2014-03-02T04:38:48-07:00
by antake
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++.
Re: Read one page from pdf
Posted: 2014-03-02T04:50:19-07:00
by Bonzo
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
Re: Read one page from pdf
Posted: 2014-03-02T04:57:22-07:00
by snibgo
Sorry, I don't know. If you are using Magick++,
viewforum.php?f=23 might be a place to find out.
Re: Read one page from pdf
Posted: 2014-03-02T05:24:38-07:00
by antake
Thank you for the answers and for the link. Maybe it will help me.