Search found 5 matches

by Morfio
2014-05-23T05:53:26-07:00
Forum: MagickWand
Topic: Get page count of pdf
Replies: 9
Views: 24538

Re: Get page count of pdf

I'm using "6.8.0 Q16 HDRI" on FreeBSD 10.0 amd64.
by Morfio
2014-05-22T00:35:54-07:00
Forum: MagickWand
Topic: Get page count of pdf
Replies: 9
Views: 24538

Re: Get page count of pdf

With this code I get this result: 1 test2.c main 28 Here's the code: #include <wand/magick_wand.h> #define ThrowWandException(wand) \ { \ char \ *description; \ \ ExceptionType \ severity; \ \ description=MagickGetException(wand,&severity); \ (void) fprintf(stderr,"%s %s %lu %s\n",GetM...
by Morfio
2014-05-21T04:46:17-07:00
Forum: MagickWand
Topic: Get page count of pdf
Replies: 9
Views: 24538

Re: Get page count of pdf

With another pdf it works, but it needs a very long time. With my test pdf file it doesn't work (and needs a long time, too). Exceptions are not thrown and MagickReadImage returns MagickTrue. Here's my code, maybe there are some mistakes: #include <wand/magick_wand.h> int main() { MagickWand *m_wand...
by Morfio
2014-05-21T01:01:23-07:00
Forum: MagickWand
Topic: Get page count of pdf
Replies: 9
Views: 24538

Get page count of pdf

Hello, I want to count pages in a pdf file. I use "printf("%lu\n", MagickGetNumberImages(m_wand));", but it returns always one page (the pdf has 116 pages). I initiate the MagickWand with "MagickReadImage(m_wand, "test.pdf");". How do I get the real page count...