Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AirPrintについて iOSからプリンターに接続して印刷を実行する
Search
S-cubism
October 20, 2017
Technology
0
270
AirPrintについて iOSからプリンターに接続して印刷を実行する
S-cubism
October 20, 2017
Tweet
Share
More Decks by S-cubism
See All by S-cubism
WSLでreactの開発環境作った話
scubism
0
690
未経験者がAndroidアプリをリリースするまで
scubism
0
120
scubism_LT_20180223_細田謙二_イベントソーシング
scubism
0
160
REVEAL.JSをちょっとだけ使ってみた
scubism
0
260
忙しい人のための仮想通貨
scubism
0
110
サーバ作業の注意コマンド
scubism
0
130
最近勉強してること、次にやりたいこと
scubism
0
110
FOOD TECH
scubism
0
67
Firebase(Realtime Database)について
scubism
0
130
Other Decks in Technology
See All in Technology
EncryptedSharedPreferences が deprecated になっちゃった!どうしよう! / Oh no! EncryptedSharedPreferences has been deprecated! What should I do?
yanzm
0
190
Function Body Macros で、SwiftUI の View に Accessibility Identifier を自動付与する/Function Body Macros: Autogenerate accessibility identifiers for SwiftUI Views
miichan
2
180
開発者を支える Internal Developer Portal のイマとコレカラ / To-day and To-morrow of Internal Developer Portals: Supporting Developers
aoto
PRO
1
440
Webアプリケーションにオブザーバビリティを実装するRust入門ガイド
nwiizo
6
740
品質視点から考える組織デザイン/Organizational Design from Quality
mii3king
0
190
2025年になってもまだMySQLが好き
yoku0825
8
4.6k
roppongirb_20250911
igaiga
1
200
「全員プロダクトマネージャー」を実現する、Cursorによる仕様検討の自動運転
applism118
19
8.5k
AWSを利用する上で知っておきたい名前解決のはなし(10分版)
nagisa53
10
3k
250905 大吉祥寺.pm 2025 前夜祭 「プログラミングに出会って20年、『今』が1番楽しい」
msykd
PRO
1
680
[ JAWS-UG 東京 CommunityBuilders Night #2 ]SlackとAmazon Q Developerで 運用効率化を模索する
sh_fk2
3
380
DDD集約とサービスコンテキスト境界との関係性
pandayumi
3
280
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.4k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
61k
Mobile First: as difficult as doing things right
swwweet
224
9.9k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
187
55k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
139
34k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
9
810
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
Gamification - CAS2011
davidbonilla
81
5.4k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.6k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
8
520
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.1k
KATA
mclloyd
32
14k
Transcript
AirPrintについて iOSからプリンターに接続して印刷を実行する 2017/10/20 西田祐
AirPrintとは • 無線LANを通して、AirPrint対応のプリンター、 もしくはWindows、macOS、GNU/Linuxに接続している 非対応のプリンターに、iOS端末から直接印刷できる機能を指す。 MacOS X Lion以降と、iOS4.2以降に備わっている。 対応プリンターはHPのePrintシリーズ、 キヤノンの2011年9月以降発売のワイヤレスモデル、
ブラザー工業の一部機種、 エプソンの2011年秋以降モデル…が挙げられる。
参考) https://www.konicaminolta.eu/en/business- solutions/products/mobile-printing/apple-airprint.html
AirPrintを用いた印刷処理を記述する • 大まかな流れ 印刷の設定を定義する UIPrintInfoクラス シングルトンを取得、使用する UIPrintInteractionControllerクラス ページレンダラーをjoinする UIPrintPageRendererクラス
UIPrintInfoクラス • 印刷向き、コンテンツの種類、両面片面印刷などの指定が可能 jobName: ジョブの名前の設定ができる。 outputType: コンテンツの種類の指定ができる。 UIPrintInfoOrientationLandscape…印字のみの場合。白黒でデフォルトサイズがLetter/A4 UIPrintInfoOutputPhoto…写真印刷。カラー可。サイズは4×6、A6など UIPrintInfoOutputGeneral…字やイラストの混在の場合。サイズはLetter/A4など。
orientation: 印刷の向きの指定ができる。 UIPrintInfoOrientationLandscape…横向きの印刷 UIPrintInfoOrientationPortrait…縦向きの印刷
UIPrintInteractionControllerクラス • 設定、ページレンダラーをセット • 印刷 ・プリンターのIPアドレスからプリンターを直接指定して印刷することもできる
UIPrinterPickerControllerクラスについて • iOS8から使用可能となっているクラス。 • UIPrinterInteractionControllerクラスでは困難であった プリンター指定やViewのカスタマイズが楽に行えるようになったそう。
参考文献 • https://developer.apple.com/documentation/uikit/printing • https://ja.wikipedia.org/wiki/AirPrint • http://mokumokusan0205.blog.fc2.com/blog-entry-630.html • https://dev.classmethod.jp/references/ios8-uiprinterpickercontroller/ •
http://seesaakyoto.seesaa.net/article/442349010.html