Inkscape Community

Help Using Inkscape => Beyond the Basics => Topic started by: anne journeau on October 29, 2018, 01:43:49 AM

Title: Chunked text blocks in svg when converting from pdf to svg using Inkscape 0.92.2
Post by: anne journeau on October 29, 2018, 01:43:49 AM
We use Inskcape PDF Import function (Poppler/Cairo import settings) to convert a schematic in pdf format to svg However all text blocks are chunked in the svg output. Do you know how the text blocks could be preserved?

 Thank you in advance for you help
Title: Re: Chunked text blocks in svg when converting from pdf to svg using Inkscape 0.92.2
Post by: Moini on October 29, 2018, 04:18:17 AM
Try a different way of importing  - there are two in the dialog, one via poppler, and one internal. Does any one of them help?
Title: Re: Chunked text blocks in svg when converting from pdf to svg using Inkscape 0.92.2
Post by: brynn on October 29, 2018, 05:08:51 AM
What do you mean by "chunked"?  When I compare your SVG to the PDF, the text looks the same.  So I'm not sure if I understand the problem.
Title: Re: Chunked text blocks in svg when converting from pdf to svg using Inkscape 0.92.2
Post by: anne journeau on October 29, 2018, 05:23:44 AM
Try a different way of importing  - there are two in the dialog, one via poppler, and one internal. Does any one of them help?
[/quote]

Same issue with both ways, poppler or internal 
Title: Re: Chunked text blocks in svg when converting from pdf to svg using Inkscape 0.92.2
Post by: anne journeau on October 29, 2018, 05:25:40 AM
Hello,

I mean the a signel text string such as "RESET" becomes 4 character strings "RE""S""E""T" in the svg
Title: Re: Chunked text blocks in svg when converting from pdf to svg using Inkscape 0.92.2
Post by: brynn on October 29, 2018, 06:44:49 AM
Oh, I see.  I'm sorry if this might seem obvious to you.  But why it is a problem if you have extra text objects, where one word is now a few to several letters, if it still looks like a word?

I think there might be an extension which addresses this.  I think it's a little outdated, and it might not work with the current version of Inkscape.  But it certainly can't hurt to try it.  Ok, here it is:  https://github.com/chelobaka/fix-text-lines  Here are instructions for installing an external extension, in case you don't see any on the download page.  (If you see instructions on the download page that are different, then follow those instead.)  https://inkscape.org/learn/faq/#how-install-new-extensions-palettes-document-templates-symbol-sets-icon-sets-etc

That extension is meant to address when a former paragraph was changed into single lines.  I don't know exactly how it works.  But I'm thinking there's a chance it might work for you, where a single word is changed to separate letters.
Title: Re: Chunked text blocks in svg when converting from pdf to svg using Inkscape 0.92.2
Post by: brynn on October 29, 2018, 06:53:45 AM
Hhmm....  Actually there's an extension which comes packed with Inkscape (Extensions menu > Text > Merge).  I don't know exactly what it does, and I can't figure it out just by looking at it.  But by the word "merge" it sort of sounds like it might work.

But again, looking it it, it's not at all obvious what it does or how to use it.  Maybe the manual....  Nope, rats, not covered in the manual.

Well, just by guessing at how to use it, it doesn't appear to take 2 separate text objects and make them into one.  Although I certainly could have guessed wrong.

Maybe someone else knows?