screendump and insert label convert to pdf

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
RonaldV
Posts: 2
Joined: 2011-02-25T06:19:32-07:00
Authentication code: 8675308

screendump and insert label convert to pdf

Post 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
Post Reply