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
280
AirPrintについて iOSからプリンターに接続して印刷を実行する
S-cubism
October 20, 2017
Tweet
Share
More Decks by S-cubism
See All by S-cubism
WSLでreactの開発環境作った話
scubism
0
710
未経験者がAndroidアプリをリリースするまで
scubism
0
140
scubism_LT_20180223_細田謙二_イベントソーシング
scubism
0
160
REVEAL.JSをちょっとだけ使ってみた
scubism
0
270
忙しい人のための仮想通貨
scubism
0
120
サーバ作業の注意コマンド
scubism
0
140
最近勉強してること、次にやりたいこと
scubism
0
110
FOOD TECH
scubism
0
70
Firebase(Realtime Database)について
scubism
0
130
Other Decks in Technology
See All in Technology
アラフォーおじさん、はじめてre:Inventに行く / A 40-Something Guy’s First re:Invent Adventure
kaminashi
0
190
AWSの新機能をフル活用した「re:Inventエージェント」開発秘話
minorun365
2
520
Redshift認可、アップデートでどう変わった?
handy
1
110
re:Invent2025 セッションレポ ~Spec-driven development with Kiro~
nrinetcom
PRO
2
160
20251203_AIxIoTビジネス共創ラボ_第4回勉強会_BP山崎.pdf
iotcomjpadmin
0
160
Microsoft Agent Frameworkの可観測性
tomokusaba
1
120
Knowledge Work の AI Backend
kworkdev
PRO
0
340
[2025-12-12]あの日僕が見た胡蝶の夢 〜人の夢は終わらねェ AIによるパフォーマンスチューニングのすゝめ〜
tosite
0
220
2025年の医用画像AI/AI×medical_imaging_in_2025_generated_by_AI
tdys13
0
240
ペアーズにおけるAIエージェント 基盤とText to SQLツールの紹介
hisamouna
2
1.9k
AR Guitar: Expanding Guitar Performance from a Live House to Urban Space
ekito_station
0
270
Claude Codeを使った情報整理術
knishioka
15
11k
Featured
See All Featured
What does AI have to do with Human Rights?
axbom
PRO
0
1.9k
How GitHub (no longer) Works
holman
316
140k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Designing Powerful Visuals for Engaging Learning
tmiket
0
190
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
35
Rails Girls Zürich Keynote
gr2m
95
14k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
140
Mind Mapping
helmedeiros
PRO
0
42
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.3k
YesSQL, Process and Tooling at Scale
rocio
174
15k
The World Runs on Bad Software
bkeepers
PRO
72
12k
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