|
193 | 193 | </div> |
194 | 194 | </div> |
195 | 195 |
|
| 196 | + <div class="field"> |
| 197 | + <label class="label is-small" x-text="t('paperSize')"></label> |
| 198 | + <div class="control"> |
| 199 | + <div class="select is-fullwidth"> |
| 200 | + <select x-model="scanConfig.paperSize" @change="debounceSaveSettings()"> |
| 201 | + <template x-for="ps in ['auto', 'a4', 'a5', 'business_card', 'postcard']" :key="ps"> |
| 202 | + <option :value="ps" x-text="t('paper_' + ps)"></option> |
| 203 | + </template> |
| 204 | + </select> |
| 205 | + </div> |
| 206 | + </div> |
| 207 | + </div> |
| 208 | + |
196 | 209 | <div class="field"> |
197 | 210 | <label class="label is-small" x-text="t('outputFormat')"></label> |
198 | 211 | <div class="control"> |
|
468 | 481 | status: null, |
469 | 482 | tick: 0, |
470 | 483 | lang: localStorage.getItem('lang') || (navigator.language.startsWith('ja') ? 'ja' : 'en'), |
471 | | - scanConfig: { colorMode: 'auto', resolution: '0', duplex: false, format: 'application/pdf', blankPageRemoval: true, bleedThrough: false, bwDensity: 0, saveType: 'none', savePath: '', ftpHost: '', ftpUser: '', ftpPassword: '', paperlessUrl: '', paperlessToken: '', forcePaperAuto: false }, |
| 484 | + scanConfig: { colorMode: 'auto', resolution: '0', duplex: false, format: 'application/pdf', blankPageRemoval: true, bleedThrough: false, bwDensity: 0, paperSize: 'auto', saveType: 'none', savePath: '', ftpHost: '', ftpUser: '', ftpPassword: '', paperlessUrl: '', paperlessToken: '', forcePaperAuto: false }, |
472 | 485 | scanJob: { scanning: false, lastError: '', lastScan: '', pages: 0, filePath: '' }, |
473 | 486 | scanPreview: { scanning: false, error: '', pages: [], showModal: false, currentPage: 0 }, |
474 | 487 | settingsReady: false, |
|
522 | 535 | ftpPassword: s.ftpPassword || '', |
523 | 536 | paperlessUrl: s.paperlessUrl || '', |
524 | 537 | paperlessToken: s.paperlessToken || '', |
| 538 | + paperSize: s.paperSize || 'auto', |
525 | 539 | forcePaperAuto: s.forcePaperAuto || false, |
526 | 540 | }; |
527 | 541 | this.clampToCapabilities(); |
|
573 | 587 | ftpPassword: this.scanConfig.ftpPassword, |
574 | 588 | paperlessUrl: this.scanConfig.paperlessUrl, |
575 | 589 | paperlessToken: this.scanConfig.paperlessToken, |
| 590 | + paperSize: this.scanConfig.paperSize, |
576 | 591 | forcePaperAuto: this.scanConfig.forcePaperAuto, |
577 | 592 | }; |
578 | 593 | const resp = await fetch('api/settings', { |
|
0 commit comments