Replies: 1 comment
-
|
Marp's PDF export process depends on the browser's PDF rendering handled by Puppeteer. Unfortunately, Puppeteer doesn't offer any options for the image format used inside the PDF file during conversion, so pulling this off is pretty tough for now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So far from my experience, Marp will always do lossless generation of PDF. I've been searching for solution over the internet but none suits my need. The best way for me to compress PDF for now is through Foxit PDF Editor Pro, which is a paid solution in Windows and Mac. Such solution requires manual mouse interaction in which takes some time.
So I'd open a suggestion to do image regeneration and compressing for PDF & PPTX generation to a certain defined DPI. Yes
--image-scaleflag exist in marp-cli but it don't apply to PDF nor have granular level of changing DPI. I also have some request to extend--jpeg-qualityflag to PDF generation.In this regard, I expect Marp to has a flag to control DPI for PDF & PPTX export with
0for lossless.--jpeg-qualityalso will help in reducing the size of the PDF export. So PDF export can result in much smaller resolution for email and other purposes that needs smaller than 1MB upload size. I also expect this to be added to Visual Studio Code with ability to change the DPI in the settings.I hope this feature suggestion or request doesn't appear to be neither too much, too hard, nor too ruling. Thank you for letting me writing this suggestion. Hope this software can gets better day by day.
Best Regards.
Beta Was this translation helpful? Give feedback.
All reactions