The PDF file (CMYK format) is a white background with a black image so I want to take everything that is White and make it transparency while leaving anything that is black alone.
Im using the following command:
Can anyone tell me if this is the correct way of doing this or if there is a better way to do it?exec('convert ' . $pdf_file . ' -channel rgba -fuzz 900 -transparent "#ffffff" ' . $png_file, $output, $return);
Also when it does get converted the edges of the black area are jagged meaning there are still some white areas that remain on the file and it just looks really bad. Anyone have a solution to this or a better way of doing this.