{"id":966,"date":"2019-08-14T12:36:51","date_gmt":"2019-08-14T19:36:51","guid":{"rendered":"http:\/\/www.lothlorien.com\/kf6gpe\/?p=966"},"modified":"2019-08-14T12:36:51","modified_gmt":"2019-08-14T19:36:51","slug":"cups-pdf-printing-to-an-ipad-via-dropbox-using-a-raspberry-pi","status":"publish","type":"post","link":"https:\/\/www.lothlorien.com\/kf6gpe\/cups-pdf-printing-to-an-ipad-via-dropbox-using-a-raspberry-pi\/","title":{"rendered":"CUPS-PDF Printing to an iPad via DropBox using a Raspberry Pi"},"content":{"rendered":"\n<p>Inspired by printing to a reMarkable tablet. You need to have Dropbox installed on your iPad, and\/or a PDF viewer that supports Dropbox syncing.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Follow the instructions <a href=\"https:\/\/junise.wordpress.com\/2015\/04\/12\/install-online-cups-printer-in-raspberry-pi\/\">here<\/a> to install CUPS PDF printing on your Pi and set it up as a print server.<\/li><li>Patch the PPD to avoid the problem of printing blank pages (steps <a href=\"https:\/\/askubuntu.com\/questions\/601836\/cups-pdf-prints-a-blank-page\/639883\">here<\/a>). You&#8217;ll need to <code>scp \/usr\/share\/ppd\/cups-pdf\/CUPS-PDF.ppd<\/code> to someplace where you can do an upload from your browser.<\/li><li>Install Andrea Fabrizi&#8217;s Dropbox Uploader script from <a href=\"https:\/\/github.com\/andreafabrizi\/Dropbox-Uploader\">here<\/a>.<\/li><li>Make a directory in your Dropbox to hold your PDFs. I chose <code>_<\/code> so it would show up first in my list of files, to make scrolling easy.<\/li><li>Crontab uploads of your PDFs. Do <code>crontab -e<\/code>, and add an entry such as<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>0-59\/1 * * * * \/home\/kf6gpe\/Projects\/Printing\/Dropbox-Uploader\/dropbox_uploader\\\n.sh -f \/home\/kf6gpe\/.dropbox_uploader -s upload \/home\/kf6gpe\/PDF _\n<\/code><\/pre>\n\n\n\n<p>You&#8217;ll need to change the path to your dropbox uploader, the configuration file, the path to your PDF directory locally on the Pi, and your remote directory. Keep the -s flag, which tells the uploader to only upload changed files!<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Inspired by printing to a reMarkable tablet. You need to have Dropbox installed on your iPad, and\/or a PDF viewer that supports Dropbox syncing. Follow the instructions here to install CUPS PDF printing on your Pi and set it up as a print server. Patch the PPD to avoid the problem of printing blank pages &hellip; <a href=\"https:\/\/www.lothlorien.com\/kf6gpe\/cups-pdf-printing-to-an-ipad-via-dropbox-using-a-raspberry-pi\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">CUPS-PDF Printing to an iPad via DropBox using a Raspberry Pi<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-966","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/posts\/966"}],"collection":[{"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/comments?post=966"}],"version-history":[{"count":1,"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/posts\/966\/revisions"}],"predecessor-version":[{"id":967,"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/posts\/966\/revisions\/967"}],"wp:attachment":[{"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/media?parent=966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/categories?post=966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/tags?post=966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}