jpeg - Embed JPG data properly in PDF files generated by Inkscape -



jpeg - Embed JPG data properly in PDF files generated by Inkscape -

there bug in inkscape jpeg images included in svg document embedded bitmaps rather jpeg when exporting pdf files.

the result huge increment in file size. example, have simple svg drawing includes 2 mb jpeg image; exporting pdf results in 14 mb file.

i looking workaround. there way fix resulting pdf inserting correctly-encoded jpg image, perhaps via sort of pdftk trickery?

(in case, resulting pdf included figure in latex document rendered pdflatex, there may workarounds other straight fixing pdf generated inkscape.)

one kludge utilize pdf2ps followed ps2pdf, re-encode bitmap info jpeg:

pdf2ps made-by-inkscape.pdf foo.ps ps2pdf foo.ps smaller-file.pdf

for test case, file sizes were:

original jpeg 2.1m made-by-inkscape.pdf 15m foo.ps 104m smaller-file.pdf 1.5m

but of course, involves re-encoding jpeg data, best avoided.

pdf jpeg inkscape

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -