navigaid
10/10/2018 - 4:21 AM

an attempt to inflate the size of a pdf file

an attempt to inflate the size of a pdf file

$ cd Downloads/
$ gs -q -dNOPAUSE -dBATCH -dPDFSETTINGS=/prepress -sDEVICE=pdfwrite -sOutputFile=haixia_grades_output.pdf haixia_grades.pdf 
$ du -sh haixia_grades_output.pdf
$ du -sb
$ du -sb haixia_grades_output.pdf
$ du -sh haixia_grades.pdf
$ okular haixia_grades_output.pdf
$ strings haixia_grades_output.pdf Embeddedfiles
$ strings haixia_grades_output.pdf | grep Embeddedfiles
$ strings haixia_grades_output.pdf | grep EmbeddedFiles
$ strings haixia_grades_output.pdf | grep Embedded
$ strings haixia_grades_output.pdf 
$ cp haixia_grades_output.pdf haixia_grades_temp.pdf
$ dd if=/dev/zero bs=200000 count=1 | wc -c
$ dd if=/dev/zero bs=200000 count=1 >> haixia_grades_temp.pdf
$ file haixia_grades_temp.pdf
$ okular haixia_grades_temp.pdf
$ du -sh haixia_grades_temp.pdf
$ firefox haixia_grades_temp.pdf
$ cat haixia_grades_temp.pdf | sponge haixia_grades_temp.pdf
$ du -sh haixia_grades_temp.pdf
$ man sponge
$ cat haixia_grades_temp.pdf | sponge -a haixia_grades_temp.pdf
$ du -sh haixia_grades_temp.pdf
$ file haixia_grades_temp.pdf
$ okular haixia_grades_temp.pdf
$ history | tail -100 > inflate_pdf