开发者

Free way to convert PDF to XPS with C#

开发者 https://www.devze.com 2022-12-10 18:50 出处:网络
Are there any free tools that I can use to convert a PDF document into an XPS document?Although a nice programmatic API would be nice, I\'m not opposed to开发者_开发知识库 shelling out to a command li

Are there any free tools that I can use to convert a PDF document into an XPS document? Although a nice programmatic API would be nice, I'm not opposed to开发者_开发知识库 shelling out to a command line tool to do the conversion.

Thanks!


AbcPdf version 7 includes this funcationality, if you link back to their site you can have a free license key. Utilize the save method to accomplish PDF - XPS conversions.

XPS is exported only if the supplied path ends with ".xps", and it requires the .NET Framework 3.0. XPS is supported via Doc.SaveOptions.FileExtension of the Save method when saving to a stream. Set this property to either ".xps" or "xps" otherwise a conventional PDF output will be generated. XPS streams must have FileAccess.ReadWrite and not simply FileAccess.Write otherwise the operation will fail.

virtual void Save(Stream stream)
0

精彩评论

暂无评论...
验证码 换一张
取 消