I am trying to edit text from a PDF file – but when I enter the new text, it jumbles it up. What do I need to do to fix this? For instance, below I wanted to insert Hourly into ‘Percent Maximum Concentration`.
The path for the text object has:
<g id="g10872"> <g clip-path="url(#clipPath10878)" id="g10874"> <text id="text10882" style="font-variant:normal;font-weight:normal;font-size:11px;font-family:Helvetica;-inkscape-font-specification:Helvetica;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none" transform="matrix(1,0,0,-1,115.27,141.72)"> <tspan id="tspan10880" sodipodi:role="line" y="0" x="0 6.7870002 12.903 16.566 22.066 28.181999 34.298 37.355999 40.414001 49.577 55.693001 61.193001 63.634998 72.688004 78.804001 87.967003 91.025002 98.967003 105.083 111.199 116.699 122.815 128.931 131.989 135.54201 141.658 144.716 147.158 153.274">Percent Maximum Concentration</tspan> </text>
Answer
To restore normal editing functionality of text in tspan
element, set the x-attribute of the tspan
element to 0
:
<tspan
id="tspan10880"
sodipodi:role="line"
y="0"
x="0">Percent Maximum Concentration</tspan>
- Select
internal importer
during the import - Edit the xml using the Inkscape XML Editor
Edit > XML Editor
- Tested with inkscape 0.92.2
Attribution
Source : Link , Question Author : James Thomas Durant , Answer Author : FWrnr