points disappear when importing PDF

Post questions on how to use or achieve an effect in Inkscape.
Teegee
Posts: 4
Joined: Thu May 27, 2010 3:10 pm

points disappear when importing PDF

Postby Teegee » Thu Jun 24, 2010 5:56 pm

Hi,

when I import a PDF document (e.g. a map) in inkscape, lines, areas and text are OK, but all the points features are not displayed. They are still in the drawing, because I found them with the XML editor. Unfortunately, I'm very far to be an XML expert and I do'nt figure out what I could do to make my points visibles. Below is what I see in the XML editor for one point (a square) :

height 1
id image5717
transform matrix(1,0,0,-1,0,1)
width 1
xlink:href data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAABHNCSVQICAgIfAhkiAAAAAxJREFUCJljYBiMAAAAlgAB5ig/OwAAAABJRU5ErkJggg==

If anyone has an idea to solve this problem, I would be eternally grateful...

Thanks,

Teegee

User avatar
tomh
Posts: 218
Joined: Sat Feb 14, 2009 10:14 pm

Re: points disappear when importing PDF

Postby tomh » Thu Jun 24, 2010 10:30 pm

It looks to me like the points are actually images, hence the data:image/png. When I tried to decode that, it appeared as if the image was a 6x6 pixel fully transparent image, so something may have gone wrong in the conversion.

One way of "solving" the problem would be to replace the data:image/png bit with this:

Code: Select all

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAVSURB
VAiZY2RgYPjPgAUwYROklwQAlYgBC9EyP6cAAAAASUVORK5CYII=


although I don't know how practical that would be.

Teegee
Posts: 4
Joined: Thu May 27, 2010 3:10 pm

Re: points disappear when importing PDF

Postby Teegee » Fri Jun 25, 2010 12:09 am

There is some progress : with the code above, I can see a little square indicating "linked image not found". The problem is that this square is not at the place where the dot should be (not very far, about 10 pixels, but for a map, it's not very good).
I found a trick: as I can select my invisible dots, I can use "object to guides" so the place where the dot should be is delimited. Then, I paste a little square in the vicinity and adjust its position whith the guides. It works well for dots, but even for a small map, it can take several hours to replace all the dots. And, of course, it's not very helpful for others symbols than dots.
There is something that bothers me : when I draw a square dot, its coordinates appear in the XML editor. For the dots coming from the pdf (wich are images), there are no such coordinates. So I wonder : how does Inkscape to position these images at the right place ?

Thanks for your help,

Teegee


Return to “Help with using Inkscape”