Publisher Description
The pdf file is supplied by the Japanese Patent Office for downloading with free of charge. This pdf describes the official view from JPO for each article as commentaries. Browsing it in iBooks causes some problems. - Opening the document is slow especially iBook is used to read other books. - When a user wants to read a particular article, the user has to find it manually . - Highlighting is not available for PDFs. This application is based on PDF reader https://github.com/vfr/Reader , which renders PDF by using CoreGraphicis PDF library. However, CoreGraphics PDF library does not have search functionality. They only supplies low level APIs. To solve these issues, we have built the search index on Mac. By using Quartz PDF library on Mac, users can access the layout information easily. Thus the iOS app can access text information, enabling searching as well as highlighting/underlining. The search index is bundled with the app that has been shipped. The search index is built with Ream Swift. Ream Swift is built to go well with Swift. Fetching query/sorting is described as Swift Array s chaining. e.g. let sortedDogs = realm.objects(Dog.self).filter("color = 'tan' AND name BEGINSWITH 'B'").sorted(byProperty: "name") It needed to be careful that the resulted collection is lazily instantiated and actual fetching occurs when accessing attributes. Realm file is synchronised across devices via iCloud Documents. Other considerations Some Japanese characters in this pdf were re-compiled when making the search index. For example, the letter (U+304B U+3099) is used in the original PDF, which is coded as (U+304B) and a phonetic accent mark (U+3099). They are converted to more common single letter (U+304C) in the search index. To not violate the copyright law, users need to download the original PDF by themselves to install. Creating search index for the analysing purpose is an exception to the copyright law. The search index file is 33MB, consists of 1.3 million records. Each record represents a letter and its layout information. This app is based on PDF reader https://github.com/vfr/Reader , with original overlay feature, such as highlighting, text selection. The text selection UI is consists of original vertical magnifying glass with draggable knobs. The project is built on Swift/Objective-C with DDD+MVVC, including 4000 lines of original Swift code and 800 lines of original ObjC codes (measured with CLOC). Acknowledgement: https://github.com/vfr/Reader ( ) 19 PDF iPhone iPad ( ) PDF Safari PDF or iCloud Drive PDF iCloud Drive Acknowledgements https://github.com/vfr/Reader
Requires iOS 9.3 or later. Compatible with iPhone, iPad, and iPod touch.