26-02#
Generate big PDF file (20 MB, 50 MB)#
Create a PDF containing an image with N pixels.
Each pixel has 3 bytes (RGB).
For 20MB [1], you need 20*1024*1024/3 pixels.
make_pdf() {
meg=$1
convert -size 1024x$(( $meg * 1024 / 3)) xc:white +noise Random ${meg}M.pdf
ls -lh ${meg}M.pdf
}
make_pdf 20
make_pdf 50