印刷に関する資料 iOS

投稿者: | 2019年3月15日

印刷に関する資料ーiOS編

印刷というものはMobile時代において本来不要とされるもののせいか資料が少ない。

だからいざ印刷となったときのために資料を見つけ次第ここに書いておくことにする。最初はiOSの資料二つ。この二つの資料の内容を理解すれば、かなり高度な印刷機能が利用できることになる。

  1. The Gourmet iOS Developer’s Cookbook, Erica Sadun, Pearson Education, Inc., 2015

iOSのテキストとそのレイアウト操作に関する資料。ここまで詳しくまとまったものは少ない。目次は以下の通り。言語はObjective-C。

2 Dynamic Typography 25
Type Size and User Needs 25
How Dynamic Type Works 25
Listening for Type Updates 28
Handling Dynamic Type with Attributes 31
Scanning for Text Style Ranges 32
Applying Text Style Ranges 34
Attribute-Ready Dynamic Elements 35
Custom Fonts Faces 36
Dynamic Text Views 37
Custom Sizing 38
Font Descriptors 39
Descriptor Challenges 40
Fonts with Multiple Variations 41
Using String Attributes to Modify Fonts 42
Dynamic Type Gotchas 43
Wrap-up 43

3 Text Kit 45
Creating Complex Text Layouts 45
Glyphs 46
Text Storage 55
Layout Managers 56
Text Containers 56
Adaptive Flow 58
Insets 60
Exclusion Paths 60
Bounding Rectangles 62
Using Text Kit to Add Touch to Labels 63
Establishing Text Kit 63
Synchronizing 64
Translating Coordinates 65
Glyphs and Characters 66
Checking for Links 67
Adding Visual Feedback 67
Draggable Exclusion Zones 69
Building PDFs with Text Kit 71
Printing Text View Data 73
Printing PDF Data 74
Wrap-up 74

4 Attributed Strings and Document Containers 75
Class Enhancements 75
String Attachments 77
Building Attributed Strings from HTML 78
Document Type Dictionaries 79
Converting HTML Source to Attributed Strings 80
Converting Attributed Strings to Document
Representations 81
Generating HTML from Attributed Strings 82
Markup Initialization 83
RTF and RTFD 83
The RTFD Container 84
Initializing Attributed Strings from a File 84
Converting RTFD Text to Data 85
Writing RTFD Containers from Data 86
Inspecting Attributes 87
Establishing Document Attributes 89
Enhancing Attributed Strings 91
Returning Copies with New Attributes 92
Adjusting Attributes 93
Extending Mutable Attributed Strings 94
Text Ranges 95
Calculating Positions 95
Position Geometry 95
Updating Selection Points 97
Hardware Key Support 97
Wrap-up 99
  1. Mastering iOS Frameworks Beyond the Basics, Second Edition, Kyle Richter, Joe Keeley, Pearson Education, Inc., 2015

iOSのAirPrintについての資料。目次は以下の通り。最初の資料がテキストやそのレイアウトの解説だったのに対し、こちらはそれらをAirPrintで印刷する方法についてが主題である。

こちらも言語はObjective-C。

14 AirPrint 259
AirPrint Printers 259
Testing for AirPrint 261
Printing Text 261
Print Info 262
Setting Page Range 263
UISimpleTextPrintFormatter 263
Error Handling 264
Starting the Print Job 264
Printer Simulator Feedback 265
Print Center 266
UIPrintInteractionControllerDelegate 267
Printing Rendered HTML 268
Printing PDFs 269
Summary 270
カテゴリー: iOS

コメントを残す