Page 1 of 1

screendump and insert label convert to pdf

Posted: 2017-10-30T07:28:56-07:00
by RonaldV
I want to grab a screenshot and put a label on top, convert to pdf and print, sounds simple ?

Code: Select all

xwd -root | convert xwd:- label:"this is a label" +swap -append pdf:- | lpr -o fit-to-page
and i have a blank page. When I do not use +swap, I get a nice printout, only the label at the bottom.
So I tried

Code: Select all

xwd -root | convert -xwd:- label:"this is a label" +swap -append image.png
The image.png looks good, but after

Code: Select all

convert image.png image.pdf
the image.pdf is not as expected. Without the +swap ithe image.pdf look ok.
What am I doing wrong ?
I am using Imagemagic version 6.9.8-7 and Ghostscript 9.20 (2016-09-26) with Mageia 6