piqnt / svgexport

SVG to PNG/JPEG command-line tool and Node.js module
927 stars 85 forks source link

vector graphic? #2

Closed rolfn closed 9 years ago

rolfn commented 10 years ago

Shouldn't a pdf output file contain vector graphics? I tried the following example

svgexport NewTux.svg NewTux.pdf

The file "NewTux.svg" comes from http://upload.wikimedia.org/wikipedia/commons/b/b0/NewTux.svg The resulting pdf file contains bitmaps. This is bad.

And another issue: Without an explicit size parameter the output pdf file ("NewTux.pdf") has two pages and the "penguin" is broken. It would be better if the pdf file has the same size as the (one page) svg file.

...Rolf

shakiba commented 10 years ago

In first case this is just how phantomjs works, in second I didn't find how to convert image size to pdf size (image px is not same as pdf px) otherwise I agree that it is better to default pdf size to image size.

shakiba commented 9 years ago

I have dropped support for PDF, because the PDF was just a wrapper around an image and not an actual SVG to PDF conversion. I think better results can be achieved with other packages.