composite, adding watermark and speed
Posted: 2016-08-03T04:02:52-07:00
i have a multypage pdf file, i need to put a watermark on each page in pdf. also i need to set opacity, size and position of watermark
it must work on linux command line
i googled but can't find any complete example, so i use such solution-split pdf on single page, then call command and put watermark on each pdf
then merge all files into 1 pdf
the main problem is the speed- if density is 100 or more then speed is slow, if lower then poor quality of pdf files
can you give some ideas?
may be any example to put watermark on whole pdf, or may be increase speed?
it must work on linux command line
i googled but can't find any complete example, so i use such solution-split pdf on single page, then call command and put watermark on each pdf
Code: Select all
composite -gravity NorthEast -density 200 -dissolve 50 -size 50x30 -geometry +100+50 watermark.jpg pdf1.pdf pdf1.pdf
the main problem is the speed- if density is 100 or more then speed is slow, if lower then poor quality of pdf files
can you give some ideas?
may be any example to put watermark on whole pdf, or may be increase speed?