Export all Documents to PDF

Is it possible to export all my documents to PDF with one command? I have about 500 documents so a manual export is not feasible. The paperwork-cli supports only single document exports to my knowledge.


You can do it with the GUI by starting a multiple selection:


From the shell, assuming you’re using Linux, you can script around this limitation. Something similar to the script below should do the trick:

for doc_id in $(paperwork-json search --limit=9999999 | jq -rc '.[]') ; do
  paperwork-cli export ${doc_id} --out ${doc_id}.pdf -f doc_to_pages -f img_boxes -f generated_pdf