Importing PDF: All text missing
Importing PDF: All text missing
Hi. When I create a PDF with Tableau Desktop and try to import it into Inkscape, the graphics appear fine, but ALL the text is missing. I've tried with a variety of fonts, but no luck. Any ideas? Thanks.
- Attachments
-
- TableauPDF.pdf
- (96.62 KiB) Downloaded 163 times
Re: Importing PDF: All text missing

Welcome to InkscapeForum!
Hhmmm......very strange

This is feeling like a bug to me. Let me do some searching, then I'll let you know what I learn. Be back soon

Edit
Ok, well I managed to learn a little bit, before Launchpad conked out on me

It seems that the preview in the import dialog is not a preview of the upcoming import.....I guess it's more of a....review??? So anyway, the fact the "preview" shows the text does not mean that text should necessarily be seen in the import.
I did find 2 or 3 bug reports where text does not appear in the imported PDF. But none seem to be exactly what we see in your document. Hhmmm.....let me do another quick test....
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Importing PDF: All text missing
I don't know exactly what "Tableau Desktop" is. Is it some kind of graphics program (software), or is it perhaps a touch screen or maybe a graphics tablet (hardware)? If it's software, I'm thinking that Inkscape is having trouble with the text that it creates.
When I "select" the invisible text (as I previously mentioned) then open the XML Editor, a text object is indeed highlighted. But what's glaringly missing is much info in the style attribute. Usually there will be a long line, or lines of code regarding the style, including things like color, opacity, size, spacing, type of font, etc. There are some attributes, as well, which appear to be missing. Note that I don't know what attributes are supposed to be there, so I'm comparing your file to one of mine, that was created with Inkscape. So it's not necessarily a clean comparison. Mine shows an attribute called "xml:space" with a value of "preserve". I'm not sure, but I think that's really important.
Anyway, your file only shows the font size (period) for the value of the style attribute. My first thought was to give it some color, so now the indicator shows that color, the status bar shows that it's selected, but there's still no text or boundingbox or Selection handles visible on the screen. While it's still selected, I switched to the Text tool, and a cursor starts flashing in the place where apparently the object that I've "selected" is supposed to be. But still no text.
I think my conclusion (for now) is that there's something about the text created in the other program, that Inkscape just can't handle/import. Does the Tableau program (I'm still assuming it's software) allow for converting text to path. It would probably only offer that option if it's a vector program, or has vector features.
Hhmmm....still thinking....does the Tableau program all for saving in other formats? If so, maybe one of those would import better into Inkscape..... Although I guess if Inkscape is having trouble with the text in a PDF, it would probably have trouble with text in any other format. Unless you can convert text to path before importing.
OH! Ok, here's an idea. Since there's not much text in this file, it would not take much time to type it in Inkscape. And Inkscape tells us what kind of font to use, as well as what size, and even exactly where it is. So you could either do what I've been doing, using Tab key, either after ungrouping, or enter the group.....actually there are SO many groups, it would probably be easier to ungroup everything. Or this might be even better -- first, it would be easier if you ungroup everything, but you don't have to. Open Edit menu > XML Editor. Click on each item in the left frame of the window, which looks like "<svg:text id="text0000"> to highlight it. This sort of selects the invisible text. Move the editor to the side, and then switch to the Text tool. That makes a cursor start flashing in the place where the text should be. Then look at the status bar, and it will tell you the type of font and the size.
Sorry, I wish I had better info for you
When I "select" the invisible text (as I previously mentioned) then open the XML Editor, a text object is indeed highlighted. But what's glaringly missing is much info in the style attribute. Usually there will be a long line, or lines of code regarding the style, including things like color, opacity, size, spacing, type of font, etc. There are some attributes, as well, which appear to be missing. Note that I don't know what attributes are supposed to be there, so I'm comparing your file to one of mine, that was created with Inkscape. So it's not necessarily a clean comparison. Mine shows an attribute called "xml:space" with a value of "preserve". I'm not sure, but I think that's really important.
Anyway, your file only shows the font size (period) for the value of the style attribute. My first thought was to give it some color, so now the indicator shows that color, the status bar shows that it's selected, but there's still no text or boundingbox or Selection handles visible on the screen. While it's still selected, I switched to the Text tool, and a cursor starts flashing in the place where apparently the object that I've "selected" is supposed to be. But still no text.
I think my conclusion (for now) is that there's something about the text created in the other program, that Inkscape just can't handle/import. Does the Tableau program (I'm still assuming it's software) allow for converting text to path. It would probably only offer that option if it's a vector program, or has vector features.
Hhmmm....still thinking....does the Tableau program all for saving in other formats? If so, maybe one of those would import better into Inkscape..... Although I guess if Inkscape is having trouble with the text in a PDF, it would probably have trouble with text in any other format. Unless you can convert text to path before importing.
OH! Ok, here's an idea. Since there's not much text in this file, it would not take much time to type it in Inkscape. And Inkscape tells us what kind of font to use, as well as what size, and even exactly where it is. So you could either do what I've been doing, using Tab key, either after ungrouping, or enter the group.....actually there are SO many groups, it would probably be easier to ungroup everything. Or this might be even better -- first, it would be easier if you ungroup everything, but you don't have to. Open Edit menu > XML Editor. Click on each item in the left frame of the window, which looks like "<svg:text id="text0000"> to highlight it. This sort of selects the invisible text. Move the editor to the side, and then switch to the Text tool. That makes a cursor start flashing in the place where the text should be. Then look at the status bar, and it will tell you the type of font and the size.
Sorry, I wish I had better info for you

Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Importing PDF: All text missing
Thanks very much for the research and tips!