問題タブ [nsprintinfo]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
swift - PDFDocument の PrintPanel に「PageSetupAccessory」を追加
を表示するアプリがありPDFView
、ビューから PDF ファイルを印刷したい。また、印刷パネルにページ設定アクセサリ (つまり、オプションのドロップダウン リストの 1 つのパネルとして表示されるプレビューのように、用紙サイズ、方向、およびスケールの設定) を表示する必要があります。
PDFView
現在、 PDF ドキュメント自体ではなく、誤って を印刷しています。これにより、1 ページしか得られず、印刷にスクロールバーが含まれます。ではなくaを参照init
する方法がわかりません。NSPrintOperation
PDFDocument
PDFView
これは私のコードです。これは機能しますが、私が望むものではありません。PanelprintDocument
とprintOperation
Info NSDocument
.