'Download as single PDF' flag passed to bulkDownload service
This commit is contained in:
parent
64bc64b630
commit
789c14cc51
@ -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())
|
||||
|
@ -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' }
|
||||
|
Loading…
x
Reference in New Issue
Block a user