$ 0 0 I think you should look for another tool to do this. PDF is a vector file format and will be changed to a raster format when read. Writing it back will result in a much bigger file with a lower quality document.