Unit tests are a lot less important if you have a good type system and compiler checking things already. IMO, they're much more suited to building apps in dynamic languages. But if you don't care to do that, nothing's as fast and clean both to develop and for the end-user to use as every platform's native framework. Yup, it'll be a major pain to ever port to another platform. Writing GUI apps against the native framework. Maybe then it's okay to trade off raw speed for not handing a ton of formatting and syntax edge cases. I guess it's sort of okay if you expect to only be reading your local config files versus arbitrary web content. Rolling your own JSON, XML, etc parsers raises some eyebrows. Net code I posted on another forum a few months ago.Upvoted for a number of interesting and unconventional opinions. It contains some more information and a link to some working. Have a look at this SO question I answered today. It's not a big challenge, and it's certainly easier than having to massage the other rendering engines into. The drawback is that you will need to either re-package it to install it with your app, or make it a pre-requisite (or at least a part of your install process). You may still want to consider using GhostScript as an interpreter because rendering pages is a fairly simple process. Most other open source libraries are only used for creating and managing PDF pages and I don't know any that actually does rendering it's such a hard problem to solve right. There is also Poppler, a rendering engine that uses Xpdf as a rendering engine.Īll of these are great but they will require a fair amount of commitment to make make them work and interface with. If you want to avoid dependencies that you can't bundle then maybe you could have a look at the source code for SumatraPDF, an OpenSource PDF viewer for windows that uses MuPDF. There are some commercial renderers and very few free ones. I'm not sure what you call a 'dependency' since you'll always have to rely on some external code to render the PDF unless you bundle the whole PDF rendering source inside your project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |