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
300
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
AirPrintについて iOSからプリンターに接続して印刷を実行する
S-cubism
October 20, 2017
More Decks by S-cubism
See All by S-cubism
WSLでreactの開発環境作った話
scubism
0
730
未経験者がAndroidアプリをリリースするまで
scubism
0
150
scubism_LT_20180223_細田謙二_イベントソーシング
scubism
0
160
REVEAL.JSをちょっとだけ使ってみた
scubism
0
280
忙しい人のための仮想通貨
scubism
0
130
サーバ作業の注意コマンド
scubism
0
160
最近勉強してること、次にやりたいこと
scubism
0
130
FOOD TECH
scubism
0
80
Firebase(Realtime Database)について
scubism
0
140
Other Decks in Technology
See All in Technology
hookで自作する Claude Code の「実況ボード」
shinyasaita
1
160
ブラウザで変わるID連携(OAuth/OIDC Numa (Immersion) Workshop 2026)
oidfj
PRO
0
330
暗号化?某ファイルストレージはどうなるの!? 3rd Partyとうまく付き合う秘密度ラベル設計
kasada
0
210
Cloudflare製品を活用した AIガバナンス実践入門 / AI governance with Cloudflare Service
delta_tech
1
110
『自分で判断できるか』を基準に、プロダクトのハンズオン研修でAI利用の線を引いてみた / Where We Drew the Line on AI in Hands-on Training
honyanya
0
330
Master Dataグループ紹介資料
sansan33
PRO
1
4.8k
Claude Codeで開発以外の業務も爆速化しよう!
minorun365
PRO
9
8.3k
GopherCon @シアトル に行ってきました
logica0419
0
320
AI時代のデータ基盤を考える問い
pacocat
0
720
わたしが知り合いゼロの勉強会に 行けるようになるまで
r5ni4
2
820
DMMブックスのNext.js化を加速させるAI活用 / Migrating DMM Books to Next.js with AI
kentarom
0
130
AIで変わるエンジニアの働き方(仮)
naoinaoi
0
580
Featured
See All Featured
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
So, you think you're a good person
axbom
PRO
2
2.1k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Typedesign – Prime Four
hannesfritz
42
3.1k
Ruling the World: When Life Gets Gamed
codingconduct
0
310
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
300
Navigating Weather and Climate Data
rabernat
0
490
Navigating Team Friction
lara
192
16k
The browser strikes back
jonoalderson
0
1.6k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.1k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
710
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
290
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