Hi,
See my comments in
https://stackoverflow.com/questions/73866819/pdf2svguse-pdfbox-and-batik-to-generate-svg-files-but-no-text
I've also put on my long TODO list to test that commit
https://github.com/AlexanderScherbatiy/pdfbox/commit/b806d44f9514a7b5fededfa49c98ad2858b93a92
in
https://issues.apache.org/jira/browse/PDFBOX-5093
when I have more time. But I expect it to be good, this guy is part of
the java team itself.
Note that you don't have to bother with the last file (PDFPrintable) in
that commit, that change has been done in PDFBox.
Tilman
On 28.09.2022 11:20, Adger Li wrote:
Hello, I use PDFBox and batik to generate svg files, but all texts in the
generated svg files become paths.
This is:
PDDocument document = PDDocument.load(pdfFile);
Printable page = new PDFPrintable(document);
SVGGraphics2D svgGenerator = new SVGGraphics2D(ctx, false);
page.print(svgGenerator, pageFormat, i);
svgGenerator.stream(svgFName,true);
I want to know how to make PDFBox keeps font information when printing. Thank
you very much!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org