educative.io_scraper icon indicating copy to clipboard operation
educative.io_scraper copied to clipboard

Reduce Downloaded File Size for PDF

Open sabz90 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. The Topics that get downloaded as HTML and PDF have a very large size. They go upto 4-6 MB per topic for HTML and 1-2MB for PDF. Each course goes up to 1.5-2 GB in HTML and 400-600MB in PDF.

Describe the solution you'd like Smaller file sizes.

Describe alternatives you've considered smallpdf.com and similar tools, works but it's a pain and it has limitations.

sabz90 avatar Mar 26 '24 15:03 sabz90

@sabz90 size cannot be lowered as it will break the DOM elements. HTML generation uses single-file to execute as a script. Already optimisations are provided for lower file size. image Cannot remove anything more from this.

pdf is generated using the CDP command or either screenshot to html. if file size is lower then consider creating pdf's instead of html.

anilabhadatta avatar Mar 31 '24 22:03 anilabhadatta