'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(
|
.bulkDownload(
|
||||||
Array.from(this.list.selected),
|
Array.from(this.list.selected),
|
||||||
downloadFileType,
|
downloadFileType,
|
||||||
|
this.downloadForm.get('downloadAsSingleFile').value,
|
||||||
this.downloadForm.get('downloadUseFormatting').value
|
this.downloadForm.get('downloadUseFormatting').value
|
||||||
)
|
)
|
||||||
.pipe(first())
|
.pipe(first())
|
||||||
|
@ -191,6 +191,7 @@ export class DocumentService extends AbstractPaperlessService<PaperlessDocument>
|
|||||||
bulkDownload(
|
bulkDownload(
|
||||||
ids: number[],
|
ids: number[],
|
||||||
content = 'both',
|
content = 'both',
|
||||||
|
mergeIntoSingleFile: boolean = false,
|
||||||
useFilenameFormatting: boolean = false
|
useFilenameFormatting: boolean = false
|
||||||
) {
|
) {
|
||||||
return this.http.post(
|
return this.http.post(
|
||||||
@ -198,6 +199,7 @@ export class DocumentService extends AbstractPaperlessService<PaperlessDocument>
|
|||||||
{
|
{
|
||||||
documents: ids,
|
documents: ids,
|
||||||
content: content,
|
content: content,
|
||||||
|
single_file: mergeIntoSingleFile,
|
||||||
follow_formatting: useFilenameFormatting,
|
follow_formatting: useFilenameFormatting,
|
||||||
},
|
},
|
||||||
{ responseType: 'blob' }
|
{ responseType: 'blob' }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user