mostafaznv/pdf-optimizer

How to make chart images better quality in PDF files

Closed this issue · 1 comments

Thanks for creating such an awesome free package.
I have a problem, please help me
When I optimize the PDF file with the chart in it. But the image quality is not good.
image
with code optimize
$result = PdfOptimizer::open($filePath) ->setGsBinary('C:\\Program Files\\gs\\gs10.04.0\\bin\\gswin64.exe') ->colorImageResolution(2400) ->optimize(base_path('\\output-1.pdf'));
How to make chart images better quality in PDF files? Thank you!

Hi @vanchinh1989, this package uses ghostscript to optimize PDF files, so you may want to investigate your issue there.
However, I believe these four options can help you improve the image quality:

PDF Settings
Down Sample Color Images
Color Conversion Strategy
Process Color Model