Hi Fred,
the -gravity parameter has no effect.
The order of the parameters affects the resulting image. Do you know why ?
If I call:
convert document.pdf -density 240 -compress none -page A4 image.tif
I get a:
Image Width: 554 Image Length: 123
Resolution: 240, 240
and the keyword -page a4 seems not to work.
But if I call:
convert -density 240 -compress none -page A4 document.pdf image.tif
I get a:
Image Width: 1983 Image Length: 2807
Resolution: 240, 240
and this is an a4 page image.
I've also tried in 2 steps, first I rasterized and got a 554x123 image and
then I tried to pad and get an a4 image but unsuccessfully.
I know that there is a new version with the -extent parameter that should do
what I need.
The problem is that I need an a4 uncopressed image at 240 dpi that I will
convert into afp data stream, because our mainframe fax accepts only this
format.
Giuseppe.
Fred Weinhaus wrote:
>
>
> I do not know too much about PDF processing, but you can try (though
> I have my doubts it will work)
>
> convert -density 240 -compress none -page A4 document.pdf -gravity
> center pageA4.tif
>
>
> Is it possible that the image is still surrounded by pixels data of
> some background color? If so you can try to trim out the background
> with -background somecolor -fuzz xx% -trim where XX is some small
> percent like 5 or 10.
>
>
> However, I really think you may have the commands in the wrong order. Try
>
>
> convert document.pdf -density 240 -compress none -page A4 pageA4.tif
>
>
>
>>I have a pdf with a small image inside. The pdf size is exactly the image
>>size and is 7.69 x 1.71 in.
>>
>>I would like to rasterize this pdf and get a A4 tiff page at 240 DPI with
>>the original image placed at the top or centered.
>>
>>I've tried with:
>>
>>convert -density 240 -compress none -page A4 document.pdf pageA4.tif
>>
>>The final tiff has the corect density and size but the image is placed at
>>the bottom of the page.
>>
>>How can I place it at the top or at centre ?
>>
>>Thanks.
>>Giuseppe.
> _______________________________________________
> Magick-users mailing list
> [email protected]
> http://studio.imagemagick.org/mailman/listinfo/magick-users
>
>
--
View this message in context:
http://www.nabble.com/Convert-Pdf-to-Tiff-tp20321721p20338253.html
Sent from the Magick-users mailing list archive at Nabble.com.
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users