Create one pdf out of multiple (selected) images
1,340
You can use the -adjoin
option of convert
:
convert -adjoin *.png out.pdf
This command will result in one pdf
file with all the png
images.
Related videos on Youtube
Author by
ARUN
Updated on September 18, 2022Comments
-
ARUN over 1 year
I am trying to integrate PHP Amazon SDK - s3 api. I am giving the correct credentials. But I am not sure about putObject parameters. This is the code that I tried:
try { $s3Client->putObject(array( 'Bucket' => $bucket, 'Key' => $filename, 'Body' => file_get_contents(drupal_realpath($file_path)), 'ACL' => 'public-read', )); } catch (S3Exception $e) {echo '<pre>';print_r($e); echo "There was an error uploading the file.\n"; } exit;
After make the request I am getting this Response:
Aws\S3\Exception\AccessDeniedException Object ( [response:protected] => Guzzle\Http\Message\Response Object ( [body:protected] => Guzzle\Http\EntityBody Object ( [contentEncoding:protected] => [rewindFunction:protected] => [stream:protected] => Resource id #219 [size:protected] => [cache:protected] => Array ( [wrapper_type] => PHP [stream_type] => TEMP [mode] => w+b [unread_bytes] => 0 [seekable] => 1 [uri] => php://temp [is_local] => 1 [is_readable] => 1 [is_writable] => 1 ) [customData:protected] => Array ( ) ) [reasonPhrase:protected] => Forbidden [statusCode:protected] => 403 [info:protected] => Array ( [url] => https://s3.amazonaws.com/my_test/ak1.jpg [content_type] => application/xml [http_code] => 403 [header_size] => 273 [request_size] => 320 [filetime] => -1 .........................................................................................................
-
Admin about 8 yearscan
-adjoin
be added as such to the the script in the question? -
Gilles 'SO- stop being evil' about 8 years@cipricus What's the problem with Marius's command? If the problem is that you're collecting the input file names one at a time, why not store them into an array and process the whole array when you've finished collecting them?