Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Check out the -append and +append options.</p> <p><code>-append</code> appends the images vertically, and <code>+append</code> appends them horizontally.</p> <p>Usage (<a href="http://linuxers.org/quick-tips/convert-pdf-file-single-image-using-imagemagick" rel="nofollow">http://linuxers.org/quick-tips/convert-pdf-file-single-image-using-imagemagick</a>):</p> <p>According to that link, the output from a multi-page pdf <code>convert</code> would be ${targetFile}-0.png, ${targetFile}-1.png, ${targetFile}-n.png, etc. Once you have converted the pdf into multiple images, use the -append or +append option:</p> <p><code>convert ${targetFile}-* -append single_image.png</code></p> <p>To put it all together, try something like this (you may have to play with it a bit; I haven't used Imagemagick from the Windows' shell):</p> <p><code>// convert pages of pdf</code></p> <p><code>exec("\"C:\\Program Files (x86)\\ImageMagick-6.8.5-Q16\\convert.exe\" -density 300 -quality 75 \"{$path}{$filename}{$ext}\" \"{$targetFile}\"");</code></p> <p><code>// then append them</code></p> <p><code>exec("\"C:\\Program Files (x86)\\ImageMagick-6.8.5-Q16\\convert.exe\" \"{$targetFile}-*\" -append "${someName}\"");</code></p> <p>More resources:</p> <p><a href="http://www.imagemagick.org/script/command-line-options.php#append" rel="nofollow">http://www.imagemagick.org/script/command-line-options.php#append</a></p> <p><a href="http://www.imagemagick.org/Usage/layers/" rel="nofollow">http://www.imagemagick.org/Usage/layers/</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload