# Conflicts: # frontend/ios/App/App.xcodeproj/project.pbxproj
This commit is contained in:
commit
f7e69ac6df
7 files changed
+155
-7
No files matched your search
@@ -182,6 +182,18 @@ export async function shareExport(json, filename) {
|
||||
await Share.share({ title: filename, url: w.uri })
|
||||
}
|
||||
|
||||
// Hand a self-contained HTML document (lib/plan-share.js planPrintHTML) to the OS print flow.
|
||||
// Android routes it through the system PrintManager — "Save as PDF", "Save to Drive", a real
|
||||
// printer; iOS through the print sheet — "Save to Files" (as PDF), share, print. Either way the
|
||||
// platform renders the PDF, so no PDF library rides in the bundle. The local `Print` plugin is
|
||||
// registered natively (android MainActivity, ios PrintPlugin.m); on the web build this file's
|
||||
// callers gate on MOBILE and never reach here.
|
||||
export async function printHtml(html, name) {
|
||||
const { registerPlugin } = await import('@capacitor/core')
|
||||
const Print = registerPlugin('Print')
|
||||
await Print.printHtml({ html, name })
|
||||
}
|
||||
|
||||
// "Auto-backup on changes" (Settings): a dated snapshot dropped into the Documents folder —
|
||||
// visible in Files (iOS) / a file manager (Android), unlike the private mirror nativeSave keeps
|
||||
// — so whatever the user points at that folder (a sync app, a manual copy) always has something
|
||||
|
||||
Reference in new issue
Block a user