Cannot Export to PDF or AI

Post questions on how to use or achieve an effect in Inkscape.
sprintf
Posts: 7
Joined: Fri Dec 02, 2011 3:23 pm

Cannot Export to PDF or AI

Postby sprintf » Fri Dec 02, 2011 3:30 pm

hello,

i am designing a shop sign with the size of 0.462M height by 15M width. everything is fine until i start to export in PDF format.

inkscape shutsdown with the error message "GLib cannot allocate enough memory" or something similar.

however it does not fail if the art work is small like 2M x 1M.

my system has enough enough system memory: 4G
HDD: 250G
virtual memory set to system managed.

can anyone help me please?

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: Cannot Export to PDF or AI

Postby druban » Fri Dec 02, 2011 7:52 pm

Is that 'M' for 'meters'??? Wow.
That's big. But it should not make a huge difference if everything is vector. Unfortunately raster elements sneak in here and there and pretty soon they're sitting in your favorite chair eating toast and hogging the remote. :lol:

Anyway the first thing to check - do you use any filter effects in your file? Even a blur in the fill and stroke dialog is a filter effect. W@hen you try to save as PDF a box should come up with the option to 'rasterize filter effects' and resolution for rasterization of filter effects. For a voery larg image this number should be set very low to prevent memory problems...

Next - is the background set to transparency (in the document properties dialog)? Try setting this to opaque white or some compatible color and try a re-save as.

lastly - how much transparency are you using in your fills and strokes? Are there a lot of gradients that go from a color to transparency??
Your mind is what you think it is.

sprintf
Posts: 7
Joined: Fri Dec 02, 2011 3:23 pm

Re: Cannot Export to PDF or AI

Postby sprintf » Sat Dec 03, 2011 6:16 pm

yes M for meters :D

unfortunately my work is for a client and he wants the best design so my art work has lot of filter effects and transparency...

please chk the attachment.

thx for the help.

i will try your suggested fix and let you know mate.

thx very much for now!!
Attachments
phfw.PNG
phfw.PNG (182.83 KiB) Viewed 783 times

sprintf
Posts: 7
Joined: Fri Dec 02, 2011 3:23 pm

Re: Cannot Export to PDF or AI

Postby sprintf » Sat Dec 03, 2011 6:29 pm

M for meter

yes i am using transparencies and filters as this is a commercial project hence proffesional look is expected.

thanks for your suggestion. i will try that and will let you know however if the DPI is reduced it is going to afftect the print quality though which will be unaccptable to my client.

thanks
Attachments
phfw.PNG
phfw.PNG (182.83 KiB) Viewed 783 times

sprintf
Posts: 7
Joined: Fri Dec 02, 2011 3:23 pm

Re: Cannot Export to PDF or AI

Postby sprintf » Sat Dec 03, 2011 6:31 pm

Unfortunately raster elements sneak in here and there and pretty soon they're sitting in your favorite chair eating toast and hogging the remote. :lol:


exactly man! :D

sprintf
Posts: 7
Joined: Fri Dec 02, 2011 3:23 pm

Re: Cannot Export to PDF or AI

Postby sprintf » Sat Dec 03, 2011 7:52 pm

so the error is in the inkscape code or in platform dependant lib. if it is plat dependant lib i could try it on linux on EC2 failing that i will try using batik to convert to rasterize

sprintf
Posts: 7
Joined: Fri Dec 02, 2011 3:23 pm

Re: Cannot Export to PDF or AI

Postby sprintf » Sat Dec 03, 2011 8:44 pm

he he. i used apache batik lib to convert and guess what. bombed out so i guess it is the xml library thats causing the issue as most of the xml libs are memory intensive and my file is 3.9MB in pure svg format!!

Code: Select all

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
   at java.awt.image.DataBufferInt.<init>(Unknown Source)
   at java.awt.image.SinglePixelPackedSampleModel.createDataBuffer(Unknown Source)
   at java.awt.image.Raster.createWritableRaster(Unknown Source)
   at org.apache.batik.gvt.renderer.StaticRenderer.updateWorkingBuffers(StaticRenderer.java:536)
   at org.apache.batik.gvt.renderer.StaticRenderer.repaint(StaticRenderer.java:375)
   at org.apache.batik.gvt.renderer.StaticRenderer.repaint(StaticRenderer.java:344)
   at org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:111)
   at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142)
   at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156)
   at Main.main(Main.java:32)

sprintf
Posts: 7
Joined: Fri Dec 02, 2011 3:23 pm

Re: Cannot Export to PDF or AI

Postby sprintf » Sun Dec 04, 2011 1:45 am

just ran inkscape to export the same file mentioned above in ec2 (amazon cloud) on a "high memory on demand system" which had 17G memory. same save settings but created a 32M pdf file in 8 mins no errors nothing but guess what? the resultant pdf only had a white rectangular area, the same size as the svg drawing but nothing else :D. tried several times with diff setting in inkscape but no change at all :(


Return to “Help with using Inkscape”