Kotlin-Ready Online Guides

Kotlin-Ready Online Guides

Our Android guides for PSPDFKit received a large update – now with Kotlin usage examples. Kotlin(opens in a new tab) is a statically-typed programming language, and is currently booming for Android development.

Our guides(opens in a new tab) now sport articles about all relevant parts of PSPDFKit, both for iOS and Android – giving detailed code examples in the selected language.

Java & Kotlin code switching

Syntax highlighting is done via Rouge(opens in a new tab), a ruby based syntax highlighter which we were already using for highlighting all of our Java, Objective-C, and Swift code examples. Since the Kotlin lexer is still a work-in-progress (it's an open PR at the Rouge repo(opens in a new tab)) we went ahead and forked Rouge to our PSPDFKit-Labs(opens in a new tab) GitHub organization and added some tweaks (Update: the changes from our fork were merged(opens in a new tab)). Special thanks to Matt Ellis for creating the original pull request.

If you're an Android developer using Kotlin and PSPDFKit, please let us know – we would be happy if you would send us your feedback and further ideas.

David Schreiber-Ranner

David Schreiber-Ranner

Explore related topics

FREE TRIAL Ready to get started?