Sorry for off-topic discussion. Here I attach sample source PDF and concatenated GIF. The command I executed is:
convert \( -size 595x842 xc:white \) \( Book.pdf -crop 595x280+0+0
+repage -gravity South -append \) -compose src-atop -composite CompBooks.gif
--
For first step, please try
convert Book.pdf -crop 595x280+0+0 +repage -gravity South -append
CompBooks.gif
what is 595x280? It is a size of cropped page with 1/3 height. you can check the
pagesize by identify command (of ImageMagick)
identify Book.pdf
The result would be
"Book1.pdf PDF 595x842 595x842+0+0 16-bit Bilevel DirectClass 63.2KB 0.000u
0:00.029"
Then calculate the 1/3 height as
echo 842 / 3 | bc
280
Thus, you can make a concatenated image of the 1/3 upper part of the pages by
convert Book.pdf -crop 595x280+0+0 +repage -gravity South -append
CompBooks.gif
If you execute this command, you may find a transparent background. To make
an image with white background and black ink, I insert a white image with
expected
page size as "-size 595x842 xc:white", and combine the images by "-compose
src-atop -composite".
The result is following.
convert \( -size 595x842 xc:white \) \( Book.pdf -crop 595x280+0+0
+repage -gravity South -append \) -compose src-atop -composite CompBooks.png
I wish you can enjoy ImageMagick puzzle.
Regards,
mpsuzuki
Gabor Z. Papp wrote:
> * suzuki toshiya <[email protected]>:
>
> | The way to do such with existing tool only would be
> | ImageMagick, but the result would be rasterized picture.
>
> Could you show me an example commandline how to do this with ImageMagick?
Book.pdf
Description: Adobe PDF document
<<inline: CompBooks.gif>>
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
