Is there a way to display postscript (.ps) files on iOS?

十年热恋 提交于 2019-12-11 02:25:30

问题


I need to display .ps files in an iOS app. Native support for .ps to .pdf conversion appears to be switched off -- CGPSConverter,

  https://developer.apple.com/documentation/coregraphics/cgpsconverter?language=occ

are not available on iOS:

  https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_ps_convert/dq_ps_convert.html

Does anyone know of another way? Is there any 3rd party library that could help me here?

Please note that a Ghostscript/Pdftk based solution won't work due to GPL licensing terms.


回答1:


Please note that Ghostscript is available under a commercial licence as well as GPL. In order to render a PostScript file you will need a PostScript interpreter, and there aren't very many of those. All the ones I know of are either GPL or commercial.



来源:https://stackoverflow.com/questions/12225962/is-there-a-way-to-display-postscript-ps-files-on-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!