Processing Illustrator or pdf files into XAML

后端 未结 4 796
庸人自扰
庸人自扰 2021-01-13 04:13

What are the alternatives to process illustrator files or PDFs into XAML. My Current workflow works like this:

  1. Open the PDF file in Adobe illustrator
4条回答
  •  再見小時候
    2021-01-13 04:46

    Well an XPS file is actually a ZIP file. So if you open it with a ZIP-archiver or if you rename its extension to ZIP you can see what is inside. It already contains the pages as XAML code (those files have the form [pagenumber].fpage). However, that XAML code may refer to other files (like raster images and font subset files, those are typically odttf files - basically encrypted true type files) that are included in that ZIP archive as well. Which means, that the XAML code that you find in an XPS document may not be directly usable as pure XAML in your application. I have written python scripts to do the conversion of XAML taken from XPS documents (generated by the Microsoft XPS Document Writer) to get XAML files that my application can load (see approaches 1 and 2 above). I could send you copies of those python scripts (they are not particularly great code, which is no problem for me since I am now using a different approach to convert PDFs to XAML anyway).

提交回复
热议问题