Decreasing size of PDF when using puppeteer for pdf generation

1.6k views Asked by At

We are using IDR for converting PDF documents to HTML.

After doing some modifications we are using puppeteer for converting that document back to PDF I am getting files with increased page size (even if I don't do any modification to my HTML).

For ex:- If the original page size is 500kb I am getting a page with 1000kb

The page only contains some text.

Please help me to understand what is the reason behind this and how to solve this.

0

There are 0 answers