Git Product home page Git Product logo

Comments (4)

 avatar commented on August 18, 2024

Internally, the project uses wkhtmltopdf for PDF generation. I've really not looked too deeply into it. There may be some options that could be added. If you have time, try processing the html output file with wkhtmltopdf and see if you can get a smaller or better output.

Keep me posted and we can make a PR or change. Thanks!

https://github.com/there4/markdown-resume/blob/master/src/Resume/Command/PdfCommand.php#L72

from markdown-resume.

 avatar commented on August 18, 2024

There is some info here that might indicate it's worth trying out some different font options and perhaps a new wkthmltopdf build: wkhtmltopdf/wkhtmltopdf#1747

edit: wkhtmltopdf 0.12.2-dev-5dea253 is generating significantly smaller file sizes, and generates selectable text. However, in the modern template, I'm seeing a couple of stray unicode squares that I'm not sure of the source of.

from markdown-resume.

jsorge avatar jsorge commented on August 18, 2024

I was able to get the 32-bit version, and it made my PDF so much smaller (from 1.7MB to about 35k). There were a few weird boxes that showed up as a result of some character encoding I think, but I masked them easily enough in PDFPen.

Thanks for the tip!

from markdown-resume.

oflannabhra avatar oflannabhra commented on August 18, 2024

Just an FYI, this issue persists on OS X, due to an underlying bug in QT (one of wkhtmltopdf's dependencies). Unfortunately for OS X, there is no v0.12 beta to download. The only (apparent) solution until v0.13 is released is to build from source with a patched version of QT. Both of those linked pages have outdated build instructions, however. I did discover a binary available for OS X 10.9, but have not tested. If you do decide to build from source, expect to lose 6 hours.

from markdown-resume.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.