[{"data":1,"prerenderedAt":865,"buildId":866},["ShallowReactive",2],{"\u002Fguides\u002Ffile-scans-in-paperless":3,"\u002Fguides\u002Ffile-scans-in-paperless-surround":554,"navigation":565},{"id":4,"title":5,"body":6,"description":546,"extension":547,"meta":548,"navigation":549,"path":550,"seo":551,"stem":552,"__hash__":553},"docs\u002F7.guides\u002F10.file-scans-in-paperless.md","File scans in Paperless",{"type":7,"value":8,"toc":525},"minimark",[9,35,39,44,70,74,149,153,158,207,211,230,234,329,333,360,364,370,374,398,402,460,464,468,489,493,509,513],[10,11,12,13,17,18,22,23,30,31,34],"p",{},"Scanning a letter with your phone and uploading it to Avenvail is quick; getting it into your document archive is another chore. This guide builds a ",[14,15,16],"strong",{},"library workflow"," that sends every PDF uploaded to a ",[19,20,21],"em",{},"Scans"," folder to ",[24,25,29],"a",{"href":26,"rel":27},"https:\u002F\u002Fdocs.paperless-ngx.com",[28],"nofollow","Paperless-ngx",", titled after the file and tagged ",[19,32,33],{},"inbox",", and saves the document's Paperless link on the file.",[36,37],"workflow-diagram",{":steps":38},"[{\"name\":\"File uploaded\",\"summary\":\"PDF, JPEG, PNG in Scans\",\"trigger\":true},{\"name\":\"Send to Paperless\",\"summary\":\"Tagged inbox\",\"icon\":\"i-lucide-file-text\"}]",[40,41,43],"h2",{"id":42},"what-youll-build","What you'll build",[10,45,46,47,51,52,54,55,58,59,61,62,65,66,69],{},"Uploading ",[48,49,50],"code",{},"water-bill-november.pdf"," to ",[19,53,21],{}," creates a Paperless document titled ",[19,56,57],{},"water-bill-november",", tagged ",[19,60,33],{},". Paperless runs its own OCR and matching on it as usual. Back in Avenvail, the file's ",[14,63,64],{},"Paperless"," field links to the document, such as ",[48,67,68],{},"https:\u002F\u002Fpaperless.example.com\u002Fdocuments\u002F128\u002Fdetails",".",[40,71,73],{"id":72},"before-you-start","Before you start",[75,76,77,88],"table",{},[78,79,80],"thead",{},[81,82,83,86],"tr",{},[84,85],"th",{},[84,87],{},[89,90,91,100,108,116,124,141],"tbody",{},[81,92,93,97],{},[94,95,96],"td",{},"Difficulty",[94,98,99],{},"Beginner",[81,101,102,105],{},[94,103,104],{},"Time",[94,106,107],{},"About 10 minutes",[81,109,110,113],{},[94,111,112],{},"Workflow kind",[94,114,115],{},"Library workflow",[81,117,118,121],{},[94,119,120],{},"Connections",[94,122,123],{},"A Paperless-ngx connection",[81,125,126,129],{},[94,127,128],{},"Folders, tags, fields",[94,130,131,132,134,135,138,139],{},"A ",[19,133,21],{}," folder, and a ",[14,136,137],{},"Link"," field called ",[19,140,64],{},[81,142,143,146],{},[94,144,145],{},"Sample file",[94,147,148],{},"Any PDF or photo of a document",[40,150,152],{"id":151},"build-it","Build it",[154,155,157],"h3",{"id":156},"connect-paperless","Connect Paperless",[159,160,161,169,186],"ol",{},[162,163,164,165,168],"li",{},"In Paperless, open your profile at the top right and copy the ",[14,166,167],{},"API Auth Token"," (create one if there isn't one).",[162,170,171,172,175,176,179,180,182,183,69],{},"In Avenvail, open ",[14,173,174],{},"Automations › Connections",", click ",[14,177,178],{},"Add connection"," and choose ",[14,181,29],{}," under ",[14,184,185],{},"Photo and document libraries",[162,187,188,189,192,193,196,197,200,201,204,205,69],{},"Set ",[14,190,191],{},"Address"," to where you open Paperless, such as ",[48,194,195],{},"https:\u002F\u002Fpaperless.example.com",", and ",[14,198,199],{},"API token"," to the token. Click ",[14,202,203],{},"Test connection",", then ",[14,206,178],{},[154,208,210],{"id":209},"create-the-field-and-folder","Create the field and folder",[10,212,213,214,217,218,220,221,223,224,227,228,69],{},"In ",[14,215,216],{},"Settings › Fields",", create a field called ",[19,219,64],{}," with the type ",[14,222,137],{},". In ",[14,225,226],{},"Files",", create a folder called ",[19,229,21],{},[154,231,233],{"id":232},"create-the-workflow","Create the workflow",[159,235,236,250,277,323],{},[162,237,238,239,175,242,179,245,247,248,69],{},"Open ",[14,240,241],{},"Automations",[14,243,244],{},"New workflow",[14,246,115],{},". Name it ",[19,249,5],{},[162,251,252,253,256,257,260,261,264,265,268,269,196,272,260,275,69],{},"Choose the ",[14,254,255],{},"File uploaded"," trigger, with ",[14,258,259],{},"File types"," ",[48,262,263],{},"application\u002Fpdf",", ",[48,266,267],{},"image\u002Fjpeg"," and ",[48,270,271],{},"image\u002Fpng",[14,273,274],{},"Folder",[19,276,21],{},[162,278,279,280,283,284],{},"Add ",[14,281,282],{},"Send to Paperless"," after it, and set:\n",[285,286,287,293,303,311],"ul",{},[162,288,289,292],{},[14,290,291],{},"Connection",": your Paperless connection.",[162,294,295,298,299,302],{},[14,296,297],{},"Title",": a template, ",[48,300,301],{},"{{ subject.name }}",". Paperless keeps the extension out of titles it makes itself, so you may prefer to leave this empty.",[162,304,305,308,309,69],{},[14,306,307],{},"Tags",": ",[48,310,33],{},[162,312,313,316,317,320,321,69],{},[14,314,315],{},"Save the link in a field"," (under ",[14,318,319],{},"When it's filed","): ",[19,322,64],{},[162,324,325,326,69],{},"Click ",[14,327,328],{},"Publish",[40,330,332],{"id":331},"test-it","Test it",[10,334,325,335,338,339,268,342,345,346,260,349,352,353,355,356,359],{},[14,336,337],{},"Test",", choose a PDF, and turn on ",[14,340,341],{},"Allow outside changes",[14,343,344],{},"Allow sending content to outside services",". The test really files the document. The step shows ",[14,347,348],{},"Status",[48,350,351],{},"added"," and the document's ",[14,354,137],{},". Testing the same file again usually shows ",[48,357,358],{},"duplicate",": Paperless normally refuses a file it already has, and the step then returns the existing document.",[40,361,363],{"id":362},"turn-it-on","Turn it on",[10,365,366,367,369],{},"Turn the workflow on with the switch in the editor's header. Every PDF or image uploaded to ",[19,368,21],{}," from then on goes to Paperless.",[40,371,373],{"id":372},"what-to-expect","What to expect",[285,375,376,385,391],{},[162,377,378,379,260,381,384],{},"The step waits for Paperless to finish, usually a few seconds to a minute depending on its OCR. After two minutes it stops waiting and succeeds with ",[14,380,348],{},[48,382,383],{},"queued"," and no link; the document still appears in Paperless when it's done.",[162,386,387,388,390],{},"If the ",[19,389,33],{}," tag doesn't exist in Paperless, the step creates it, with matching turned off.",[162,392,393,394,397],{},"The file stays in Avenvail. To keep only the Paperless copy, add ",[14,395,396],{},"Move to trash"," after the step.",[40,399,401],{"id":400},"troubleshooting","Troubleshooting",[75,403,404,414],{},[78,405,406],{},[81,407,408,411],{},[84,409,410],{},"Problem",[84,412,413],{},"Fix",[89,415,416,429,439,449],{},[81,417,418,423],{},[94,419,420],{},[19,421,422],{},"This address doesn't look like Paperless-ngx",[94,424,425,426,69],{},"Use the address you open in the browser, without ",[48,427,428],{},"\u002Fapi",[81,430,431,436],{},[94,432,433],{},[19,434,435],{},"Paperless refused the API token",[94,437,438],{},"Copy the token again from your Paperless profile.",[81,440,441,446],{},[94,442,443],{},[48,444,445],{},"paperless_consume_failed",[94,447,448],{},"Paperless couldn't read the file. Its reason follows the error, such as an unsupported file type.",[81,450,451,457],{},[94,452,453,454,456],{},"The step ends ",[48,455,383],{}," every time",[94,458,459],{},"Paperless's task queue is busy or stopped. Check its logs.",[40,461,463],{"id":462},"make-it-your-own","Make it your own",[154,465,467],{"id":466},"read-the-details-first","Read the details first",[10,469,279,470,268,473,476,477,268,480,483,484,488],{},[14,471,472],{},"Load content",[14,474,475],{},"AI extract"," before the step to read the sender and date, and set ",[14,478,479],{},"Correspondent",[14,481,482],{},"Date"," from them. ",[24,485,487],{"href":486},"\u002Fguides\u002Fextract-receipts#file-them-in-paperless","Extract and organize receipts"," does this for receipts.",[154,490,492],{"id":491},"send-by-type","Send by type",[10,494,495,496,499,500,503,504,508],{},"Put a ",[14,497,498],{},"Switch"," on ",[19,501,502],{},"Current file › Category",": PDFs to Paperless, images to WebDAV with ",[24,505,507],{"href":506},"\u002Freference\u002Fsteps#copy-to-webdav","Copy to WebDAV",", everything else left in Avenvail.",[40,510,512],{"id":511},"privacy-cost-and-reliability","Privacy, cost and reliability",[285,514,515,518],{},[162,516,517],{},"Files go only to your Paperless server, as the user whose token you gave. Delete the token in Paperless to cut Avenvail off.",[162,519,520,521,524],{},"Sending a document again could file it twice, so when Avenvail can't tell whether an upload reached Paperless, the run stops at ",[19,522,523],{},"Needs attention"," and asks you before trying again.",{"title":526,"searchDepth":527,"depth":528,"links":529},"",2,3,[530,531,532,537,538,539,540,541,545],{"id":42,"depth":527,"text":43},{"id":72,"depth":527,"text":73},{"id":151,"depth":527,"text":152,"children":533},[534,535,536],{"id":156,"depth":528,"text":157},{"id":209,"depth":528,"text":210},{"id":232,"depth":528,"text":233},{"id":331,"depth":527,"text":332},{"id":362,"depth":527,"text":363},{"id":372,"depth":527,"text":373},{"id":400,"depth":527,"text":401},{"id":462,"depth":527,"text":463,"children":542},[543,544],{"id":466,"depth":528,"text":467},{"id":491,"depth":528,"text":492},{"id":511,"depth":527,"text":512},"Send PDFs and photographed letters from Avenvail to Paperless-ngx, titled and tagged, and keep a link to each document on the file.","md",{},true,"\u002Fguides\u002Ffile-scans-in-paperless",{"title":5,"description":546},"7.guides\u002F10.file-scans-in-paperless","9lV7o0goWIgu_KVURnXxN63GzjoOSDV00NuKdZTISvk",[555,560],{"title":556,"path":557,"stem":558,"description":559,"children":-1},"Overview","\u002Fguides","7.guides\u002F1.index","Complete, tested workflows that solve everyday problems, from tidying ShareX uploads to filing receipts.",{"title":561,"path":562,"stem":563,"description":564,"children":-1},"Send photos to Immich","\u002Fguides\u002Fphotos-to-immich","7.guides\u002F11.photos-to-immich","Put photos and videos you upload into an Immich album, while screenshots stay in Avenvail, and keep a link to each photo.",[566,586,624,666,684,703,714,756,795,817,833],{"title":567,"path":568,"stem":569,"children":570,"icon":585},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[571,573,577,581],{"title":572,"path":568,"stem":569},"Introduction",{"title":574,"path":575,"stem":576},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":578,"path":579,"stem":580},"Configure ShareX","\u002Fgetting-started\u002Fsharex","1.getting-started\u002F3.sharex",{"title":582,"path":583,"stem":584},"Updating Avenvail","\u002Fgetting-started\u002Fupdating","1.getting-started\u002F4.updating","i-lucide-rocket",{"title":587,"icon":588,"path":589,"stem":590,"children":591,"page":623},"Library","i-lucide-folder","\u002Flibrary","2.library",[592,596,600,604,607,611,615,619],{"title":593,"path":594,"stem":595},"Uploading files","\u002Flibrary\u002Fuploading","2.library\u002F1.uploading",{"title":597,"path":598,"stem":599},"Files and folders","\u002Flibrary\u002Ffiles-and-folders","2.library\u002F2.files-and-folders",{"title":601,"path":602,"stem":603},"Sharing files","\u002Flibrary\u002Fsharing","2.library\u002F3.sharing",{"title":307,"path":605,"stem":606},"\u002Flibrary\u002Ftags","2.library\u002F4.tags",{"title":608,"path":609,"stem":610},"Fields","\u002Flibrary\u002Ffields","2.library\u002F5.fields",{"title":612,"path":613,"stem":614},"Attachments","\u002Flibrary\u002Fattachments","2.library\u002F6.attachments",{"title":616,"path":617,"stem":618},"Search","\u002Flibrary\u002Fsearch","2.library\u002F7.search",{"title":620,"path":621,"stem":622},"Trash and recovery","\u002Flibrary\u002Ftrash","2.library\u002F8.trash",false,{"title":241,"path":625,"stem":626,"children":627,"icon":665},"\u002Fautomations","3.automations\u002F01.index",[628,629,633,637,641,645,649,653,657,661],{"title":556,"path":625,"stem":626},{"title":630,"path":631,"stem":632},"Your first workflow","\u002Fautomations\u002Ffirst-workflow","3.automations\u002F02.first-workflow",{"title":634,"path":635,"stem":636},"The editor","\u002Fautomations\u002Feditor","3.automations\u002F03.editor",{"title":638,"path":639,"stem":640},"Values and templates","\u002Fautomations\u002Fvalues","3.automations\u002F04.values",{"title":642,"path":643,"stem":644},"Conditions and branching","\u002Fautomations\u002Fbranching","3.automations\u002F05.branching",{"title":646,"path":647,"stem":648},"Upload intake","\u002Fautomations\u002Fintake","3.automations\u002F06.intake",{"title":650,"path":651,"stem":652},"Testing","\u002Fautomations\u002Ftesting","3.automations\u002F07.testing",{"title":654,"path":655,"stem":656},"Runs and history","\u002Fautomations\u002Fruns","3.automations\u002F08.runs",{"title":658,"path":659,"stem":660},"Quarantine and failures","\u002Fautomations\u002Fquarantine","3.automations\u002F09.quarantine",{"title":662,"path":663,"stem":664},"Workflow templates","\u002Fautomations\u002Ftemplates","3.automations\u002F10.templates","i-lucide-workflow",{"title":120,"path":667,"stem":668,"children":669,"icon":683},"\u002Fconnections","4.connections\u002F1.index",[670,671,675,679],{"title":556,"path":667,"stem":668},{"title":672,"path":673,"stem":674},"AI providers","\u002Fconnections\u002Fai-providers","4.connections\u002F2.ai-providers",{"title":676,"path":677,"stem":678},"File storage","\u002Fconnections\u002Fstorage","4.connections\u002F3.storage",{"title":680,"path":681,"stem":682},"Photos and documents","\u002Fconnections\u002Fphotos-and-documents","4.connections\u002F4.photos-and-documents","i-lucide-plug",{"title":685,"path":686,"stem":687,"children":688,"icon":702},"AI","\u002Fai","5.ai\u002F1.index",[689,690,694,698],{"title":556,"path":686,"stem":687},{"title":691,"path":692,"stem":693},"AI classify and extract","\u002Fai\u002Fclassify-and-extract","5.ai\u002F2.classify-and-extract",{"title":695,"path":696,"stem":697},"AI describe, summarize and write","\u002Fai\u002Fdescribe-and-write","5.ai\u002F3.describe-and-write",{"title":699,"path":700,"stem":701},"AI detect and suggest tags","\u002Fai\u002Fdetect-and-tag","5.ai\u002F4.detect-and-tag","i-lucide-sparkles",{"title":704,"path":705,"stem":706,"children":707,"icon":713},"OCR","\u002Focr","5.ocr\u002F1.index",[708,709],{"title":556,"path":705,"stem":706},{"title":710,"path":711,"stem":712},"Setup","\u002Focr\u002Fsetup","5.ocr\u002F2.setup","i-lucide-scan-text",{"title":715,"path":716,"stem":717,"children":718,"icon":755},"Self-hosting","\u002Fself-hosting","6.self-hosting\u002F1.index",[719,720,723,727,731,735,739,743,747,751],{"title":556,"path":716,"stem":717},{"title":401,"path":721,"stem":722},"\u002Fself-hosting\u002Ftroubleshooting","6.self-hosting\u002F10.troubleshooting",{"title":724,"path":725,"stem":726},"Configuration","\u002Fself-hosting\u002Fconfiguration","6.self-hosting\u002F2.configuration",{"title":728,"path":729,"stem":730},"Reverse proxies and HTTPS","\u002Fself-hosting\u002Freverse-proxy","6.self-hosting\u002F3.reverse-proxy",{"title":732,"path":733,"stem":734},"DigitalOcean","\u002Fself-hosting\u002Fdigitalocean","6.self-hosting\u002F4.digitalocean",{"title":736,"path":737,"stem":738},"Backups and restoration","\u002Fself-hosting\u002Fbackups","6.self-hosting\u002F5.backups",{"title":740,"path":741,"stem":742},"Users and roles","\u002Fself-hosting\u002Fusers","6.self-hosting\u002F6.users",{"title":744,"path":745,"stem":746},"Single sign-on","\u002Fself-hosting\u002Fsingle-sign-on","6.self-hosting\u002F7.single-sign-on",{"title":748,"path":749,"stem":750},"Two-factor and passkeys","\u002Fself-hosting\u002Ftwo-factor-and-passkeys","6.self-hosting\u002F8.two-factor-and-passkeys",{"title":752,"path":753,"stem":754},"Importing","\u002Fself-hosting\u002Fimporting","6.self-hosting\u002F9.importing","i-lucide-server",{"title":757,"path":557,"stem":558,"children":758,"icon":794},"Guides",[759,760,761,762,766,770,774,778,782,786,790],{"title":556,"path":557,"stem":558},{"title":5,"path":550,"stem":552},{"title":561,"path":562,"stem":563},{"title":763,"path":764,"stem":765},"Optimize ShareX uploads","\u002Fguides\u002Fcompress-uploads","7.guides\u002F2.compress-uploads",{"title":767,"path":768,"stem":769},"Send Discord notifications","\u002Fguides\u002Fdiscord-notifications","7.guides\u002F3.discord-notifications",{"title":771,"path":772,"stem":773},"Organize screenshots with AI","\u002Fguides\u002Fcategorize-screenshots","7.guides\u002F4.categorize-screenshots",{"title":775,"path":776,"stem":777},"Extract receipts with AI","\u002Fguides\u002Fextract-receipts","7.guides\u002F5.extract-receipts",{"title":779,"path":780,"stem":781},"Name screenshots with AI","\u002Fguides\u002Fai-file-names","7.guides\u002F6.ai-file-names",{"title":783,"path":784,"stem":785},"Run AI locally with Ollama","\u002Fguides\u002Flocal-ai-ollama","7.guides\u002F7.local-ai-ollama",{"title":787,"path":788,"stem":789},"Make screenshots searchable","\u002Fguides\u002Fsearchable-screenshots","7.guides\u002F8.searchable-screenshots",{"title":791,"path":792,"stem":793},"Back up to Nextcloud","\u002Fguides\u002Fback-up-to-nextcloud","7.guides\u002F9.back-up-to-nextcloud","i-lucide-book-open",{"title":796,"icon":797,"path":798,"stem":799,"children":800,"page":623},"Reference","i-lucide-library","\u002Freference","8.reference",[801,805,809,813],{"title":802,"path":803,"stem":804},"Step reference","\u002Freference\u002Fsteps","8.reference\u002F1.steps",{"title":806,"path":807,"stem":808},"Limits and errors","\u002Freference\u002Flimits","8.reference\u002F2.limits",{"title":810,"path":811,"stem":812},"Live updates API","\u002Freference\u002Flive-updates","8.reference\u002F3.live-updates",{"title":814,"path":815,"stem":816},"HTTP API","\u002Freference\u002Fapi","8.reference\u002F4.api",{"title":818,"path":819,"stem":820,"children":821,"icon":832},"Development","\u002Fdevelopment","9.development\u002F1.index",[822,824,828],{"title":823,"path":819,"stem":820},"Local development",{"title":825,"path":826,"stem":827},"Plugin development","\u002Fdevelopment\u002Fplugins","9.development\u002F2.plugins",{"title":829,"path":830,"stem":831},"Writing documentation","\u002Fdevelopment\u002Fdocumentation","9.development\u002F3.documentation","i-lucide-code",{"title":834,"path":835,"stem":836,"children":837,"icon":864},"Comparisons","\u002Fcomparisons","99.comparisons\u002F1.index",[838,840,844,848,852,856,860],{"title":839,"path":835,"stem":836},"Comparing Avenvail",{"title":841,"path":842,"stem":843},"Avenvail and Zipline","\u002Fcomparisons\u002Fzipline","99.comparisons\u002F2.zipline",{"title":845,"path":846,"stem":847},"Avenvail and XBackBone","\u002Fcomparisons\u002Fxbackbone","99.comparisons\u002F3.xbackbone",{"title":849,"path":850,"stem":851},"Avenvail and chibisafe","\u002Fcomparisons\u002Fchibisafe","99.comparisons\u002F4.chibisafe",{"title":853,"path":854,"stem":855},"Avenvail and Slink","\u002Fcomparisons\u002Fslink","99.comparisons\u002F5.slink",{"title":857,"path":858,"stem":859},"Avenvail and Pingvin Share","\u002Fcomparisons\u002Fpingvin-share","99.comparisons\u002F6.pingvin-share",{"title":861,"path":862,"stem":863},"Avenvail and PicoShare","\u002Fcomparisons\u002Fpicoshare","99.comparisons\u002F7.picoshare","i-lucide-scale",1796391525488,"50da0f49-5ffe-418d-9ada-20d446e1504e"]