https://blog-qa.aspose.com/pl/pdf/optimize-pdf-javascript/
Optymalizuj pliki PDF w JavaScript