'Download as single PDF' flag passed to bulkDownload service

This commit is contained in:
Łukasz Czyż 2023-12-11 22:30:02 +01:00
parent 64bc64b630
commit 789c14cc51
2 changed files with 3 additions and 0 deletions

View File

@ -513,6 +513,7 @@ export class BulkEditorComponent
.bulkDownload(
Array.from(this.list.selected),
downloadFileType,
this.downloadForm.get('downloadAsSingleFile').value,
this.downloadForm.get('downloadUseFormatting').value
)
.pipe(first())

View File

@ -191,6 +191,7 @@ export class DocumentService extends AbstractPaperlessService<PaperlessDocument>
bulkDownload(
ids: number[],
content = 'both',
mergeIntoSingleFile: boolean = false,
useFilenameFormatting: boolean = false
) {
return this.http.post(
@ -198,6 +199,7 @@ export class DocumentService extends AbstractPaperlessService<PaperlessDocument>
{
documents: ids,
content: content,
single_file: mergeIntoSingleFile,
follow_formatting: useFilenameFormatting,
},
{ responseType: 'blob' }