Commandline Problems

General discussions about Inkscape.
ajaymakwana
Posts: 1
Joined: Sun Jun 28, 2015 12:20 am

Commandline Problems

Postby ajaymakwana » Mon Jun 29, 2015 9:26 pm

Hello,
I have the PDF output issue with the inkscape command line. I have one SVG which contains the image in it. So When I am export the SVG to PDF the upper part of the image in the PDF is cutting with straight line. And when I am open the PDF in adobe illustrator, the image is work like the pattern and repeat in whole page.
I am using the Inkscape 0.48.4 r9939 (Feb 22 2014) version.
Please find the attached zip file which contains the SVG and it's PNG file and exported PDF file
Please provide me the solution. It's very important for me.

Regards,
Ajay
Attachments
sample.rar
test.svg have the png image(sample.png) and test.pdf is the exported output pdf from the SVG with command line.
(24.13 KiB) Downloaded 162 times

User avatar
Grobe
Posts: 411
Joined: Tue Feb 02, 2010 2:20 am

Re: Commandline Problems

Postby Grobe » Tue Jun 30, 2015 8:42 am

Hi.

I can't help much with command lines as I do not use thse features myself.
However, it seems that settings "Bleed/margin (mm)" for PDF export dialog box is set to a positive number greater than 0.

I don't know if this is possible to control by command line, but from own experience I see that Inkscape remember this settings from one session to the next. Therefore I suggest you trying to open Inkscape, and manually save as PDF, set the "Bleed/margin (mm)" number to 0.
Then try your Inkscape command and see if it works better.
:lol:

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Commandline Problems

Postby ~suv » Tue Jun 30, 2015 6:48 pm

ajaymakwana wrote:I am using the Inkscape 0.48.4 r9939 (Feb 22 2014) version.
Which OS/platform?

ajaymakwana wrote:When I am export the SVG to PDF the upper part of the image in the PDF is cutting with straight line
From the PDF file:

Code: Select all

Creator:        cairo 1.8.8 (http://cairographics.org)
This is quite an old and outdated version of cairo - the top of the bitmap image embedded in the SVG file is no longer cut off in exported PDF files if Inkscape uses a more recent cairo version:
  • confirmed with cairo >= 1.10.2 (current release is cairo 1.14.2)
The observed issue is - as far as I can tell - independent of Inkscape's version and of current user settings for Inkscape. Note though that Inkscape 0.48.4 is quite outdated too by now - there has been one more bug fix release of the 0.48.x series after that (0.48.5), and the latest stable release is Inkscape 0.91 r13725.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Commandline Problems

Postby ~suv » Tue Jun 30, 2015 7:07 pm

ajaymakwana wrote:And when I am open the PDF in adobe illustrator, the image is work like the pattern and repeat in whole page.
As far as I can tell that seems more of an Illustrator problem than something to blame Inkscape or cairo for - though it likely will also not occur if the PDF was exported with Inkscape using a more recent version of cairo (the internal structure of the exported PDF file seems to have changed, and no longer uses a clipped object with a pattern fill for such embedded bitmap images).

In the attached zip file there are a couple of PDFs exported via command line on OS X 10.7.5 using different inkscape and cairo versions - you can test yourself whether Illustrator handles those files created with cairo >= 1.10 better or not (I don't have access to AI to test this myself).
Attachments
test-pdf-exports.zip
(61.63 KiB) Downloaded 163 times


Return to “General Discussions”