Page 1 of 1

Adding rectangle at bottom of page

Posted: 2016-04-26T20:50:07-07:00
by suman114
How do I add a rectangle with white transparent background at the bottom of a page?

I am annonating a text and want to enclose it with a semi-transparent rectangle.

Code: Select all

convert file.pdf -gravity southwest -quality 100 -fill "rgba(0,0,0,0.5)" -pointsize 10 -weight bold -annotate +0+0 'my text' new.pdf

Re: Adding rectangle at bottom of page

Posted: 2016-04-26T23:39:36-07:00
by fmw42
quality does not affect PDF files. It is density and it should come before the input pdf file. try

Code: Select all

convert -density XX file.pdf -gravity south -bacgkround "rgba(255,255,255,0.5) -splice YY -gravity southwest -fill "rgba(0,0,0,0.5)" -pointsize 10 -weight bold -annotate +0+0 'my text' new.pdf
Adjust XX from nominal 72 dpi to what you want in terms of size of the input pdf. Adjust YY for the size of the half transparent white border at the bottom.