What I need
I am trying to convert a large PDF file to SVG format. I want the SVG file to be able to highlight words (like I can with the PDF) when I open it up using a web browser for example. This PDF has diagrams and different background boxes for different sections of text etc.
Linux Mint 20 using BASH but I also have access to a Windows PC if there is some Windows only software available for this. I can also install a different distro if for some reason there is an rpm tool or something that isn't available for Mint.
What I tried
I have tried the following options on a single page from the PDF (1.pdf) with the corresponding results.
inkscape --without-gui --file=1.pdf --export-plain-svg=1.svg - Highlighting works. The font gets ruined, spacing between words has problems, some letters disappear.
pdf2svg (https://github.com/dawbarton/pdf2svg) -
pdf2svg 1.pdf 1.svg - pdf2svgResults were that the svg looked good but highlighting did not work anymore.
convert (ImageMagick) -
convert 1.pdf 1.svg - Results were that the svg looked good but highlighting did not work anymore.
dvisvgm --pdf --output=1.svg 1.pdf - I also tried using the options
--no-fonts as well as running svgcleaner afterwards - Results were always that the svg looked good but highlighting did not work anymore.
pstoedit + xfig -
pstoedit -f fig 1.pdf 1.fig - using xfig to open the file I can already see the font is completely messed up with black filling the "e"s and spacing problems etc.
Maybe there are some Inkscape options I am missing or something but I could not find them looking at the man pages. I do not know what exact font the PDF is using, but it is not some weird one, generally looks normal.
If anyone knows of a tool I didn't try or options I haven't tried for tools I used or anything else I would greatly appreciate any help!
Thank you for your time!