macOS reduce PDF file size with ghostscript

Product :4D - 4D Server
4D : v17
OS : Mac OS X

Hi all,

attached is a sample database with ghostscript plugin from magic Miyako to reduce the pdf file size on mac.

The internal pdf creation option with write pro or other areas creates huge pdf files on mac.

To reduce the size for the created pdf files, there is a ghostscript option, which helps to get smaller pdf files.

Sample struct is in 4d v17, but the code is compatible to v11 backwards.

The included (write pro created) sample pdf is 8MB and the reduced pdf file with the option PRINTER quality is only 1.8MB

There are 4 options to choose:
//-dPDFSETTINGS=/screen (screen-view-only quality, 72 dpi images)
//-dPDFSETTINGS=/ebook (low quality, 150 dpi images)
//-dPDFSETTINGS=/printer (high quality, 300 dpi images)
//-dPDFSETTINGS=/prepress (high quality, color preserving, 300 dpi imgs)

Have fun
Armin

Source: https://forums.4d.com/4DBB_Main/x_User/835739/files/30329697.zip

P.S.: not tested on windows, cause our windows pdf plugin with pdf driver creates very tiny pdf files compared to the windows 10 pdf driver.
Info: http://www.node.de/indexplug.htm