简体   繁体   中英

How to convert SVG text to SVG paths?

I have SVG file (created by com.spire.pdf) and this SVG created from pdf file (pdf file created from html using iText lib).

So i need to convert this SVG to SVG with another tags(path), or SVG to PDF.

All tags in my example is like this: <text style="fill:#000000;font-family:Arial;font-weight:bold;" font-size="10" x="36" y="46.21002" letter-spacing="-0.075">2020</text> <text style="fill:#000000;font-family:Arial;font-weight:bold;" font-size="10" x="36" y="46.21002" letter-spacing="-0.075">2020</text>

I'm find lib, where it's possible to convert (inkscape) where i can by this paramether --export-text-to-path made my SVG file unable to select text.

The final goal i`m need PDF file where unposible to select text from there. (like it was created from image).

There is ways to convert SVG "text" file to SVG "image" file or to pdf?

Inkscape not good for me as i want to do it in java code (Spring boot app)

For now, I'm find only one lib where it's possible to do: inkscape with --export-text-to-path param.

Inkscape work in few threads, and can be runned from java. Convertions are slow, and size of exported files depends of version of inkscape.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM