Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Cool, although I noticed the output PDF is fairly blurry. Can this be made crisper?


The blurriness is a problem… With the pdf library I’m using (jsPDF) I cannot export the SVG directly so I convert it to an image and then embed the image in the pdf. To solve the problem, I can increase the converted image’s resolution but then the pdf becomes huge (~20 MB, for example). There is a ‘quality’ parameter in the code, maybe I’ll expose it in the UI and you can find an optimum value. I’ll try to find a way to export or ‘write’ the svg data directly in the pdf, I think it’s the best way to do it.



Can you convert to eps from the SVG and then whack the eps into a PDF?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: