BrentD has asked for the wisdom of the Perl Monks concerning the following question:
'convert -density 240x240 -compress Group4 -scene 15 test.pdf testp%04d.tif'
to get files tiffp0015.tif though testp0018.tif (for a 4-page PDF). I tried to translate this into PerlMagick with the following code:#!/usr/bin/perl use strict; use warnings; use Image::Magick; my $image = Image::Magick->new; my $filename = "test.pdf"; $image->Read($filename); $image->Set(scene=>15); $image->Write(filename=>"testp%04d.tif", compression=>'Group4', density=>"240x240");
but it is still outputting testp0000.tif - testp0003.tiff
How do I get it to start with the correct scene number?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PerlMagick Scene attribute
by syphilis (Archbishop) on Sep 26, 2017 at 23:01 UTC | |
by BrentD (Sexton) on Sep 27, 2017 at 15:30 UTC | |
|
Re: PerlMagick Scene attribute
by BrentD (Sexton) on Sep 27, 2017 at 15:50 UTC | |
by Anonymous Monk on Sep 28, 2017 at 00:57 UTC | |
by afoken (Chancellor) on Sep 28, 2017 at 04:49 UTC | |
by Anonymous Monk on Sep 29, 2017 at 00:46 UTC | |
by afoken (Chancellor) on Oct 01, 2017 at 10:48 UTC | |
| |
|
Re: PerlMagick Scene attribute
by Anonymous Monk on Sep 26, 2017 at 23:16 UTC | |
by BrentD (Sexton) on Sep 27, 2017 at 15:33 UTC |