Differences Export to PDF via cmdline and via inkscape

Discussion about writing code for Inkscape.
iconberg
Posts: 36
Joined: Wed Feb 04, 2015 7:46 pm

Differences Export to PDF via cmdline and via inkscape

Postby iconberg » Tue Feb 24, 2015 5:19 pm

Hello,

i cant get why i get different results if i export via commandline and by hand from inkscape.
If i export by hand i get the same result in the pdf like i see in inkscape.
But via commandline i have bigger text than the manual export. For example
"c:\programme\inkscape\inkscape.com --file C:\Users\re\AppData\Local\Temp\tmp0xt2e_m1.svg --export-pdf C:\Users\re\AppData\Local\Temp\tmp0xt2e_m1.svg.pdf --export-pdf-version=1.5"

I just generate a new svg-file from a template.svg, if i check them via notepad they are 100% identical except the changes from my %placeholder% to data from a csv-file.

Anyone have an idea where the differences come from?
I attached the files.

greetz
Attachments
files.zip
(32.44 KiB) Downloaded 231 times

iconberg
Posts: 36
Joined: Wed Feb 04, 2015 7:46 pm

Re: Differences Export to PDF via cmdline and via inkscape

Postby iconberg » Tue Feb 24, 2015 7:46 pm

I tried to compare the pdfs via notepad, it seems there were different cairo version used:

12 0 obj
<< /Creator (cairo 1.11.2 (http://cairographics.org))
/Producer (cairo 1.11.2 (http://cairographics.org))
>>
endobj

12 0 obj
<< /Creator (cairo 1.14.1 (http://cairographics.org))
/Producer (cairo 1.14.1 (http://cairographics.org))
>>
endobj

Can i something do about that?

iconberg
Posts: 36
Joined: Wed Feb 04, 2015 7:46 pm

Re: Differences Export to PDF via cmdline and via inkscape

Postby iconberg » Tue Feb 24, 2015 7:58 pm

Ok, found it. The differences comes from parallel installation .48(32bit) and .91 (64bit), while .svg extension was linked to .48 and i called .91 via commandline.
As far as both versions export and show the same i have no problem.

The differences between the caire version are another chapter i guess.


Return to “Programming”