前提・実現したいこと
React Nativeでアンケートのアプリを作成しています
回答後、回答内容を白黒、両面印刷し、それを渡して次へ回っていただきます
発生している問題
白黒、両面印刷を指定できない
現在の実装
現在、Expo.Print.printAsyncを使って印刷を行っています
Expo.Print.printAsync({ html: html });
html
1<html> 2 <style type="text/css"> 3 @media all { 4 body { 5 /* IE4-8 and 9 (deprecated). */ 6 filter: Gray(); 7 /* SVG version for IE10, Chrome 17, FF3.5, 8 Safari 5.2 and Opera 11.6 */ 9 filter: url('#grayscale'); 10 /* CSS3 filter, at the moment Webkit only. Prefix it for 11 future implementations */ 12 -webkit-filter: grayscale(100%); 13 filter: grayscale(100%); /* future-proof */ 14 } 15 } 16 </style> 17 <body> 18 回答の内容 19 </body> 20</html>
質問
プリントのダイアログを表示した時点で白黒、両面が指定されている状態にしたいのですが、方法はあるのでしょうか?
あなたの回答
tips
プレビュー