如何从pdf文档中提取矢量图形?

时间:2022-10-30 12:01:23

I want to make a tool that extracts vector graphics from a pdf file with the help of a human. e.g. A person opens the pdf document using the tool and then selects the objects that he wants to save as a vector drawing. Are there any tools out there already doing this or any libraries that can be used to write my own tool. Language of the library can be(in decreasing preference) c#, VB.net, python or c/c++.

我想制作一个工具,在人类的帮助下从pdf文件中提取矢量图形。例如一个人使用该工具打开pdf文档,然后选择他想要保存为矢量图形的对象。是否有任何工具已经在这里或任何可用于编写我自己的工具的库。库的语言可以是(优先选择)c#,VB.net,python或c / c ++。

1 个解决方案

#1


Perhaps this is a tedious way, but if you print it using the XPS Document Writer, the vector graphics should be there in WPF XAML that you can use. The output document is just a zip archive with the different document elements

也许这是一种繁琐的方式,但如果你使用XPS Document Writer打印它,矢量图形应该在你可以使用的WPF XAML中。输出文档只是一个包含不同文档元素的zip存档

#1


Perhaps this is a tedious way, but if you print it using the XPS Document Writer, the vector graphics should be there in WPF XAML that you can use. The output document is just a zip archive with the different document elements

也许这是一种繁琐的方式,但如果你使用XPS Document Writer打印它,矢量图形应该在你可以使用的WPF XAML中。输出文档只是一个包含不同文档元素的zip存档