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
290
0
Share
AirPrintについて iOSからプリンターに接続して印刷を実行する
S-cubism
October 20, 2017
More Decks by S-cubism
See All by S-cubism
WSLでreactの開発環境作った話
scubism
0
720
未経験者がAndroidアプリをリリースするまで
scubism
0
140
scubism_LT_20180223_細田謙二_イベントソーシング
scubism
0
160
REVEAL.JSをちょっとだけ使ってみた
scubism
0
270
忙しい人のための仮想通貨
scubism
0
130
サーバ作業の注意コマンド
scubism
0
150
最近勉強してること、次にやりたいこと
scubism
0
120
FOOD TECH
scubism
0
78
Firebase(Realtime Database)について
scubism
0
130
Other Decks in Technology
See All in Technology
Every Conversation Counts
kawaguti
PRO
0
140
[Oracle TechNight#99] 生成AI時代のAI/ML入門 ~ AIとオラクルデータベースの関係 (後半)
oracle4engineer
PRO
3
240
[Oracle TechNight#99] 生成AI時代のAI/ML入門 ~ AIとオラクルデータベースの関係 (前半)
oracle4engineer
PRO
2
240
小さいVue.jsを30分で作る
hal_spidernight
0
140
多角的な視点から見たAGI
terisuke
0
130
エンタープライズの厳格な制約を開発者に意識させない:クラウドネイティブ開発基盤設計/cloudnative-kaigi-golden-path
mhrtech
0
360
OWASP APTSを眺めてみた
su3158
0
130
大学職員のための生成AI最前線 :最前線を、AIガバナンスとして読み直すためのTips
gmoriki
2
3.8k
ファインディの事業拡大を支える 拡張可能なデータ基盤へのリアーキテクチャ
hiracky16
0
940
freeeで運用しているAIQAについて
qatonchan
0
350
ブラウザの投機的読み込みと投機ルールAPIを理解し、Webサービスのパフォーマンスを最適化する
shuta13
3
290
The 7 pitfalls of AI
ufried
0
200
Featured
See All Featured
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
110
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Become a Pro
speakerdeck
PRO
31
5.9k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
70
39k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
350
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
280
Exploring anti-patterns in Rails
aemeredith
3
350
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
340
Test your architecture with Archunit
thirion
1
2.2k
[SF Ruby Conf 2025] Rails X
palkan
2
1k
Music & Morning Musume
bryan
47
7.2k
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