Page 1 of 1

Invisible insert

Posted: 2016-10-04T09:02:36-07:00
by LLyaudet
Hi,

We use daily Image Magick to insert bmp image in pdf file.
Most of the time it works fine but sometimes the inserted image is invisible in the pdf result.
Steps to reproduce :
- use the following command :
convert -density 144 Teliway_tournee_3_2336026.pdf SIG_91371134021020520001_20160930085609.bmp -geometry 240x136+860+270 -composite -compress Zip resultat.pdf

with the two files I will try to attach to this message.

Best regards,
Laurent Lyaudet

Re: Invisible insert

Posted: 2016-10-04T09:04:50-07:00
by LLyaudet
It seems I cannot add the pdf file and the bmp file to the topic.
You can mail me at : llyaudet_TA_teliae.fr and I'll send the files to anybody willing to reproduce this bug.

Best regards,
Laurent Lyaudet

Re: Invisible insert

Posted: 2016-10-04T09:09:04-07:00
by fmw42
You can post your images to some place such as dropbox.com and put the URLs here. This forum does not allow direct uploads.

Re: Invisible insert

Posted: 2016-10-04T09:38:25-07:00
by LLyaudet
Hi,

Thanks for the help.

Here is a dropbox link to access the files needed to reproduce the bug :
https://www.dropbox.com/sh/fu7p0q1gmg93 ... xALTa?dl=0

Note that dropbox display the bmp without showing its name.
The name of the bmp file is SIG_91371134021020520001_20160930085609.bmp

Best regards,
Laurent Lyaudet

Re: Invisible insert

Posted: 2016-10-04T10:49:34-07:00
by fmw42
Your input pdf has two pages. With your command, you can only add the bmp to one page at a time. Try just using the first page of the pdf.

Code: Select all

convert -density 144 Teliway_tournee_3_2336026.pdf[0] SIG_91371134021020520001_20160930085609.bmp -geometry 240x136+860+270 -composite -compress Zip resultat.pdf

Re: Invisible insert

Posted: 2016-10-04T13:32:41-07:00
by fmw42
If you want to add the bmp to the first page and still want to preserve the second page, then

Code: Select all

convert Teliway_tournee_3_2336026.pdf[0] -density 144  SIG_91371134021020520001_20160930085609.bmp \
-geometry 240x136+860+270 -composite Teliway_tournee_3_2336026.pdf[1] -compress Zip resultat.pdf
But note, I do not think PDF supports zip compress. When I review the results, the compression is unknown.

Re: Invisible insert

Posted: 2016-10-05T01:00:30-07:00
by LLyaudet
Hi,

Thank you very much.
I will use your solution.

Best regards,
Laurent Lyaudet